Belle II Software development
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#pragma once
10
11#include <simulation/kernel/SensitiveDetectorBase.h>
12
13#include <Math/Vector3D.h>
14
15namespace Belle2 {
22
26
27 public:
28
35 explicit BkgSensitiveDetector(const char* subDet, int iden = 0);
36
42 bool step(G4Step* aStep, G4TouchableHistory*) override;
43
44
45 private:
46
49
52
55
57 ROOT::Math::XYZVector m_startPos;
58
60 ROOT::Math::XYZVector m_startMom;
61
64
67
70
73
76
77 }; // SensitiveDetector class
79} // end of namespace Belle2
The Class for BeamBackground Sensitive Detector.
double m_energyDeposit
Energy deposited in volume.
ROOT::Math::XYZVector 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.
ROOT::Math::XYZVector m_startMom
Particle momentum at the entrance in volume.
int m_identifier
Identifier of subdetector component.
Base class for all Sensitive Detectors to create hits during simulation.
bool step(G4Step *aStep, G4TouchableHistory *) override
Process each step and calculate variables defined in PXDSimHit.
Abstract base class for different kinds of events.