BDSSDManager Class Reference

A singleton class that holds all required sensitive detector class instances. Each sensitive detector class need only be instantiated once and attached to the relevant volume. More factorised geometry construction will mean SDs will be assigned in construction and not in detector construciton afterwards as a post processing step. This instantiates all necessary SDs and holds them. More...

#include <BDSSDManager.hh>

Collaboration diagram for BDSSDManager:

Collaboration graph
[legend]

Public Member Functions

 ~BDSSDManager ()
 singleton accessort
BDSSamplerSDGetSamplerPlaneSD ()
 SD for samplers (plane type).
BDSSamplerSDGetSamplerCylinderSD ()
 SD for samplers (cylinder type).
BDSEnergyCounterSDGetEnergyCounterOnAxisSD ()
 SD for any component that's symmetric about the beam axis.
BDSEnergyCounterSDGetEnergyCounterOnAxisSDRO ()

Static Public Member Functions

static BDSSDManagerInstance ()

Private Member Functions

 BDSSDManager ()
void ConstructECounterSDOnAxisOnDemand ()
 function to create the energy counter SD on demand

Private Attributes

BDSSamplerSDsamplerPlane
BDSSamplerSDsamplerCylinder
BDSEnergyCounterSDeCounterOnAxis
BDSEnergyCounterSDeCounterOnAxisRO

Static Private Attributes

static BDSSDManager_instance = 0
 private default constructor for singleton

Detailed Description

A singleton class that holds all required sensitive detector class instances. Each sensitive detector class need only be instantiated once and attached to the relevant volume. More factorised geometry construction will mean SDs will be assigned in construction and not in detector construciton afterwards as a post processing step. This instantiates all necessary SDs and holds them.

Definition at line 17 of file BDSSDManager.hh.


Member Function Documentation

BDSEnergyCounterSD * BDSSDManager::GetEnergyCounterOnAxisSDRO (  ) 

SD for any component that's symmetric about the beam axis and uses the read out geometry

Definition at line 49 of file BDSSDManager.cc.

References ConstructECounterSDOnAxisOnDemand(), and eCounterOnAxisRO.

Referenced by BDSDetectorConstruction::ComponentPlacement().

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
Generated on 28 Jun 2015 for BDSIM by  doxygen 1.4.7