Belle II Software  release-06-02-00
BkgSensitiveDetector.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 #ifndef BACKSENSITIVEDETECTOR_H
10 #define BACKSENSITIVEDETECTOR_H
11 
12 #include <simulation/kernel/SensitiveDetectorBase.h>
13 
14 namespace Belle2 {
21 
25 
26  public:
27 
34  explicit BkgSensitiveDetector(const char* subDet, int iden = 0);
35 
41  bool step(G4Step* aStep, G4TouchableHistory*) override;
42 
43 
44  private:
45  int m_subDet;
47  int m_trackID;
48  TVector3 m_startPos;
49  TVector3 m_startMom;
50  double m_startTime;
51  double m_startEnergy;
52  double m_energyDeposit;
53  double m_trackLength;
55  }; // SensitiveDetector class
57 } // end of namespace Belle2
58 
59 #endif /* BACKENSITIVEDETECTOR_H */
The Class for BeamBackground Sensitive Detector.
double m_energyDeposit
energy deposited in volume
TVector3 m_startMom
particle momentum at the entrance in volume
TVector3 m_startPos
particle position at the entrance in volume
double m_startEnergy
particle energy at the entrance in volume
double m_trackLength
length of the track in the volume
int m_eclrepscale
replica (=sector) scale in ECL
int m_subDet
subdetector id number
int m_identifier
identifier of subdetector component
Base class for all Sensitive Detectors to create hits during simulation.
BkgSensitiveDetector(const char *subDet, int iden=0)
Constructor.
bool step(G4Step *aStep, G4TouchableHistory *) override
Process each step and calculate variables defined in PXDSimHit.
Abstract base class for different kinds of events.