59 if (uZ.x()==0. && uZ.y()==0.) {
71 if (uZ.x()==0. && uZ.y()==0.) {
94 if (uZ.x()==0. && uZ.y()==0.) {
95 if (uZ.z()>=0.)
return spin;
102 G4ThreeVector uX(uZ.x()*uZ.z()*invPerp,uZ.y()*uZ.z()*invPerp,-perp);
111 G4cout<<
"========================================\n\n";
112 for (
G4int i=0; i<=10; ++i) {
119 G4cout<<zAxis<<
" "<<zAxis.mag()<<
"\n";
120 G4cout<<yAxis<<
" "<<yAxis.mag()<<
"\n";
122 G4cout<<xAxis<<
" "<<xAxis.mag()<<
"\n\n";
125 G4cout<<
"========================================\n\n";
127 for (
G4int i=0; i<=10; ++i) {
134 G4cout<<zAxis<<
" "<<zAxis.mag()<<
"\n";
135 G4cout<<yAxis<<
" "<<yAxis.mag()<<
"\n";
137 G4cout<<xAxis<<
" "<<xAxis.mag()<<
"\n\n";
139 G4cout<<
"spat : "<<xAxis*yAxis.cross(zAxis)<<
"\n\n";
141 G4cout<<
"========================================\n\n";
152 G4cout<<
"========================================\n\n";
164 G4cout<<
"========================================\n\n";
static void TestPolarizationTransformations()
static G4ThreeVector GetRandomFrame(const G4ThreeVector &)
CLHEP::Hep3Vector G4ThreeVector
static double normal(HepRandomEngine *eptr)
G4GLOB_DLL std::ostream G4cout
static G4ThreeVector GetFrame(const G4ThreeVector &, const G4ThreeVector &)
static void TestInteractionFrame()
static G4ThreeVector GetSpinInPRF(const G4ThreeVector &uZ, const G4ThreeVector &spin)
static G4ThreeVector GetParticleFrameY(const G4ThreeVector &)
static constexpr double pi
static G4ThreeVector GetParticleFrameX(const G4ThreeVector &)