Belle II Software  release-08-01-10
CaveSimHit.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 CaveSIMHIT_H
10 #define CaveSIMHIT_H
11 
12 // ROOT
13 #include <TObject.h>
14 
15 namespace Belle2 {
28  class CaveSimHit : public TObject {
29  public:
32 
33 
38  CaveSimHit(float energyDep, int detNb):
39  m_energyDep(energyDep), m_detNb(detNb) {}
40 
42  float getEnergyDep() const { return m_energyDep; }
44  int getdetNb() const { return m_detNb; }
45 
46 
47  private:
49  float m_energyDep;
51  int m_detNb;
52 
53  ClassDef(CaveSimHit, 1)
54  };
55 
57 } // end namespace Belle2
58 
59 #endif
ClassCaveSimHit - Geant4 simulated hit for the Cave detector.
Definition: CaveSimHit.h:28
float m_energyDep
Deposited energy in electrons.
Definition: CaveSimHit.h:49
float getEnergyDep() const
Return the energy deposition in electrons.
Definition: CaveSimHit.h:42
int getdetNb() const
Return the TPC number.
Definition: CaveSimHit.h:44
int m_detNb
block number
Definition: CaveSimHit.h:51
CaveSimHit(float energyDep, int detNb)
Standard constructor.
Definition: CaveSimHit.h:38
CaveSimHit()
default constructor for ROOT
Definition: CaveSimHit.h:31
Abstract base class for different kinds of events.