Belle II Software  release-05-01-25
PindiodeHit.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010-2011 Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Igal Jaegle *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #ifndef PINDIODEHIT_H
12 #define PINDIODEHIT_H
13 
14 #include <simulation/dataobjects/SimHitBase.h>
15 
16 namespace Belle2 {
28  class PindiodeHit : public SimHitBase {
29  public:
30  //typedef std::vector<unsigned int>::iterator iterator;
31  //typedef std::vector<unsigned int>::const_iterator const_iterator;
32 
34  PindiodeHit(): m_edep(0), m_V(0), m_time(0), m_detNb(0), m_pdg(0) {}
35 
36 
40  PindiodeHit(float edep, float V, float time, int detNb, int pdg):
41  m_edep(edep), m_V(V), m_time(time), m_detNb(detNb), m_pdg(pdg)
42  {
43  }
44 
46  float getedep() const { return m_edep; }
48  float getV() const { return m_V; }
50  float gettime() const { return m_time; }
52  int getdetNb() const { return m_detNb; }
54  int getPDG() const { return m_pdg; }
55 
56  private:
57 
59  float m_edep;
61  float m_V;
63  float m_time;
65  int m_detNb;
67  int m_pdg;
68 
70  };
71 
73 } // end namespace Belle2
74 
75 #endif
Belle2::PindiodeHit::getV
float getV() const
Return the amplitude.
Definition: PindiodeHit.h:56
Belle2::RelationsInterface::ClassDef
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
Belle2::PindiodeHit::m_V
float m_V
V.
Definition: PindiodeHit.h:69
Belle2::PindiodeHit
ClassPindiodeHit - digitization simulated hit for the Pindiode detector.
Definition: PindiodeHit.h:36
Belle2::PindiodeHit::m_pdg
int m_pdg
Particle PDG.
Definition: PindiodeHit.h:75
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::PindiodeHit::PindiodeHit
PindiodeHit()
default constructor for ROOT
Definition: PindiodeHit.h:42
Belle2::PindiodeHit::getdetNb
int getdetNb() const
Return the PIN diode number.
Definition: PindiodeHit.h:60
Belle2::PindiodeHit::m_detNb
int m_detNb
Detector Number.
Definition: PindiodeHit.h:73
Belle2::PindiodeHit::m_edep
float m_edep
Energy deposited.
Definition: PindiodeHit.h:67
Belle2::PindiodeHit::gettime
float gettime() const
Return the time.
Definition: PindiodeHit.h:58
Belle2::PindiodeHit::getedep
float getedep() const
Return the energy deposited.
Definition: PindiodeHit.h:54
Belle2::PindiodeHit::getPDG
int getPDG() const
Return the PDG of particles.
Definition: PindiodeHit.h:62
Belle2::PindiodeHit::m_time
float m_time
time
Definition: PindiodeHit.h:71