Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CCalSensitiveConfiguration Class Reference

#include <CCalSensitiveConfiguration.hh>

Public Member Functions

 ~CCalSensitiveConfiguration ()
 
int getSensitiveFlag (const G4String &n)
 
G4String getFileName (const G4String &n)
 

Static Public Member Functions

static CCalSensitiveConfigurationgetInstance ()
 

Detailed Description

Definition at line 38 of file CCalSensitiveConfiguration.hh.

Constructor & Destructor Documentation

CCalSensitiveConfiguration::~CCalSensitiveConfiguration ( )
inline

Definition at line 50 of file CCalSensitiveConfiguration.hh.

50 {}

Member Function Documentation

G4String CCalSensitiveConfiguration::getFileName ( const G4String n)

Definition at line 65 of file CCalSensitiveConfiguration.cc.

65  {
66  G4String fn;
67  CCalSensitiveConfIterator it = theConfiguration.find(n);
68 
69  if (it != theConfiguration.end())
70  fn = (*it).second.FileName;
71  else {
72  G4cerr << "ERROR: In CCalSensitiveConfiguration::getFileName(const "
73  << "G4String& n)" << G4endl
74  << " " << n << " not found in configuration file" << G4endl;
75  }
76 
77  return fn;
78 }
#define G4endl
Definition: G4ios.hh:61
G4GLOB_DLL std::ostream G4cerr
CCalSensitiveConfiguration * CCalSensitiveConfiguration::getInstance ( )
static

Definition at line 43 of file CCalSensitiveConfiguration.cc.

43  {
44  if (!instance)
46  return instance;
47 }
static MCTruthManager * instance

Here is the caller graph for this function:

int CCalSensitiveConfiguration::getSensitiveFlag ( const G4String n)

Definition at line 50 of file CCalSensitiveConfiguration.cc.

50  {
51  int flag = -1;
52  CCalSensitiveConfIterator it = theConfiguration.find(n);
53 
54  if (it != theConfiguration.end())
55  flag = (*it).second.SensitiveFlag;
56  else {
57  G4cerr << "ERROR: In CCalSensitiveConfiguration::getSensitiveFlag(const "
58  << "G4String& n)" << G4endl
59  << " " << n << " not found in configuration file" << G4endl;
60  }
61 
62  return flag;
63 }
#define G4endl
Definition: G4ios.hh:61
G4GLOB_DLL std::ostream G4cerr

Here is the caller graph for this function:


The documentation for this class was generated from the following files: