Belle II Software  release-08-01-10
He3tubeHit.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 He3tubeHIT_H
10 #define He3tubeHIT_H
11 
12 #include <simulation/dataobjects/SimHitBase.h>
13 
14 namespace Belle2 {
26  class He3tubeHit : public SimHitBase {
27  public:
28  //typedef std::vector<unsigned int>::iterator iterator;
29  //typedef std::vector<unsigned int>::const_iterator const_iterator;
30 
33 
34 
42  He3tubeHit(double energyDep, int detNb, double peakV, double time, bool definiteNeutron)
43  {
44  m_energyDep = energyDep;
45  m_detNb = detNb;
46  m_peakV = peakV;
47  m_time = time;
49  }
50 
52  double getEnergyDep() const { return m_energyDep; }
54  int getdetNb() const { return m_detNb; }
56  double getPeakV() const { return m_peakV; }
58  double getTime() const { return m_time; }
60  bool definiteNeutron() const { return m_definiteNeutron;}
61 
62  private:
64  double m_energyDep;
66  int m_detNb;
68  double m_peakV;
70  double m_time;
73 
75  };
76 
78 } // end namespace Belle2
79 
80 #endif
ClassHe3Hit - digitization simulated hit for the He3tube detector.
Definition: He3tubeHit.h:26
bool m_definiteNeutron
true if this is definitely a neutron event
Definition: He3tubeHit.h:72
bool definiteNeutron() const
true if this is definitely a neutron event
Definition: He3tubeHit.h:60
double m_peakV
waveform peak
Definition: He3tubeHit.h:68
double m_time
time of hit
Definition: He3tubeHit.h:70
He3tubeHit()
default constructor for ROOT
Definition: He3tubeHit.h:32
double getEnergyDep() const
Return the energy deposition in electrons.
Definition: He3tubeHit.h:52
double getPeakV() const
Return peak.
Definition: He3tubeHit.h:56
He3tubeHit(double energyDep, int detNb, double peakV, double time, bool definiteNeutron)
Standard constructor.
Definition: He3tubeHit.h:42
int getdetNb() const
Return the tube number.
Definition: He3tubeHit.h:54
int m_detNb
Detector Number.
Definition: He3tubeHit.h:66
double m_energyDep
Deposited energy in electrons.
Definition: He3tubeHit.h:64
double getTime() const
Return time of hit.
Definition: He3tubeHit.h:58
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
Class SimHitBase - A common base for subdetector SimHits.
Definition: SimHitBase.h:28
Abstract base class for different kinds of events.