71 G4Exception(
"ExTGRCRegionCutsMgr::AddRegionData",
"InvalidArgument",
73 G4String(
"Region already exists: " + rd[0]).c_str() );
84 G4cerr <<
"ERROR - ExTGRCRegionCutsMgr::AddRegionCuts()" <<
G4endl
85 <<
" Must have 3 or 4 arguments : REGION_NAME, gamma_CUT,"
86 <<
" e-_CUT (e+_CUT)." <<
G4endl
87 <<
" It has only " << rc.size() <<
" !" <<
G4endl;
88 G4Exception(
"ExTGRCRegionCutsMgr::AddRegionCuts()",
"InvalidArgument",
93 std::vector<ExTGRCRegionData*>::const_iterator iter;
96 if( regs.size() == 0 )
100 G4String(
" region does not exist: " + rc[0]).c_str());
103 for(
size_t ii = 0; ii < regs.size(); ii++)
105 regs[ii]->SetCutsData( rc );
109 std::vector<ExTGRCRegionData*>
112 std::vector<ExTGRCRegionData*> regs;
113 std::vector<ExTGRCRegionData*>::const_iterator iter;
118 regs.push_back(*iter);
127 std::vector<ExTGRCRegionData*>::const_iterator iter;
128 std::vector<G4String>::const_iterator ites;
129 std::vector<G4LogicalVolume*>::const_iterator itelv;
133 std::vector<G4String> lvs = (*iter)->GetLVNames();
134 for( ites = lvs.begin(); ites != lvs.end(); ites++ )
146 std::vector<ExTGRCRegionData*>::const_iterator iter;
151 if( (*iter)->CutsAreSet() )
156 G4Exception(
"ExTGRCRegionCutsMgr::BuildProductionCuts()",
158 G4String(
"Region not found: " + (*iter)->GetRegionName()).c_str() );
void BuildProductionCuts()
void AddRootLogicalVolume(G4LogicalVolume *lv)
void SetProductionCut(G4double cut, G4int index=-1)
static ExTGRCRegionCutsMgr * fInstance
void SetProductionCuts(G4ProductionCuts *cut)
G4Region * GetRegion(const G4String &name, G4bool verbose=true) const
static G4tgbVolumeMgr * GetInstance()
std::vector< ExTGRCRegionData * > FindRegionData(const G4String &name)
std::vector< ExTGRCRegionData * > fRegionDatae
G4GLOB_DLL std::ostream G4cerr
G4LogicalVolume * FindG4LogVol(const G4String &theName, const G4bool bExists=0)
static G4String ConvertToString(G4bool boolVal)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
void AddRegionData(const std::vector< G4String > &rd)
static G4RegionStore * GetInstance()
static G4bool AreWordsEquivalent(const G4String &word1, const G4String &word2)
static ExTGRCRegionCutsMgr * GetInstance()
static const G4double reg
void AddRegionCuts(const std::vector< G4String > &rc)
Definition of the ExTGRCRegionData class.
Definition of the ExTGRCRegionCutsMgr class.