Belle II Software development
PindiodeHit.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 PINDIODEHIT_H
10#define PINDIODEHIT_H
11
12#include <simulation/dataobjects/SimHitBase.h>
13
14namespace Belle2 {
26 class PindiodeHit : public SimHitBase {
27 public:
28 //typedef std::vector<unsigned int>::iterator iterator;
29 //typedef std::vector<unsigned int>::const_iterator const_iterator;
30
32 PindiodeHit(): m_edep(0), m_V(0), m_time(0), m_detNb(0), m_pdg(0) {}
33
34
42 PindiodeHit(float edep, float V, float time, int detNb, int pdg):
43 m_edep(edep), m_V(V), m_time(time), m_detNb(detNb), m_pdg(pdg)
44 {
45 }
46
48 float getedep() const { return m_edep; }
50 float getV() const { return m_V; }
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_V;
65 float m_time;
69 int m_pdg;
70
72 };
73
75} // end namespace Belle2
76
77#endif
ClassPindiodeHit - digitization simulated hit for the Pindiode detector.
Definition: PindiodeHit.h:26
float getV() const
Return the amplitude.
Definition: PindiodeHit.h:50
float getedep() const
Return the energy deposited.
Definition: PindiodeHit.h:48
PindiodeHit(float edep, float V, float time, int detNb, int pdg)
Standard constructor.
Definition: PindiodeHit.h:42
float gettime() const
Return the time.
Definition: PindiodeHit.h:52
int m_pdg
Particle PDG.
Definition: PindiodeHit.h:69
int getdetNb() const
Return the PIN diode number.
Definition: PindiodeHit.h:54
int m_detNb
Detector Number.
Definition: PindiodeHit.h:67
PindiodeHit()
default constructor for ROOT
Definition: PindiodeHit.h:32
int getPDG() const
Return the PDG of particles.
Definition: PindiodeHit.h:56
float m_edep
Energy deposited.
Definition: PindiodeHit.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.