48G4tgbRotationMatrixMgr::G4tgbRotationMatrixMgr()
59 theInstance->CopyRotMats();
68 G4mstgbrotm::const_iterator tgbcite;
69 for( tgbcite = theTgbRotMats.begin();
70 tgbcite != theTgbRotMats.end(); tgbcite++)
72 delete (*tgbcite).second;
74 theTgbRotMats.clear();
80void G4tgbRotationMatrixMgr::CopyRotMats()
84 G4mstgrrotm::iterator cite;
85 for( cite = tgrRotms.begin(); cite != tgrRotms.end(); cite++ )
89 theTgbRotMats[tgb->
GetName()] = tgb;
101 G4cout <<
" G4tgbRotationMatrixMgr::FindOrBuildG4RotMatrix() - "
121 G4msg4rotm::const_iterator cite = theG4RotMats.find( name );
122 if( cite != theG4RotMats.end() )
124 g4rotm = (*cite).second;
130 G4cout <<
" G4tgbRotationMatrixMgr::FindG4RotMatrix(): " <<
G4endl
131 <<
" Name: " << name <<
" = " << g4rotm <<
G4endl;
147 G4String ErrMessage =
"Rotation Matrix " + name +
" not found !";
148 G4Exception(
"G4tgbRotationMatrixFactory::FindOrBuildRotMatrix()",
161 G4mstgbrotm::const_iterator cite = theTgbRotMats.find( name );
162 if( cite != theTgbRotMats.end() )
164 rotm = (*cite).second;
174 << rot.
thetaX()/deg <<
'\t' << rot.
phiX()/deg <<
'\t'
175 << rot.
thetaY()/deg <<
'\t' << rot.
phiY()/deg <<
'\t'
176 << rot.
thetaZ()/deg <<
'\t' << rot.
phiZ()/deg <<
" ]"
G4DLLIMPORT std::ostream G4cout
std::ostream & operator<<(std::ostream &os, const G4RotationMatrix &rot)
std::map< G4String, G4tgrRotationMatrix * > G4mstgrrotm
static G4tgbRotationMatrixMgr * GetInstance()
G4RotationMatrix * FindG4RotMatrix(const G4String &name)
~G4tgbRotationMatrixMgr()
G4RotationMatrix * FindOrBuildG4RotMatrix(const G4String &name)
G4tgbRotationMatrix * FindOrBuildTgbRotMatrix(const G4String &name)
G4tgbRotationMatrix * FindTgbRotMatrix(const G4String &name)
G4RotationMatrix * BuildG4RotMatrix()
static G4int GetVerboseLevel()
const G4mstgrrotm & GetRotMatMap() const
static G4tgrRotationMatrixFactory * GetInstance()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)