Geant4  10.01.p03
CCalDetector Class Referenceabstract

#include <CCalDetector.hh>

+ Inheritance diagram for CCalDetector:
+ Collaboration diagram for CCalDetector:

Public Member Functions

 CCalDetector (const G4String &name)
 
virtual ~CCalDetector ()
 
void constructHierarchy ()
 
void construct ()
 
void addDetector (CCalDetector *)
 
G4String Name () const
 
G4String baseFileName () const
 
G4String File () const
 
CCalDetectorgetDaughter (int i) const
 
int getNDaughters () const
 
G4bool operator== (const CCalDetector &left) const
 
G4bool operator!= (const CCalDetector &left) const
 

Protected Member Functions

virtual int readFile ()=0
 
virtual void constructDaughters ()=0
 
int buildFromFile ()
 

Protected Attributes

G4String detectorName
 
G4String fileName
 
G4String pathName
 
CCalDetectorTable theDetectorsInside
 
int constructFlag
 

Friends

std::ostream & operator<< (std::ostream &, const CCalDetector &)
 

Detailed Description

Definition at line 49 of file CCalDetector.hh.

Constructor & Destructor Documentation

CCalDetector::CCalDetector ( const G4String name)

Definition at line 44 of file CCalDetector.cc.

References constructFlag, FatalException, fileName, G4cout, G4endl, G4Exception(), CCalGeometryConfiguration::getConstructFlag(), CCalGeometryConfiguration::getFileName(), CCalGeometryConfiguration::getInstance(), and pathName.

+ Here is the call graph for this function:

CCalDetector::~CCalDetector ( )
virtual

Definition at line 62 of file CCalDetector.cc.

References theDetectorsInside.

Member Function Documentation

void CCalDetector::addDetector ( CCalDetector det)

Definition at line 95 of file CCalDetector.cc.

References theDetectorsInside.

Referenced by CCalG4Hall::constructDaughters(), and CCalHall::constructDaughters().

+ Here is the caller graph for this function:

G4String CCalDetector::baseFileName ( ) const
inline

Definition at line 78 of file CCalDetector.hh.

References fileName.

int CCalDetector::buildFromFile ( )
protected

Definition at line 103 of file CCalDetector.cc.

References readFile().

Referenced by construct().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CCalDetector::construct ( )

Definition at line 70 of file CCalDetector.cc.

References buildFromFile(), constructDaughters(), constructFlag, G4cout, G4endl, Name(), and theDetectorsInside.

Referenced by constructHierarchy().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

virtual void CCalDetector::constructDaughters ( )
protectedpure virtual

Implemented in CCalHcal, CCalEcal, CCalG4Hcal, CCalHall, and CCalG4Hall.

Referenced by construct().

+ Here is the caller graph for this function:

void CCalDetector::constructHierarchy ( )
inline

Definition at line 66 of file CCalDetector.hh.

References construct().

Referenced by CCalDetectorConstruction::Construct().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4String CCalDetector::File ( ) const
inline

Definition at line 79 of file CCalDetector.hh.

References fileName.

Referenced by CCalHall::readFile(), CCalEcal::readFile(), and CCalHcal::readFile().

+ Here is the caller graph for this function:

CCalDetector* CCalDetector::getDaughter ( int  i) const
inline

Definition at line 80 of file CCalDetector.hh.

References theDetectorsInside.

int CCalDetector::getNDaughters ( ) const
inline

Definition at line 81 of file CCalDetector.hh.

References theDetectorsInside.

G4String CCalDetector::Name ( ) const
inline

Definition at line 77 of file CCalDetector.hh.

References detectorName.

Referenced by construct(), CCalG4Hcal::constructAbsorberLayer(), CCalG4Hall::constructIn(), CCalG4Hcal::constructIn(), CCalG4Hcal::constructScintillatorLayer(), and CCalG4Hcal::constructSensitive().

+ Here is the caller graph for this function:

G4bool CCalDetector::operator!= ( const CCalDetector left) const
inline

Definition at line 90 of file CCalDetector.hh.

References detectorName.

G4bool CCalDetector::operator== ( const CCalDetector left) const
inline

Definition at line 87 of file CCalDetector.hh.

References detectorName.

virtual int CCalDetector::readFile ( )
protectedpure virtual

Implemented in CCalHcal, CCalEcal, and CCalHall.

Referenced by buildFromFile().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CCalDetector det 
)
friend

Definition at line 111 of file CCalDetector.cc.

Member Data Documentation

int CCalDetector::constructFlag
protected

Definition at line 122 of file CCalDetector.hh.

Referenced by CCalDetector(), and construct().

G4String CCalDetector::detectorName
protected

Definition at line 116 of file CCalDetector.hh.

Referenced by Name(), operator!=(), operator<<(), and operator==().

G4String CCalDetector::fileName
protected

Definition at line 117 of file CCalDetector.hh.

Referenced by baseFileName(), CCalDetector(), File(), and operator<<().

G4String CCalDetector::pathName
protected
CCalDetectorTable CCalDetector::theDetectorsInside
protected

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