44G4ThreeVector xhat(1, 0, 0), yhat(0, 1, 0), zhat(0, 0, 1), nullVec(0, 0, 0);
61 fLocalToGlobal = fGlobalToLocal = *Rot;
65 if (verboseLevel != 0) {
66 G4cout <<
"G4LatticePhysical::SetPhysicalOrientation " << *Rot
67 <<
"\nfLocalToGlobal: " << fLocalToGlobal <<
"\nfGlobalToLocal: " << fGlobalToLocal
78 if (verboseLevel != 0) {
79 G4cout <<
"G4LatticePhysical::SetLatticeOrientation " << fTheta <<
" " << fPhi <<
G4endl;
86 fTheta = halfpi - std::atan2(n + 0.000001, l + 0.000001);
87 fPhi = halfpi - std::atan2(l + 0.000001, k + 0.000001);
89 if (verboseLevel != 0) {
90 G4cout <<
"G4LatticePhysical::SetMillerOrientation(" << l << k << n <<
") : " << fTheta <<
" "
101 if (verboseLevel > 1) {
106 return fLattice->
MapKtoV(polarizationState, k);
114 if (verboseLevel > 1) {
115 G4cout <<
"G4LatticePhysical::MapKtoVDir " << k <<
G4endl;
130 if (verboseLevel > 1) {
131 G4cout <<
"G4LatticePhysical::RotateToGlobal " << dir <<
"\nusing fLocalToGlobal "
132 << fLocalToGlobal <<
G4endl;
136 if (verboseLevel > 1) {
145 if (verboseLevel > 1) {
146 G4cout <<
"G4LatticePhysical::RotateToLocal " << dir <<
"\nusing fGlobalToLocal "
147 << fGlobalToLocal <<
G4endl;
151 if (verboseLevel > 1) {
Definition of the G4LatticeLogical class.
Definition of the G4LatticePhysical class.
G4GLOB_DLL std::ostream G4cout
Hep3Vector & rotate(double, const Hep3Vector &)
static DLL_API const HepRotation IDENTITY
virtual G4double MapKtoV(G4int, const G4ThreeVector &) const
virtual G4ThreeVector MapKtoVDir(G4int, const G4ThreeVector &) const
void SetLatticeOrientation(G4double, G4double)
void SetPhysicalOrientation(const G4RotationMatrix *Rot)
G4ThreeVector RotateToLocal(const G4ThreeVector &dir) const
G4ThreeVector RotateToGlobal(const G4ThreeVector &dir) const
G4double MapKtoV(G4int, G4ThreeVector) const
G4ThreeVector MapKtoVDir(G4int, G4ThreeVector) const
void SetMillerOrientation(G4int, G4int, G4int)
G4LatticePhysical(const G4LatticeLogical *Lat=nullptr, const G4RotationMatrix *Rot=nullptr)