52 CCalSensitiveConfIterator it = theConfiguration.find(n);
54 if (it != theConfiguration.end())
55 flag = (*it).second.SensitiveFlag;
57 G4cerr <<
"ERROR: In CCalSensitiveConfiguration::getSensitiveFlag(const "
58 <<
"G4String& n)" <<
G4endl
59 <<
" " << n <<
" not found in configuration file" <<
G4endl;
67 CCalSensitiveConfIterator it = theConfiguration.find(n);
69 if (it != theConfiguration.end())
70 fn = (*it).second.FileName;
72 G4cerr <<
"ERROR: In CCalSensitiveConfiguration::getFileName(const "
73 <<
"G4String& n)" <<
G4endl
74 <<
" " << n <<
" not found in configuration file" <<
G4endl;
80 CCalSensitiveConfiguration::CCalSensitiveConfiguration(): theConfiguration() {
84 G4String pathName = getenv(
"CCAL_CONFPATH");
85 G4String fileenv = getenv(
"CCAL_SENSITIVECONF");
86 if (!pathName || !fileenv) {
87 G4cerr <<
"ERROR: CCAL_SENSITIVECONF and/or CCAL_CONFPATH not set" <<
G4endl
88 <<
" Set them to the sensitive configuration file/path" <<
G4endl;
92 G4cout <<
" ==> Opening file " << fileenv <<
"..." <<
G4endl;
104 is >> gcinfo.SensitiveFlag >>
jump;
106 G4cout <<
"CCalSensitiveConfiguration constructor: Read \"" << name
107 <<
"\" \"" << gcinfo.FileName <<
"\"" <<
tab << gcinfo.SensitiveFlag
110 theConfiguration[
name] = gcinfo;