Geant4
10.01.p01
|
#include <G4SDManager.hh>
Public Member Functions | |
~G4SDManager () | |
void | AddNewDetector (G4VSensitiveDetector *aSD) |
void | Activate (G4String dName, G4bool activeFlag) |
G4int | GetCollectionID (G4String colName) |
G4int | GetCollectionID (G4VHitsCollection *aHC) |
G4VSensitiveDetector * | FindSensitiveDetector (G4String dName, G4bool warning=true) |
G4HCofThisEvent * | PrepareNewEvent () |
void | TerminateCurrentEvent (G4HCofThisEvent *HCE) |
void | AddNewCollection (G4String SDname, G4String DCname) |
void | SetVerboseLevel (G4int vl) |
G4SDStructure * | GetTreeTop () const |
void | ListTree () const |
G4int | GetCollectionCapacity () const |
G4HCtable * | GetHCtable () const |
Static Public Member Functions | |
static G4SDManager * | GetSDMpointer () |
static G4SDManager * | GetSDMpointerIfExist () |
Protected Member Functions | |
G4SDManager () | |
Private Member Functions | |
G4SDManager (const G4SDManager &) | |
G4SDManager & | operator= (const G4SDManager &) |
Private Attributes | |
G4SDStructure * | treeTop |
G4int | verboseLevel |
G4HCtable * | HCtable |
G4SDmessenger * | theMessenger |
Static Private Attributes | |
static G4ThreadLocal G4SDManager * | fSDManager = 0 |
Definition at line 50 of file G4SDManager.hh.
|
protected |
Definition at line 52 of file G4SDManager.cc.
References HCtable, theMessenger, and treeTop.
Referenced by GetSDMpointer().
G4SDManager::~G4SDManager | ( | ) |
Definition at line 60 of file G4SDManager.cc.
References HCtable, theMessenger, and treeTop.
|
private |
Definition at line 117 of file G4SDManager.cc.
References G4SDStructure::Activate(), G4String::prepend(), and treeTop.
Referenced by G4RTRunAction::BeginOfRunAction(), G4RTRunAction::EndOfRunAction(), G4MaterialScanner::RestoreUserActions(), G4TheRayTracer::RestoreUserActions(), G4SDmessenger::SetNewValue(), G4MaterialScanner::StoreUserActions(), and G4TheRayTracer::StoreUserActions().
Definition at line 88 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 67 of file G4SDManager.cc.
References AddNewCollection(), G4SDStructure::AddNewDetector(), G4cout, G4endl, G4VSensitiveDetector::GetCollectionName(), G4VSensitiveDetector::GetName(), G4VSensitiveDetector::GetNumberOfCollections(), G4VSensitiveDetector::GetPathName(), G4String::prepend(), treeTop, and verboseLevel.
Referenced by CCalSensAssign::assign(), ExN04DetectorConstruction::Construct(), FCALEMModule::Construct(), FCALHadModule::Construct(), ExExChDetectorConstruction::Construct(), eRositaDetectorConstruction::Construct(), ExN02DetectorConstruction::Construct(), ExP01DetectorConstruction::Construct(), CML2Ph_FullWater::Construct(), CML2Ph_BoxInBox::Construct(), B03ImportanceDetectorConstruction::ConstructSD(), B02ImportanceDetectorConstruction::ConstructSD(), Par01DetectorConstruction::ConstructSDandField(), ExGflashDetectorConstruction::ConstructSDandField(), B5DetectorConstruction::ConstructSDandField(), FCALTestbeamSetup::ConstructSDandField(), B01DetectorConstruction::ConstructSDandField(), RE02DetectorConstruction::ConstructSDandField(), RMC01DetectorConstruction::ConstructSimpleGeometry(), CML2PhaseSpaces::createPlane(), G4VScoringMesh::G4VScoringMesh(), main(), G4VUserParallelWorld::SetSensitiveDetector(), G4VUserDetectorConstruction::SetSensitiveDetector(), Em10DetectorConstruction::SetUpALICE06(), Em10DetectorConstruction::SetUpBari05(), Em10DetectorConstruction::SetUpBarr90(), RE06ParallelWorld::SetupDetectors(), Em10DetectorConstruction::SetUpHarris73(), CexmcSetup::SetupSpecialVolumes(), Em10DetectorConstruction::SetUpWatase86(), and Em10DetectorConstruction::SimpleSetUpALICE().
G4VSensitiveDetector * G4SDManager::FindSensitiveDetector | ( | G4String | dName, |
G4bool | warning = true |
||
) |
Definition at line 124 of file G4SDManager.cc.
References G4SDStructure::FindSensitiveDetector(), G4String::prepend(), and treeTop.
Referenced by B01Run::B01Run(), B02Run::B02Run(), B03Run::B03Run(), DicomRun::ConstructMFD(), FCALTestbeamSetup::ConstructSDandField(), ExExChEventAction::EndOfEventAction(), CCalStackingAction::initialize(), main(), RE02Run::RE02Run(), G4MultiFunctionalDetector::RegisterPrimitive(), LXeSteppingAction::UserSteppingAction(), and WLSSteppingAction::UserSteppingAction().
|
inline |
Definition at line 99 of file G4SDManager.hh.
References G4HCtable::entries().
Definition at line 131 of file G4SDManager.cc.
References G4cout, G4endl, G4HCtable::GetCollectionID(), and HCtable.
Referenced by B01Run::B01Run(), B02Run::B02Run(), B03Run::B03Run(), RE05EventAction::BeginOfEventAction(), B5EventAction::BeginOfEventAction(), RE01EventAction::BeginOfEventAction(), G4HumanPhantomEventAction::BeginOfEventAction(), LXeEventAction::BeginOfEventAction(), F01EventAction::BeginOfEventAction(), F02EventAction::BeginOfEventAction(), F03EventAction::BeginOfEventAction(), Em10EventAction::BeginOfEventAction(), GammaRayTelEventAction::BeginOfEventAction(), UltraEventAction::BeginOfEventAction(), DMXEventAction::BeginOfEventAction(), XrayFluoEventAction::BeginOfEventAction(), DicomRun::ConstructMFD(), Par01CalorimeterSD::EndOfEvent(), F02CalorimeterSD::EndOfEvent(), F01CalorimeterSD::EndOfEvent(), F03CalorimeterSD::EndOfEvent(), XrayFluoHPGeSD::EndOfEvent(), Em10CalorimeterSD::EndOfEvent(), GammaRayTelTrackerSD::EndOfEvent(), GammaRayTelAnticoincidenceSD::EndOfEvent(), GammaRayTelCalorimeterSD::EndOfEvent(), DMXScintSD::EndOfEvent(), UltraPMTSD::EndOfEvent(), DMXPmtSD::EndOfEvent(), XrayFluoSD::EndOfEvent(), ExExChEventAction::EndOfEventAction(), ExGflashEventAction::EndOfEventAction(), CCalEndOfEventAction::EndOfEventAction(), B4dEventAction::EndOfEventAction(), B4cEventAction::EndOfEventAction(), WLSEventAction::EndOfEventAction(), RMC01AnalysisManager::EndOfEventForAdjointSimulation(), RMC01AnalysisManager::EndOfEventForForwardSimulation(), RE01StackingAction::GetCalCollection(), RE05StackingAction::GetCollection(), ExN04StackingAction::GetCollection(), G4VPrimitiveScorer::GetCollectionID(), GetCollectionID(), G4VSensitiveDetector::GetCollectionID(), G4DigiManager::GetHitsCollectionID(), ExExChSensitiveDetector::Initialize(), ExTGTrackerSD::Initialize(), eRositaTrackerSD::Initialize(), G4HumanPhantomSD::Initialize(), B5HodoscopeSD::Initialize(), B5HadCalorimeterSD::Initialize(), B5DriftChamberSD::Initialize(), SensitiveDetector::Initialize(), B5EmCalorimeterSD::Initialize(), ExN02TrackerSD::Initialize(), XAluminumElectrodeSensitivity::Initialize(), ExP01TrackerSD::Initialize(), B2TrackerSD::Initialize(), B4cCalorimeterSD::Initialize(), CCaloSD::Initialize(), RE02Run::RE02Run(), RE06Run::RE06Run(), and B3Run::RecordEvent().
G4int G4SDManager::GetCollectionID | ( | G4VHitsCollection * | aHC | ) |
Definition at line 141 of file G4SDManager.cc.
References GetCollectionID(), G4VHitsCollection::GetName(), and G4VHitsCollection::GetSDname().
|
inline |
Definition at line 101 of file G4SDManager.hh.
References HCtable.
Referenced by G4WorkerRunManager::RunInitialization(), and G4RunManager::RunInitialization().
|
static |
Definition at line 40 of file G4SDManager.cc.
References fSDManager, and G4SDManager().
Referenced by CCalSensAssign::assign(), B01Run::B01Run(), B02Run::B02Run(), B03Run::B03Run(), ExN04EventAction::BeginOfEventAction(), RE05EventAction::BeginOfEventAction(), B5EventAction::BeginOfEventAction(), RE01EventAction::BeginOfEventAction(), G4HumanPhantomEventAction::BeginOfEventAction(), HadrontherapyEventAction::BeginOfEventAction(), LXeEventAction::BeginOfEventAction(), F01EventAction::BeginOfEventAction(), F02EventAction::BeginOfEventAction(), F03EventAction::BeginOfEventAction(), Em10EventAction::BeginOfEventAction(), IORTEventAction::BeginOfEventAction(), GammaRayTelEventAction::BeginOfEventAction(), UltraEventAction::BeginOfEventAction(), DMXEventAction::BeginOfEventAction(), XrayFluoEventAction::BeginOfEventAction(), H02DetectorConstruction::Construct(), ExN04DetectorConstruction::Construct(), ExExChDetectorConstruction::Construct(), FCALEMModule::Construct(), FCALHadModule::Construct(), eRositaDetectorConstruction::Construct(), ExN02DetectorConstruction::Construct(), ExP01DetectorConstruction::Construct(), CML2Ph_FullWater::Construct(), CML2Ph_BoxInBox::Construct(), DicomRun::ConstructMFD(), B03ImportanceDetectorConstruction::ConstructSD(), B02ImportanceDetectorConstruction::ConstructSD(), Par01DetectorConstruction::ConstructSDandField(), B3DetectorConstruction::ConstructSDandField(), ExGflashDetectorConstruction::ConstructSDandField(), B5DetectorConstruction::ConstructSDandField(), ElectronBenchmarkDetector::ConstructSDandField(), FCALTestbeamSetup::ConstructSDandField(), B4dDetectorConstruction::ConstructSDandField(), B01DetectorConstruction::ConstructSDandField(), RE02DetectorConstruction::ConstructSDandField(), IORTDetectorConstruction::ConstructSensitiveDetector(), RMC01DetectorConstruction::ConstructSimpleGeometry(), CML2PhaseSpaces::createPlane(), Par01CalorimeterSD::EndOfEvent(), F02CalorimeterSD::EndOfEvent(), F01CalorimeterSD::EndOfEvent(), F03CalorimeterSD::EndOfEvent(), Em10CalorimeterSD::EndOfEvent(), XrayFluoHPGeSD::EndOfEvent(), GammaRayTelCalorimeterSD::EndOfEvent(), GammaRayTelAnticoincidenceSD::EndOfEvent(), GammaRayTelTrackerSD::EndOfEvent(), DMXScintSD::EndOfEvent(), UltraPMTSD::EndOfEvent(), DMXPmtSD::EndOfEvent(), XrayFluoSD::EndOfEvent(), H02EventAction::EndOfEventAction(), ExExChEventAction::EndOfEventAction(), ExGflashEventAction::EndOfEventAction(), CCalEndOfEventAction::EndOfEventAction(), B4dEventAction::EndOfEventAction(), B4cEventAction::EndOfEventAction(), WLSEventAction::EndOfEventAction(), RMC01AnalysisManager::EndOfEventForAdjointSimulation(), RMC01AnalysisManager::EndOfEventForForwardSimulation(), G4DigiManager::G4DigiManager(), G4VScoringMesh::G4VScoringMesh(), RE01StackingAction::GetCalCollection(), RE05StackingAction::GetCollection(), ExN04StackingAction::GetCollection(), G4VPrimitiveScorer::GetCollectionID(), G4VSensitiveDetector::GetCollectionID(), ExExChSensitiveDetector::Initialize(), eRositaTrackerSD::Initialize(), B5HodoscopeSD::Initialize(), ExTGTrackerSD::Initialize(), G4HumanPhantomSD::Initialize(), B5DriftChamberSD::Initialize(), B5HadCalorimeterSD::Initialize(), B5EmCalorimeterSD::Initialize(), SensitiveDetector::Initialize(), ExN02TrackerSD::Initialize(), XAluminumElectrodeSensitivity::Initialize(), ExP01TrackerSD::Initialize(), B2TrackerSD::Initialize(), B4cCalorimeterSD::Initialize(), CCaloSD::Initialize(), main(), RE02Run::RE02Run(), RE06Run::RE06Run(), B3Run::RecordEvent(), G4MultiFunctionalDetector::RegisterPrimitive(), G4VUserParallelWorld::SetSensitiveDetector(), G4VUserDetectorConstruction::SetSensitiveDetector(), Em10DetectorConstruction::SetUpALICE06(), Em10DetectorConstruction::SetUpBari05(), Em10DetectorConstruction::SetUpBarr90(), RE06ParallelWorld::SetupDetectors(), GB03DetectorConstruction::SetupDetectors(), RE06DetectorConstruction::SetupDetectors(), Em10DetectorConstruction::SetUpHarris73(), CexmcSetup::SetupSpecialVolumes(), Em10DetectorConstruction::SetUpWatase86(), Em10DetectorConstruction::SimpleSetUpALICE(), LXeSteppingAction::UserSteppingAction(), WLSSteppingAction::UserSteppingAction(), and VoxelSD::VoxelSD().
|
static |
Definition at line 49 of file G4SDManager.cc.
References fSDManager.
Referenced by G4RTRunAction::BeginOfRunAction(), G4EventManager::DoProcessing(), G4RTRunAction::EndOfRunAction(), G4EventManager::G4EventManager(), CCalStackingAction::initialize(), G4MaterialScanner::RestoreUserActions(), G4TheRayTracer::RestoreUserActions(), G4WorkerRunManager::RunInitialization(), G4RunManager::RunInitialization(), G4MaterialScanner::StoreUserActions(), G4TheRayTracer::StoreUserActions(), and G4RunManagerKernel::~G4RunManagerKernel().
|
inline |
Definition at line 95 of file G4SDManager.hh.
References treeTop.
|
inline |
Definition at line 97 of file G4SDManager.hh.
References G4SDStructure::ListTree().
Referenced by G4SDmessenger::SetNewValue().
|
private |
G4HCofThisEvent * G4SDManager::PrepareNewEvent | ( | ) |
Definition at line 105 of file G4SDManager.cc.
References G4HCtable::entries(), HCtable, G4SDStructure::Initialize(), and treeTop.
Referenced by G4EventManager::DoProcessing().
|
inline |
Definition at line 90 of file G4SDManager.hh.
References G4SDStructure::SetVerboseLevel().
Referenced by B3DetectorConstruction::ConstructSDandField(), ElectronBenchmarkDetector::ConstructSDandField(), B4dDetectorConstruction::ConstructSDandField(), G4SDmessenger::SetNewValue(), RE06ParallelWorld::SetupDetectors(), GB03DetectorConstruction::SetupDetectors(), and RE06DetectorConstruction::SetupDetectors().
void G4SDManager::TerminateCurrentEvent | ( | G4HCofThisEvent * | HCE | ) |
Definition at line 112 of file G4SDManager.cc.
References G4SDStructure::Terminate(), and treeTop.
Referenced by G4EventManager::DoProcessing().
|
staticprivate |
Definition at line 83 of file G4SDManager.hh.
Referenced by GetSDMpointer(), and GetSDMpointerIfExist().
|
private |
Definition at line 86 of file G4SDManager.hh.
Referenced by AddNewCollection(), G4SDManager(), GetCollectionID(), GetHCtable(), PrepareNewEvent(), and ~G4SDManager().
|
private |
Definition at line 87 of file G4SDManager.hh.
Referenced by G4SDManager(), and ~G4SDManager().
|
private |
Definition at line 84 of file G4SDManager.hh.
Referenced by Activate(), AddNewDetector(), FindSensitiveDetector(), G4SDManager(), GetTreeTop(), PrepareNewEvent(), TerminateCurrentEvent(), and ~G4SDManager().
|
private |
Definition at line 85 of file G4SDManager.hh.
Referenced by AddNewCollection(), and AddNewDetector().