Geant4-11
|
#include <G4SDManager.hh>
Public Member Functions | |
void | Activate (G4String dName, G4bool activeFlag) |
void | AddNewCollection (G4String SDname, G4String DCname) |
void | AddNewDetector (G4VSensitiveDetector *aSD) |
void | DeRegisterSDFilter (G4VSDFilter *filter) |
G4VSensitiveDetector * | FindSensitiveDetector (G4String dName, G4bool warning=true) |
G4int | GetCollectionCapacity () const |
G4int | GetCollectionID (G4String colName) |
G4int | GetCollectionID (G4VHitsCollection *aHC) |
G4HCtable * | GetHCtable () const |
G4SDStructure * | GetTreeTop () const |
void | ListTree () const |
G4HCofThisEvent * | PrepareNewEvent () |
void | RegisterSDFilter (G4VSDFilter *filter) |
void | SetVerboseLevel (G4int vl) |
void | TerminateCurrentEvent (G4HCofThisEvent *HCE) |
~G4SDManager () | |
Static Public Member Functions | |
static G4SDManager * | GetSDMpointer () |
static G4SDManager * | GetSDMpointerIfExist () |
Protected Member Functions | |
G4SDManager () | |
Private Member Functions | |
void | DestroyFilters () |
G4SDManager (const G4SDManager &) | |
G4SDManager & | operator= (const G4SDManager &) |
Private Attributes | |
std::vector< G4VSDFilter * > | FilterList |
G4HCtable * | HCtable |
G4SDmessenger * | theMessenger |
G4SDStructure * | treeTop |
G4int | verboseLevel |
Static Private Attributes | |
static G4ThreadLocal G4SDManager * | fSDManager = nullptr |
Definition at line 52 of file G4SDManager.hh.
|
protected |
Definition at line 49 of file G4SDManager.cc.
References HCtable, theMessenger, and treeTop.
Referenced by GetSDMpointer().
G4SDManager::~G4SDManager | ( | ) |
Definition at line 58 of file G4SDManager.cc.
References DestroyFilters(), fSDManager, HCtable, theMessenger, and treeTop.
|
private |
Definition at line 125 of file G4SDManager.cc.
References G4SDStructure::Activate(), and treeTop.
Referenced by G4RTRunAction::BeginOfRunAction(), G4RTRunAction::EndOfRunAction(), G4MaterialScanner::RestoreUserActions(), G4TheRayTracer::RestoreUserActions(), G4SDmessenger::SetNewValue(), G4MaterialScanner::StoreUserActions(), and G4TheRayTracer::StoreUserActions().
Definition at line 94 of file G4SDManager.cc.
References G4cout, G4endl, HCtable, G4HCtable::Registor(), and verboseLevel.
Referenced by AddNewDetector(), and G4MultiFunctionalDetector::RegisterPrimitive().
void G4SDManager::AddNewDetector | ( | G4VSensitiveDetector * | aSD | ) |
Definition at line 70 of file G4SDManager.cc.
References AddNewCollection(), G4SDStructure::AddNewDetector(), G4cout, G4endl, G4VSensitiveDetector::GetCollectionName(), G4VSensitiveDetector::GetName(), G4VSensitiveDetector::GetNumberOfCollections(), G4VSensitiveDetector::GetPathName(), treeTop, and verboseLevel.
Referenced by G4VScoringMesh::G4VScoringMesh(), G4VUserDetectorConstruction::SetSensitiveDetector(), and G4VUserParallelWorld::SetSensitiveDetector().
void G4SDManager::DeRegisterSDFilter | ( | G4VSDFilter * | filter | ) |
Definition at line 169 of file G4SDManager.cc.
References FilterList.
Referenced by G4VSDFilter::~G4VSDFilter().
|
private |
Definition at line 181 of file G4SDManager.cc.
References FilterList, G4cout, G4endl, and verboseLevel.
Referenced by ~G4SDManager().
G4VSensitiveDetector * G4SDManager::FindSensitiveDetector | ( | G4String | dName, |
G4bool | warning = true |
||
) |
Definition at line 133 of file G4SDManager.cc.
References G4SDStructure::FindSensitiveDetector(), and treeTop.
|
inline |
Definition at line 142 of file G4SDManager.cc.
References G4cout, G4endl, G4HCtable::GetCollectionID(), and HCtable.
Referenced by G4VSensitiveDetector::GetCollectionID(), G4VPrimitiveScorer::GetCollectionID(), GetCollectionID(), and G4DigiManager::GetHitsCollectionID().
G4int G4SDManager::GetCollectionID | ( | G4VHitsCollection * | aHC | ) |
Definition at line 156 of file G4SDManager.cc.
References GetCollectionID(), G4VHitsCollection::GetName(), and G4VHitsCollection::GetSDname().
|
inline |
Definition at line 101 of file G4SDManager.hh.
References HCtable.
Referenced by G4RunManager::RunInitialization(), G4WorkerRunManager::RunInitialization(), and G4WorkerTaskRunManager::RunInitialization().
|
static |
Definition at line 38 of file G4SDManager.cc.
References fSDManager, and G4SDManager().
Referenced by G4DigiManager::G4DigiManager(), G4VScoringMesh::G4VScoringMesh(), G4VSDFilter::G4VSDFilter(), G4VSensitiveDetector::GetCollectionID(), G4VPrimitiveScorer::GetCollectionID(), G4MultiFunctionalDetector::RegisterPrimitive(), G4VUserDetectorConstruction::SetSensitiveDetector(), G4VUserParallelWorld::SetSensitiveDetector(), and G4VSDFilter::~G4VSDFilter().
|
static |
Definition at line 47 of file G4SDManager.cc.
References fSDManager.
Referenced by G4RTRunAction::BeginOfRunAction(), G4EventManager::DoProcessing(), G4RTRunAction::EndOfRunAction(), G4EventManager::G4EventManager(), G4MaterialScanner::RestoreUserActions(), G4TheRayTracer::RestoreUserActions(), G4RunManager::RunInitialization(), G4WorkerRunManager::RunInitialization(), G4WorkerTaskRunManager::RunInitialization(), G4MaterialScanner::StoreUserActions(), G4TheRayTracer::StoreUserActions(), and G4RunManagerKernel::~G4RunManagerKernel().
|
inline |
|
inline |
Definition at line 99 of file G4SDManager.hh.
References G4SDStructure::ListTree(), and treeTop.
Referenced by G4SDmessenger::SetNewValue().
|
private |
G4HCofThisEvent * G4SDManager::PrepareNewEvent | ( | ) |
Definition at line 113 of file G4SDManager.cc.
References G4HCtable::entries(), HCtable, G4SDStructure::Initialize(), and treeTop.
Referenced by G4EventManager::DoProcessing(), G4RunManager::RunInitialization(), G4WorkerRunManager::RunInitialization(), and G4WorkerTaskRunManager::RunInitialization().
void G4SDManager::RegisterSDFilter | ( | G4VSDFilter * | filter | ) |
Definition at line 164 of file G4SDManager.cc.
References FilterList.
Referenced by G4VSDFilter::G4VSDFilter().
|
inline |
Definition at line 93 of file G4SDManager.hh.
References G4SDStructure::SetVerboseLevel(), treeTop, and verboseLevel.
Referenced by G4SDmessenger::SetNewValue().
void G4SDManager::TerminateCurrentEvent | ( | G4HCofThisEvent * | HCE | ) |
Definition at line 120 of file G4SDManager.cc.
References G4SDStructure::Terminate(), and treeTop.
Referenced by G4EventManager::DoProcessing().
|
private |
Definition at line 114 of file G4SDManager.hh.
Referenced by DeRegisterSDFilter(), DestroyFilters(), and RegisterSDFilter().
|
staticprivate |
Definition at line 86 of file G4SDManager.hh.
Referenced by GetSDMpointer(), GetSDMpointerIfExist(), and ~G4SDManager().
|
private |
Definition at line 89 of file G4SDManager.hh.
Referenced by AddNewCollection(), G4SDManager(), GetCollectionCapacity(), GetCollectionID(), GetHCtable(), PrepareNewEvent(), and ~G4SDManager().
|
private |
Definition at line 90 of file G4SDManager.hh.
Referenced by G4SDManager(), and ~G4SDManager().
|
private |
Definition at line 87 of file G4SDManager.hh.
Referenced by Activate(), AddNewDetector(), FindSensitiveDetector(), G4SDManager(), GetTreeTop(), ListTree(), PrepareNewEvent(), SetVerboseLevel(), TerminateCurrentEvent(), and ~G4SDManager().
|
private |
Definition at line 88 of file G4SDManager.hh.
Referenced by AddNewCollection(), AddNewDetector(), DestroyFilters(), and SetVerboseLevel().