|
Geant4 VMC Version 6.8
|
Geant4 implementation of the TVirtualMC interface methods for access to Geant4 geometry related with sensitive detectors. More...
#include <TG4SDManager.h>
Public Member Functions | |
| TG4SDManager () | |
| ~TG4SDManager () | |
| void | Initialize () |
| void | LateInitialize (TG4ScoreWeightCalculator swc) |
| Int_t | VolId (const Text_t *volName) const |
| const char * | VolName (Int_t id) const |
| Int_t | NofVolumes () const |
| Int_t | NofVolDaughters (const char *volName) const |
| const char * | VolDaughterName (const char *volName, Int_t i) const |
| Int_t | VolDaughterCopyNo (const char *volName, Int_t i) const |
| Int_t | VolId2Mate (Int_t volumeId) const |
| void | SetSensitiveDetector (const TString &volName, TVirtualMCSensitiveDetector *sd) |
| TVirtualMCSensitiveDetector * | GetSensitiveDetector (const TString &volName) const |
| void | SetExclusiveSDScoring (Bool_t exclusiveSDScoring) |
| TG4SDConstruction * | GetSDConstruction () const |
Static Public Member Functions | |
| static TG4SDManager * | Instance () |
Private Member Functions | |
| TG4SDManager (const TG4SDManager &right) | |
| Not implemented. | |
| TG4SDManager & | operator= (const TG4SDManager &right) |
| Not implemented. | |
Private Attributes | |
| TG4SDConstruction * | fSDConstruction |
| sensitive detectors construction | |
| TG4SDServices * | fSDServices |
| services related with sensitive detectors | |
| TG4ScoreWeightCalculator | fScoreWeightCalculator |
| score weight calculator | |
| G4String | fNameBuffer |
| buffer for volume name | |
Static Private Attributes | |
| static TG4SDManager * | fgInstance = 0 |
| this instance | |
Geant4 implementation of the TVirtualMC interface methods for access to Geant4 geometry related with sensitive detectors.
Definition at line 34 of file TG4SDManager.h.
| TG4SDManager::TG4SDManager | ( | ) |
Default constructor
Definition at line 33 of file TG4SDManager.cxx.
Referenced by Instance(), operator=(), and TG4SDManager().
| TG4SDManager::~TG4SDManager | ( | ) |
Destructor
Definition at line 49 of file TG4SDManager.cxx.
|
private |
Not implemented.
|
inlinestatic |
Return this instance
Definition at line 92 of file TG4SDManager.h.
Referenced by TG4GeometryManager::ConstructSDandField(), and TG4RunManager::LateInitialize().
| void TG4SDManager::Initialize | ( | ) |
Create sensitive detectors, sets second indexes for materials (corresponding to G3 tracking media) and clear remaing G3 tables.
Definition at line 64 of file TG4SDManager.cxx.
Referenced by TG4GeometryManager::ConstructSDandField().
| void TG4SDManager::LateInitialize | ( | TG4ScoreWeightCalculator | swc | ) |
Definition at line 76 of file TG4SDManager.cxx.
Referenced by TG4RunManager::LateInitialize().
| Int_t TG4SDManager::VolId | ( | const Text_t * | volName | ) | const |
Return the volume ID = sensitive detector identifier.
Definition at line 118 of file TG4SDManager.cxx.
| const char * TG4SDManager::VolName | ( | Int_t | id | ) | const |
Return the name of the volume specified by volume ID ( = sensitive detector name)
Definition at line 126 of file TG4SDManager.cxx.
| Int_t TG4SDManager::NofVolumes | ( | ) | const |
Return the total number of VMC volumes ( = number of sensitive detectors).
Definition at line 136 of file TG4SDManager.cxx.
| Int_t TG4SDManager::NofVolDaughters | ( | const char * | volName | ) | const |
Return the number of daughters of the volume specified by name
Definition at line 145 of file TG4SDManager.cxx.
| const char * TG4SDManager::VolDaughterName | ( | const char * | volName, |
| Int_t | i ) const |
Return the name of the i-th daughter of the volume specified by name.
Definition at line 153 of file TG4SDManager.cxx.
| Int_t TG4SDManager::VolDaughterCopyNo | ( | const char * | volName, |
| Int_t | i ) const |
Return the copyNo of the i-th daughter of the volume specified by name.
Definition at line 161 of file TG4SDManager.cxx.
| Int_t TG4SDManager::VolId2Mate | ( | Int_t | volumeId | ) | const |
Return the material number for a given volume Id
Definition at line 169 of file TG4SDManager.cxx.
| void TG4SDManager::SetSensitiveDetector | ( | const TString & | volName, |
| TVirtualMCSensitiveDetector * | sd ) |
Set user sensitive detector to (a) volume(s) with the given name
Definition at line 177 of file TG4SDManager.cxx.
| TVirtualMCSensitiveDetector * TG4SDManager::GetSensitiveDetector | ( | const TString & | volName | ) | const |
Return the user sensitive detector for a volume with the given name
Definition at line 186 of file TG4SDManager.cxx.
| void TG4SDManager::SetExclusiveSDScoring | ( | Bool_t | exclusiveSDScoring | ) |
Set scoring option
Definition at line 195 of file TG4SDManager.cxx.
|
inline |
Return sensitive detctor construction
Definition at line 98 of file TG4SDManager.h.
|
private |
Not implemented.
|
staticprivate |
this instance
Definition at line 72 of file TG4SDManager.h.
Referenced by Instance(), TG4SDManager(), and ~TG4SDManager().
|
private |
sensitive detectors construction
Definition at line 78 of file TG4SDManager.h.
Referenced by GetSDConstruction(), Initialize(), SetExclusiveSDScoring(), TG4SDManager(), and ~TG4SDManager().
|
private |
services related with sensitive detectors
Definition at line 81 of file TG4SDManager.h.
Referenced by GetSensitiveDetector(), NofVolDaughters(), NofVolumes(), SetSensitiveDetector(), TG4SDManager(), VolDaughterCopyNo(), VolDaughterName(), VolId(), VolId2Mate(), VolName(), and ~TG4SDManager().
|
private |
score weight calculator
Definition at line 84 of file TG4SDManager.h.
Referenced by LateInitialize().
|
mutableprivate |
buffer for volume name
Definition at line 87 of file TG4SDManager.h.
Referenced by TG4SDManager(), and VolName().