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
ClassBeamabortHit - digitization simulated hit for the Beamabort detector.
Definition: BeamabortHit.h:26
float getedep() const
Return the energy deposited.
Definition: BeamabortHit.h:48
float gettime() const
Return the time.
Definition: BeamabortHit.h:52
int m_pdg
Particle PDG.
Definition: BeamabortHit.h:69
int getdetNb() const
Return the PIN diode number.
Definition: BeamabortHit.h:54
int m_detNb
Detector Number.
Definition: BeamabortHit.h:67
BeamabortHit()
default constructor for ROOT
Definition: BeamabortHit.h:32
int getPDG() const
Return the PDG of particles.
Definition: BeamabortHit.h:56
BeamabortHit(float edep, float I, float time, int detNb, int pdg)
Standard constructor.
Definition: BeamabortHit.h:42
float getI() const
Return the amplitude.
Definition: BeamabortHit.h:50
float m_edep
Energy deposited.
Definition: BeamabortHit.h:61
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.