Belle II Software  release-05-01-25
SensitiveDetector.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Martin Ritter, Igal Jaegle *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #ifndef MICROTPC_SENSITIVEDETECTOR_H
11 #define MICROTPC_SENSITIVEDETECTOR_H
12 
13 #include <simulation/kernel/SensitiveDetectorBase.h>
14 
15 namespace Belle2 {
21  namespace microtpc {
22 
24  class SensitiveDetector: public Simulation::SensitiveDetectorBase {
25  public:
28 
30  int saveG4TrackInfo(
31  int trackID,
32  int PDG,
33  float Mass,
34  float Energy,
35  float vtx[3],
36  float mom[3]
37  );
38 
39  protected:
40 
45  bool step(G4Step* step, G4TouchableHistory*) override;
46  int m_trackID;
47  };
48  } //microtpc namespace
50 } //Belle2 namespace
51 
52 #endif
Belle2::microtpc::SensitiveDetector::saveG4TrackInfo
int saveG4TrackInfo(int trackID, int PDG, float Mass, float Energy, float vtx[3], float mom[3])
Save saveG4TrackInfo into datastore.
Definition: SensitiveDetector.cc:149
Belle2::microtpc::SensitiveDetector::step
bool step(G4Step *step, G4TouchableHistory *) override
Step processing method.
Definition: SensitiveDetector.cc:60
Belle2::microtpc::SensitiveDetector::SensitiveDetector
SensitiveDetector()
Constructor.
Definition: SensitiveDetector.cc:37
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::PXD::SensitiveDetector
VXD::SensitiveDetector< PXDSimHit, PXDTrueHit > SensitiveDetector
The PXD Sensitive Detector class.
Definition: SensitiveDetector.h:36