44 G4ThreeVector xhat(1,0,0), yhat(0,1,0), zhat(0,0,1), nullVec(0,0,0);
52 : verboseLevel(0), fTheta(0), fPhi(0), fLattice(Lat) {
65 fLocalToGlobal = fGlobalToLocal = *Rot;
70 G4cout <<
"G4LatticePhysical::SetPhysicalOrientation " << *Rot
71 <<
"\nfLocalToGlobal: " << fLocalToGlobal
72 <<
"\nfGlobalToLocal: " << fGlobalToLocal
84 G4cout <<
"G4LatticePhysical::SetLatticeOrientation " << fTheta <<
" "
91 fTheta =
halfpi - std::atan2(n+0.000001,l+0.000001);
92 fPhi =
halfpi - std::atan2(l+0.000001,k+0.000001);
95 G4cout <<
"G4LatticePhysical::SetMillerOrientation(" << l << k << n
96 <<
") : " << fTheta <<
" " << fPhi <<
G4endl;
107 if (verboseLevel>1)
G4cout <<
"G4LatticePhysical::MapKtoV " << k <<
G4endl;
110 return fLattice->
MapKtoV(polarizationState, k);
118 if (verboseLevel>1)
G4cout <<
"G4LatticePhysical::MapKtoVDir " << k <<
G4endl;
133 if (verboseLevel>1) {
134 G4cout <<
"G4LatticePhysical::RotateToGlobal " << dir
135 <<
"\nusing fLocalToGlobal " << fLocalToGlobal
140 if (verboseLevel>1)
G4cout <<
" result " << result <<
G4endl;
147 if (verboseLevel>1) {
148 G4cout <<
"G4LatticePhysical::RotateToLocal " << dir
149 <<
"\nusing fGlobalToLocal " << fGlobalToLocal
154 if (verboseLevel>1)
G4cout <<
" result " << result <<
G4endl;
G4double G4ParticleHPJENDLHEData::G4double result
virtual G4ThreeVector MapKtoVDir(G4int, const G4ThreeVector &) const
virtual ~G4LatticePhysical()
G4LatticePhysical(const G4LatticeLogical *Lat=0, const G4RotationMatrix *Rot=0)
virtual G4double MapKtoV(G4int, const G4ThreeVector &) const
G4double MapKtoV(G4int, G4ThreeVector) const
G4ThreeVector RotateToLocal(const G4ThreeVector &dir) const
static DLL_API const HepRotation IDENTITY
void SetPhysicalOrientation(const G4RotationMatrix *Rot)
G4GLOB_DLL std::ostream G4cout
G4ThreeVector MapKtoVDir(G4int, G4ThreeVector) const
void SetMillerOrientation(G4int, G4int, G4int)
void SetLatticeOrientation(G4double, G4double)
Definition of the G4LatticePhysical class.
Definition of the G4LatticeLogical class.
G4ThreeVector RotateToGlobal(const G4ThreeVector &dir) const
static constexpr double halfpi
Hep3Vector & rotate(double, const Hep3Vector &)