12 #include <klm/dataobjects/bklm/BKLMSimHit.h>
13 #include <klm/dataobjects/bklm/BKLMSimHitPosition.h>
14 #include <klm/dbobjects/bklm/BKLMSimulationPar.h>
17 #include <framework/datastore/StoreArray.h>
18 #include <framework/datastore/RelationArray.h>
19 #include <framework/database/DBObjPtr.h>
20 #include <mdst/dataobjects/MCParticle.h>
21 #include <simulation/kernel/SensitiveDetectorBase.h>
29 class BkgSensitiveDetector;
46 bool step(G4Step*, G4TouchableHistory*)
override;
The Class for BeamBackground Sensitive Detector.
Class for accessing objects in the database.
Low-level class to create/modify relations between StoreArrays.
Base class for all Sensitive Detectors to create hits during simulation.
Provides BKLM geometry parameters for simulation, reconstruction etc (from Gearbox or DataBase)
Define the geometry of a BKLM module Each sector [octant] contains Modules.
Class for the BKLM Sensitive Detector Each qualified simulation step is saved into a StoreArray of BK...
DBObjPtr< BKLMSimulationPar > m_SimPar
Simulation parameters (from DB)
void convertHitToRPCStrips(const CLHEP::Hep3Vector &, const Module *, int &, int &, int &, int &)
Find the ranges of matching RPC strips for each simulated hit.
bool m_FirstCall
Flag to enforce once-only initializations in Initialize()
static constexpr int m_DepthSection
Section depth.
static constexpr int m_DepthSector
Sector depth.
StoreArray< BKLMSimHit > m_SimHits
BKLM simulated hits.
double m_HitTimeMax
maximum permissible hit time (based on overflow of LeCroy 1877 TDC)
BkgSensitiveDetector * m_BkgSensitiveDetector
Pointer to a sensitive-detector object used for beam-background steps.
RelationArray m_MCParticlesToSimHits
Relation array between MCPartices and BKLMSimHits.
SensitiveDetector(const G4String &name)
Constructor.
StoreArray< BKLMSimHitPosition > m_SimHitPositions
BKLM simulated hit positions.
GeometryPar * m_GeoPar
Pointer to GeometryPar singleton.
bool step(G4Step *, G4TouchableHistory *) override
Process each step in the BKLM.
static constexpr int m_DepthScintillator
Scintillator depth.
static constexpr int m_DepthPlane
Plane depth.
StoreArray< MCParticle > m_MCParticles
MC particles.
static constexpr int m_DepthLayer
Layer depth.
Abstract base class for different kinds of events.