Belle II Software  release-05-01-25
ClawHit.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 CLAWHIT_H
12 #define CLAWHIT_H
13 
14 #include <simulation/dataobjects/SimHitBase.h>
15 
16 namespace Belle2 {
28  class ClawHit : public SimHitBase {
29  public:
30  //typedef std::vector<unsigned int>::iterator iterator;
31  //typedef std::vector<unsigned int>::const_iterator const_iterator;
32 
34  ClawHit(): m_detNb(0), m_time(0), m_edep(0), m_mip(0), m_pe(0) {}
35 
36 
40  ClawHit(int detNb, int time, float edep, float mip, float pe):
41  m_detNb(detNb), m_time(time), m_edep(edep), m_mip(mip), m_pe(pe)
42  {
43  }
44 
46  int getdetNb() const { return m_detNb; }
48  int gettime() const { return m_time; }
50  float getedep() const { return m_edep; }
52  float getMIP() const { return m_mip; }
54  float getPE() const { return m_pe; }
55 
56  private:
57 
59  int m_detNb;
61  int m_time;
63  float m_edep;
65  float m_mip;
67  float m_pe;
68 
70  };
71 
73 } // end namespace Belle2
74 
75 #endif
Belle2::ClawHit
ClassClawHit - digitization simulated hit for the Claw detector.
Definition: ClawHit.h:36
Belle2::ClawHit::m_mip
float m_mip
Particle mip.
Definition: ClawHit.h:73
Belle2::ClawHit::getPE
float getPE() const
Return PE.
Definition: ClawHit.h:62
Belle2::RelationsInterface::ClassDef
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
Belle2::ClawHit::gettime
int gettime() const
Return the time.
Definition: ClawHit.h:56
Belle2::ClawHit::m_pe
float m_pe
Particle pe.
Definition: ClawHit.h:75
Belle2::ClawHit::getedep
float getedep() const
Return the energy deposited.
Definition: ClawHit.h:58
Belle2::ClawHit::getMIP
float getMIP() const
Return MIP.
Definition: ClawHit.h:60
Belle2::ClawHit::ClawHit
ClawHit()
default constructor for ROOT
Definition: ClawHit.h:42
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ClawHit::m_time
int m_time
time
Definition: ClawHit.h:69
Belle2::ClawHit::m_edep
float m_edep
Energy deposited.
Definition: ClawHit.h:71
Belle2::ClawHit::m_detNb
int m_detNb
Detector Number.
Definition: ClawHit.h:67
Belle2::ClawHit::getdetNb
int getdetNb() const
Return the PIN diode number.
Definition: ClawHit.h:54