58 if(values.size() == 3)
62 else if(values.size() == 6)
66 else if(values.size() == 9)
72 G4String ErrMessage =
"Number of values is: " +
74 G4String(
". It should be 3, 6, or 9 !");
75 G4Exception(
"G4tgbRotationMatrix::BuildG4RotMatrix()",
"InvalidData",
94 G4cout <<
" Constructing new G4RotationMatrix from 3 numbers " <<
GetName()
95 <<
" : " << *rotMat <<
G4endl;
115 std::sin(thetaX) * std::sin(phiX), std::cos(thetaX));
117 std::sin(thetaY) * std::sin(phiY), std::cos(thetaY));
119 std::sin(thetaZ) * std::sin(phiZ), std::cos(thetaZ));
126 colx.
y(), coly.
y(), colz.
y(),
127 colx.
z(), coly.
z(), colz.
z());
134 G4cout <<
" Constructing new G4RotationMatrix from 6 numbers " <<
GetName()
135 <<
" : " << *rotMat <<
G4endl;
156 colx.
y(), coly.
y(), colz.
y(),
157 colx.
z(), coly.
z(), colz.
z());
164 G4cout <<
" Constructing new G4RotationMatrix from 9 numbers " <<
GetName()
165 <<
" : " << *rotMat <<
G4endl;
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
CLHEP::HepRotation G4RotationMatrix
G4GLOB_DLL std::ostream G4cout
HepRotation & rotateX(double delta)
HepRotation & rotateZ(double delta)
HepRotation & rotateY(double delta)
static G4String ConvertToString(G4bool boolVal)
G4RotationMatrix * BuildG4RotMatrix()
const G4String & GetName()
G4RotationMatrix * BuildG4RotMatrixFrom9(std::vector< G4double > &values)
G4RotationMatrix * BuildG4RotMatrixFrom6(std::vector< G4double > &values)
G4tgrRotationMatrix * theTgrRM
G4RotationMatrix * BuildG4RotMatrixFrom3(std::vector< G4double > &values)
static G4int GetVerboseLevel()
std::vector< G4double > & GetValues()