48 G4tgbRotationMatrixMgr::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();
80 void 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;
std::map< G4String, G4tgrRotationMatrix * > G4mstgrrotm
static G4tgbRotationMatrixMgr * GetInstance()
G4tgbRotationMatrix * FindOrBuildTgbRotMatrix(const G4String &name)
const G4mstgrrotm & GetRotMatMap() const
static G4tgrRotationMatrixFactory * GetInstance()
G4GLOB_DLL std::ostream G4cout
static G4int GetVerboseLevel()
G4RotationMatrix * FindG4RotMatrix(const G4String &name)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
~G4tgbRotationMatrixMgr()
std::ostream & operator<<(std::ostream &, const BasicVector3D< float > &)
G4RotationMatrix * FindOrBuildG4RotMatrix(const G4String &name)
G4RotationMatrix * BuildG4RotMatrix()
G4tgbRotationMatrix * FindTgbRotMatrix(const G4String &name)