70 G4Exception(
"ExTGRCRegionCutsMgr::AddRegionData",
"InvalidArgument",
72 G4String(
"Region already exists: " + rd[0]).c_str() );
83 G4cerr <<
"ERROR - ExTGRCRegionCutsMgr::AddRegionCuts()" <<
G4endl
84 <<
" Must have 3 or 4 arguments : REGION_NAME, gamma_CUT,"
85 <<
" e-_CUT (e+_CUT)." <<
G4endl
86 <<
" It has only " << rc.size() <<
" !" <<
G4endl;
87 G4Exception(
"ExTGRCRegionCutsMgr::AddRegionCuts()",
"InvalidArgument",
95 if( regs.size() == 0 )
99 G4String(
" region does not exist: " + rc[0]).c_str());
102 for(
size_t ii = 0; ii < regs.size(); ii++)
104 regs[ii]->SetCutsData( rc );
108 std::vector<ExTGRCRegionData*>
111 std::vector<ExTGRCRegionData*> regs;
112 std::vector<ExTGRCRegionData*>::const_iterator iter;
117 regs.push_back(*iter);
126 std::vector<ExTGRCRegionData*>::const_iterator iter;
127 std::vector<G4String>::const_iterator ites;
132 std::vector<G4String> lvs = (*iter)->GetLVNames();
133 for( ites = lvs.begin(); ites != lvs.end(); ites++ )
145 std::vector<ExTGRCRegionData*>::const_iterator iter;
150 if( (*iter)->CutsAreSet() )
155 G4Exception(
"ExTGRCRegionCutsMgr::BuildProductionCuts()",
157 G4String(
"Region not found: " + (*iter)->GetRegionName()).c_str() );