50 CCalGeometryConfIterator it = theConfiguration.find(n);
52 if (it != theConfiguration.end())
53 flag = (*it).second.ConstructFlag;
55 G4cerr <<
"ERROR: In CCalGeometryConfiguration::getConstructFlag(const G4String& n)"
57 <<
" " << n <<
" not found in configuration file" <<
G4endl;
65 CCalGeometryConfIterator it = theConfiguration.find(n);
67 if (it != theConfiguration.end())
68 fn = (*it).second.FileName;
70 G4cerr <<
"ERROR: In CCalGeometryConfiguration::getConstructFlag(const G4String& n)"
72 <<
" " << n <<
" not found in configuration file" <<
G4endl;
78 CCalGeometryConfiguration::CCalGeometryConfiguration():
83 G4String pathName = getenv(
"CCAL_CONFPATH");
84 G4String fileenv = getenv(
"CCAL_GEOMETRYCONF");
85 if (!pathName || !fileenv) {
86 G4cerr <<
"ERROR: CCAL_GEOMETRYCONF and/or CCAL_CONFPATH not set" <<
G4endl
87 <<
" Set them to the geometry configuration file/path" <<
G4endl;
91 G4cout <<
" ==> Opening file " << fileenv <<
"..." <<
G4endl;
103 is >> gcinfo.ConstructFlag >>
jump;
105 G4cout <<
"CCalGeometryConfiguration constructor: Read \"" << name
106 <<
"\" \"" << gcinfo.FileName <<
"\"" <<
tab << gcinfo.ConstructFlag
109 theConfiguration[
name] = gcinfo;