45 : rlist(0), ullist(0), urcode(false), uwcode(false), strip(true), rexp(false)
55 : rlist(0), ullist(0), urcode(true), uwcode(false), strip(true), rexp(false)
66 : rlist(0), ullist(0), urcode(true), uwcode(true), strip(true), rexp(false)
77 xercesc::XMLPlatformUtils::Terminate();
88 for(std::vector<G4GDMLAuxStructType>::const_iterator
89 iaux = auxInfoList->begin(); iaux != auxInfoList->end(); iaux++ )
91 if (iaux->type !=
"Region")
return;
95 if (name.
contains(
"DefaultRegionForTheWorld"))
continue;
101 "Invalid definition of geometrical region!");
108 for(std::vector<G4GDMLAuxStructType>::const_iterator
109 raux = iaux->auxList->begin(); raux != iaux->auxList->end(); raux++ )
122 const G4String& cvalue = raux->value;
125 G4Exception(
"G4GDMLParser::ImportRegions()",
"InvalidRead",
132 const G4String& cvalue = raux->value;
135 G4Exception(
"G4GDMLParser::ImportRegions()",
"InvalidRead",
142 const G4String& cvalue = raux->value;
145 G4Exception(
"G4GDMLParser::ImportRegions()",
"InvalidRead",
152 const G4String& cvalue = raux->value;
155 G4Exception(
"G4GDMLParser::ImportRegions()",
"InvalidRead",
164 const G4String& ulname = raux->value;
165 for(std::vector<G4GDMLAuxStructType>::const_iterator
166 uaux=raux->auxList->begin(); uaux!=raux->auxList->end(); uaux++ )
169 const G4String& uvalue = uaux->value;
172 if (ultag==
"ustepMax") { ustepMax = ulvalue; }
else
173 if (ultag==
"utrakMax") { utrakMax = ulvalue; }
else
174 if (ultag==
"utimeMax") { utimeMax = ulvalue; }
else
175 if (ultag==
"uekinMin") { uekinMin = ulvalue; }
else
176 if (ultag==
"urangMin") { urangMin = ulvalue; }
181 "Invalid definition of user-limits!");
185 utimeMax, uekinMin, urangMin);
198 for (
size_t i=0; i<rstore->size(); ++i)
200 const G4String& tname = (*rstore)[i]->GetName();
201 if (tname.
contains(
"DefaultRegionForParallelWorld"))
continue;
205 std::vector<G4LogicalVolume*>::iterator rlvol_iter
206 = (*rstore)[i]->GetRootLogicalVolumeIterator();
207 for (
size_t j=0; j<(*rstore)[i]->GetNumberOfRootVolumes(); ++j)
214 rlist->push_back(rsubaux);
217 G4double gam_cut = (*rstore)[i]->GetProductionCuts()->GetProductionCut(
"gamma");
219 rlist->push_back(caux1);
220 G4double e_cut = (*rstore)[i]->GetProductionCuts()->GetProductionCut(
"e-");
222 rlist->push_back(caux2);
223 G4double pos_cut = (*rstore)[i]->GetProductionCuts()->GetProductionCut(
"e+");
225 rlist->push_back(caux3);
226 G4double p_cut = (*rstore)[i]->GetProductionCuts()->GetProductionCut(
"proton");
228 rlist->push_back(caux4);
229 if ((*rstore)[i]->GetUserLimits())
233 const G4String& utype = (*rstore)[i]->GetUserLimits()->GetType();
235 G4double max_step = (*rstore)[i]->GetUserLimits()->GetMaxAllowedStep(fake_trk);
237 ullist->push_back(ulaux1);
238 G4double max_trk = (*rstore)[i]->GetUserLimits()->GetUserMaxTrackLength(fake_trk);
240 ullist->push_back(ulaux2);
241 G4double max_time = (*rstore)[i]->GetUserLimits()->GetUserMaxTime(fake_trk);
243 ullist->push_back(ulaux3);
244 G4double min_ekin = (*rstore)[i]->GetUserLimits()->GetUserMinEkine(fake_trk);
246 ullist->push_back(ulaux4);
247 G4double min_rng = (*rstore)[i]->GetUserLimits()->GetUserMinRange(fake_trk);
249 ullist->push_back(ulaux5);
250 rlist->push_back(uaux);
void AddRootLogicalVolume(G4LogicalVolume *lv)
G4LogicalVolume * GetReflectedLV(G4LogicalVolume *lv) const
void SetProductionCut(G4double cut, G4int index=-1)
G4String GenerateName(const G4String &, const void *const)
void SetUserLimits(G4UserLimits *ul)
G4double Evaluate(const G4String &)
G4String ConvertToString(G4int ival)
void SetProductionCuts(G4ProductionCuts *cut)
G4bool IsConstituent(G4LogicalVolume *lv) const
void AddAuxiliary(G4GDMLAuxStructType myaux)
G4GDMLAuxListType * rlist
const G4GDMLAuxListType * GetAuxList() const
G4GDMLAuxListType * ullist
static G4double GetValueOf(const G4String &)
G4bool contains(const std::string &) const
void StripName(G4String &) const
void ExportRegions(G4bool storeReferences=true)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
static G4RegionStore * GetInstance()
G4GDMLWriteStructure * writer
G4GDMLMessenger * messenger
std::vector< G4GDMLAuxStructType > G4GDMLAuxListType
G4bool IsReflected(G4LogicalVolume *lv) const
static G4String GetCategory(const G4String &)
static G4LogicalVolumeStore * GetInstance()
G4GDMLReadStructure * reader
G4LogicalVolume * GetVolume(const G4String &name, G4bool verbose=true) const
const G4String & GetName() const
static G4ReflectionFactory * Instance()