55 flag = (*it).second.SensitiveFlag;
57 G4cerr <<
"ERROR: In CCalSensitiveConfiguration::getSensitiveFlag(const "
58 <<
"G4String& n)" <<
G4endl
59 <<
" " << n <<
" not found in configuration file" <<
G4endl;
70 fn = (*it).second.FileName;
72 G4cerr <<
"ERROR: In CCalSensitiveConfiguration::getFileName(const "
73 <<
"G4String& n)" <<
G4endl
74 <<
" " << n <<
" not found in configuration file" <<
G4endl;
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;
106 G4cout <<
"CCalSensitiveConfiguration constructor: Read \"" << name
bool openGeomFile(std::ifstream &is, const G4String &pathname, const G4String &filename)
G4String getFileName(const G4String &n)
std::istream & jump(std::istream &)
CCalSensitiveConfTable theConfiguration
static CCalSensitiveConfiguration * getInstance()
std::ifstream & readName(std::ifstream &, G4String &)
G4GLOB_DLL std::ostream G4cout
std::ostream & tab(std::ostream &)
int getSensitiveFlag(const G4String &n)
static CCalSensitiveConfiguration * instance
CCalSensitiveConfiguration()
std::map< G4String, GCInfo, std::less< G4String > >::iterator CCalSensitiveConfIterator
G4GLOB_DLL std::ostream G4cerr