56 G4tgrRotationMatrixFactory::G4tgrRotationMatrixFactory()
62 G4tgrRotationMatrixFactory::~G4tgrRotationMatrixFactory()
64 G4mstgrrotm::iterator cite;
65 for( cite = theTgrRotMats.begin(); cite != theTgrRotMats.end(); cite++)
67 delete (*cite).second;
69 theTgrRotMats.clear();
79 if( wl.size() != 5 && wl.size() != 8 && wl.size() != 11 )
82 G4Exception(
"G4tgrRotationMatrixFactory::AddRotMatrix()",
"InvalidMatrix",
89 G4cout <<
" G4tgrRotationMatrixFactory::AddRotMatrix() - Adding: "
96 G4String ErrMessage =
"Rotation matrix repeated... " + wl[1];
97 G4Exception(
"G4tgrRotationMatrixFactory::AddRotMatrix()",
102 theTgrRotMats[ rotm->
GetName() ] = rotm;
103 theTgrRotMatList.push_back( rotm );
115 G4mstgrrotm::const_iterator cite = theTgrRotMats.find( name );
116 if( cite != theTgrRotMats.end() )
118 rotm = (*cite).second;
128 G4cout <<
" @@@@@@@@@@@@@@@@ DUMPING G4tgrRotationMatrix's List " <<
G4endl;
129 G4mstgrrotm::const_iterator cite;
130 for(cite = theTgrRotMats.begin(); cite != theTgrRotMats.end(); cite++)
132 G4cout <<
" ROTM: " << (*cite).second->GetName() <<
G4endl;