Belle II Software development
BeamabortHit.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 BEAMABORTHIT_H
10#define BEAMABORTHIT_H
11
12#include <simulation/dataobjects/SimHitBase.h>
13
14namespace Belle2 {
26 class BeamabortHit : public SimHitBase {
27 public:
28 //typedef std::vector<unsigned int>::iterator iterator;
29 //typedef std::vector<unsigned int>::const_iterator const_iterator;
30
32 BeamabortHit(): m_edep(0), m_I(0), m_time(0), m_detNb(0), m_pdg(0) {}
33
34
42 BeamabortHit(float edep, float I, float time, int detNb, int pdg):
43 m_edep(edep), m_I(I), m_time(time), m_detNb(detNb), m_pdg(pdg)
44 {
45 }
46
48 float getedep() const { return m_edep; }
50 float getI() const { return m_I; }
52 float gettime() const { return m_time; }
54 int getdetNb() const { return m_detNb; }
56 int getPDG() const { return m_pdg; }
57
58 private:
59
61 float m_edep;
63 float m_I;
65 float m_time;
69 int m_pdg;
70
72 };
73
75} // end namespace Belle2
76
77#endif
float getedep() const
Return the energy deposited.
float gettime() const
Return the time.
int m_pdg
Particle PDG.
int getdetNb() const
Return the PIN diode number.
int m_detNb
Detector Number.
BeamabortHit()
default constructor for ROOT
int getPDG() const
Return the PDG of particles.
BeamabortHit(float edep, float I, float time, int detNb, int pdg)
Standard constructor.
float getI() const
Return the amplitude.
float m_edep
Energy deposited.
SimHitBase()
Constructor.
Definition SimHitBase.h:33
Abstract base class for different kinds of events.