Geant4  10.01
G4SDStructure Class Reference

#include <G4SDStructure.hh>

+ Collaboration diagram for G4SDStructure:

Public Member Functions

 G4SDStructure (G4String aPath)
 
 ~G4SDStructure ()
 
G4int operator== (const G4SDStructure &right) const
 
void AddNewDetector (G4VSensitiveDetector *aSD, G4String treeStructure)
 
void Activate (G4String aName, G4bool sensitiveFlag)
 
void Initialize (G4HCofThisEvent *HCE)
 
void Terminate (G4HCofThisEvent *HCE)
 
G4VSensitiveDetectorFindSensitiveDetector (G4String aName, G4bool warning=true)
 
G4VSensitiveDetectorGetSD (G4String aName)
 
void ListTree ()
 
void SetVerboseLevel (G4int vl)
 

Private Member Functions

G4SDStructureFindSubDirectory (G4String subD)
 
G4String ExtractDirName (G4String aPath)
 
void RemoveSD (G4VSensitiveDetector *)
 

Private Attributes

std::vector< G4SDStructure * > structure
 
std::vector
< G4VSensitiveDetector * > 
detector
 
G4String pathName
 
G4String dirName
 
G4int verboseLevel
 

Detailed Description

Definition at line 47 of file G4SDStructure.hh.

Constructor & Destructor Documentation

G4SDStructure::G4SDStructure ( G4String  aPath)

Definition at line 34 of file G4SDStructure.cc.

References dirName, G4String::last(), pathName, and G4String::remove().

Referenced by AddNewDetector().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4SDStructure::~G4SDStructure ( )

Definition at line 48 of file G4SDStructure.cc.

References detector, and structure.

Member Function Documentation

void G4SDStructure::Activate ( G4String  aName,
G4bool  sensitiveFlag 
)

Definition at line 140 of file G4SDStructure.cc.

References Activate(), G4VSensitiveDetector::Activate(), detector, ExtractDirName(), FindSubDirectory(), G4String::first(), G4cout, G4endl, GetSD(), G4String::isNull(), pathName, G4String::remove(), and structure.

Referenced by Activate(), and G4SDManager::Activate().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4SDStructure::AddNewDetector ( G4VSensitiveDetector aSD,
G4String  treeStructure 
)

Definition at line 63 of file G4SDStructure.cc.

References AddNewDetector(), detector, ExtractDirName(), FindSubDirectory(), G4Exception(), G4SDStructure(), G4VSensitiveDetector::GetName(), GetSD(), G4String::isNull(), JustWarning, pathName, G4String::prepend(), G4String::remove(), RemoveSD(), and structure.

Referenced by AddNewDetector(), and G4SDManager::AddNewDetector().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4String G4SDStructure::ExtractDirName ( G4String  aPath)
private

Definition at line 132 of file G4SDStructure.cc.

References G4String::first(), and G4String::remove().

Referenced by Activate(), AddNewDetector(), and FindSensitiveDetector().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4VSensitiveDetector * G4SDStructure::FindSensitiveDetector ( G4String  aName,
G4bool  warning = true 
)

Definition at line 182 of file G4SDStructure.cc.

References ExtractDirName(), FindSensitiveDetector(), FindSubDirectory(), G4String::first(), G4cout, G4endl, GetSD(), pathName, and G4String::remove().

Referenced by FindSensitiveDetector(), and G4SDManager::FindSensitiveDetector().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4SDStructure * G4SDStructure::FindSubDirectory ( G4String  subD)
private

Definition at line 101 of file G4SDStructure.cc.

References dirName, and structure.

Referenced by Activate(), AddNewDetector(), and FindSensitiveDetector().

+ Here is the caller graph for this function:

G4VSensitiveDetector * G4SDStructure::GetSD ( G4String  aName)

Definition at line 110 of file G4SDStructure.cc.

References detector, and G4VSensitiveDetector::GetName().

Referenced by Activate(), AddNewDetector(), and FindSensitiveDetector().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4SDStructure::Initialize ( G4HCofThisEvent HCE)

Definition at line 213 of file G4SDStructure.cc.

References detector, and structure.

Referenced by G4SDManager::PrepareNewEvent().

+ Here is the caller graph for this function:

void G4SDStructure::ListTree ( )

Definition at line 243 of file G4SDStructure.cc.

References detector, G4cout, G4endl, G4VSensitiveDetector::GetName(), G4VSensitiveDetector::isActive(), pathName, and structure.

Referenced by G4SDManager::ListTree().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4SDStructure::operator== ( const G4SDStructure right) const

Definition at line 58 of file G4SDStructure.cc.

void G4SDStructure::RemoveSD ( G4VSensitiveDetector sd)
private

Definition at line 120 of file G4SDStructure.cc.

References detector.

Referenced by AddNewDetector().

+ Here is the caller graph for this function:

void G4SDStructure::SetVerboseLevel ( G4int  vl)
inline

Definition at line 76 of file G4SDStructure.hh.

Referenced by G4SDManager::SetVerboseLevel().

+ Here is the caller graph for this function:

void G4SDStructure::Terminate ( G4HCofThisEvent HCE)

Definition at line 228 of file G4SDStructure.cc.

References detector, and structure.

Referenced by G4SDManager::TerminateCurrentEvent().

+ Here is the caller graph for this function:

Member Data Documentation

std::vector<G4VSensitiveDetector*> G4SDStructure::detector
private
G4String G4SDStructure::dirName
private

Definition at line 72 of file G4SDStructure.hh.

Referenced by FindSubDirectory(), and G4SDStructure().

G4String G4SDStructure::pathName
private
std::vector<G4SDStructure*> G4SDStructure::structure
private
G4int G4SDStructure::verboseLevel
private

Definition at line 73 of file G4SDStructure.hh.


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