 |
Belle II Software
release-05-02-19
|
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
Small helper class to facilitate debugging of VXD::SensitiveDetector implementation.
@ SIZE_EDEP
number of values per energy deposition point
@ MAX_STEPS
assume maximum number of steps per sensor traversal
Class to uniquely identify a any structure of the PXD and SVD.
@ MAX_HITS
assume maximum number of simhits per sensor traversal
Class to keep track of the traversal of the sensitive volume for one track.
@ MAX_EDEP
assume maximum number of energy deposition points per sensor traversal
int trueN
number of values used in trueInfo
SensitiveDetectorDebugHelper()
Singleton class: private constructor.
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.
double stepInfo[SIZE_STEP *MAX_STEPS]
values for the step points
@ SIZE_HITS
number of values per simhit
struct with all the branches needed
@ SIZE_TRUE
number of values per truehit
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
@ SIZE_STEP
number of values per step
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
int pdg
pdg code for the current track
int primary
whether or not the track is from a primary particle
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.