 |
Belle II Software
release-05-01-25
|
12 #ifndef VXD_SIMULATION_SENSITIVEDETECTORDEBUGHELPER_H
13 #define VXD_SIMULATION_SENSITIVEDETECTORDEBUGHELPER_H
15 #include <vxd/simulation/SensorTraversal.h>
16 #include <vxd/dataobjects/VxdID.h>
17 #include <vxd/dataobjects/VXDTrueHit.h>
18 #include <vxd/dataobjects/VXDSimHit.h>
130 #endif // VXD_SIMULATION_DEBUGFILE_H
@ SIZE_STEP
number of values per step
Small helper class to facilitate debugging of VXD::SensitiveDetector implementation.
Class to uniquely identify a any structure of the PXD and SVD.
Class to keep track of the traversal of the sensitive volume for one track.
int trueN
number of values used in trueInfo
SensitiveDetectorDebugHelper()
Singleton class: private constructor.
@ MAX_EDEP
assume maximum number of energy deposition points per sensor traversal
TFile * m_file
ROOT File to write information to.
void finishTraversal()
Finish the entry by calling Fill()
Class VXDTrueHit - Records of tracks that either enter or leave the sensitive volume.
double length
track length
void addSimHit(const VXDSimHit *simhit, int startPoint, int endPoint)
Write the information normally used when creating SimHits to the entry.
@ MAX_HITS
assume maximum number of simhits per sensor traversal
double stepInfo[SIZE_STEP *MAX_STEPS]
values for the step points
struct with all the branches needed
int sensorID
id of the sensor for the current track
TTree * m_tree
ROOT Tree to write information to.
int edepN
number of values used in edepInfo
Abstract base class for different kinds of events.
double edepInfo[SIZE_EDEP *MAX_EDEP]
values for the energy deposition
void addTrueHit(const VXDTrueHit *truehit)
Write the information normally used when creating TrueHits to the entry.
void startTraversal(VxdID sensorID, const SensorTraversal &traversal)
Start writing a new sensor traversal: Geant4 steps will be added to the ROOT entry.
double trueInfo[SIZE_TRUE]
values for the truehit
static SensitiveDetectorDebugHelper & getInstance()
Singleton class: get instance.
struct Belle2::VXD::SensitiveDetectorDebugHelper::info m_info
object to store all variables
int stepN
number of values used in stepInfo
@ MAX_STEPS
assume maximum number of steps per sensor traversal
int pdg
pdg code for the current track
@ SIZE_TRUE
number of values per truehit
@ SIZE_EDEP
number of values per energy deposition point
int primary
whether or not the track is from a primary particle
@ SIZE_HITS
number of values per simhit
int simhitN
number of values used in simhitInfo
double simhitInfo[SIZE_HITS *MAX_HITS]
values for the simhits
int contained
whether or not the track was contained in the senitive volume
SensitiveDetectorDebugHelper & operator=(const SensitiveDetectorDebugHelper &)=delete
Singleton class: no assignment operator.
~SensitiveDetectorDebugHelper()
Destructor: write root file.
Class VXDSimHit - Geant4 simulated hit for the VXD.