Belle II Software  release-05-02-19
BKLMSimHit.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Leo Piilonen *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 /* KLM headers. */
14 #include <klm/dataobjects/bklm/BKLMElementNumbers.h>
15 #include <klm/dataobjects/bklm/BKLMStatus.h>
16 
17 /* Belle 2 headers. */
18 #include <simulation/dataobjects/SimHitBase.h>
19 
20 namespace Belle2 {
26  class BKLMSimHit : public SimHitBase {
28 
29  public:
30 
32  BKLMSimHit();
33 
40  BKLMSimHit(int moduleID, double x, double t, double dE);
41 
43  virtual ~BKLMSimHit()
44  {
45  }
46 
48  BKLMSimHit(const BKLMSimHit&);
49 
52 
55  bool inRPC() const
56  {
58  }
59 
62  int getSection() const
63  {
65  }
66 
69  int getSector() const
70  {
72  }
73 
76  int getLayer() const
77  {
79  }
80 
83  int getPlane() const
84  {
86  }
87 
90  bool isPhiReadout() const
91  {
94  }
95 
98  int getStrip() const
99  {
101  }
102 
105  int getStripMin() const
106  {
108  }
109 
112  int getStripMax() const
113  {
115  }
116 
119  int getModuleID() const
120  {
121  return m_ModuleID;
122  }
123 
126  float getPropagationTime() const
127  {
128  return m_PropagationTime;
129  }
130 
133  float getGlobalTime() const override
134  {
135  return m_Time;
136  }
137 
140  double getTime() const
141  {
142  return (double)m_Time;
143  }
144 
147  double getEnergyDeposit() const
148  {
149  return (double)m_EDep;
150  }
151 
154  void shiftInTime(float delta) override
155  {
156  m_Time += delta;
157  }
158 
159  private:
160 
163  int m_ModuleID;
164 
166  float m_Time;
167 
169  float m_EDep;
170 
172  float m_PropagationTime;
173 
176 
177  };
178 
180 } // end of namespace Belle2
Belle2::BKLMSimHit::m_ModuleID
int m_ModuleID
detector-module identifier
Definition: BKLMSimHit.h:171
Belle2::BKLMElementNumbers::getStripByModule
static int getStripByModule(int module)
Get strip number by module identifier.
Definition: BKLMElementNumbers.h:332
Belle2::BKLMElementNumbers::getSectorByModule
static int getSectorByModule(int module)
Get sector number by module identifier.
Definition: BKLMElementNumbers.h:308
Belle2::BKLMStatus::getMaximalStrip
static int getMaximalStrip(int module)
Get maximal strip number.
Definition: BKLMStatus.h:87
Belle2::BKLMSimHit::getSection
int getSection() const
Get section number.
Definition: BKLMSimHit.h:70
Belle2::BKLMSimHit::getLayer
int getLayer() const
Get layer number.
Definition: BKLMSimHit.h:84
Belle2::BKLMSimHit::getStrip
int getStrip() const
Get strip number of this hit.
Definition: BKLMSimHit.h:106
Belle2::BKLMSimHit::isPhiReadout
bool isPhiReadout() const
Get readout coordinate.
Definition: BKLMSimHit.h:98
Belle2::BKLMElementNumbers::getLayerByModule
static int getLayerByModule(int module)
Get layer number by module identifier.
Definition: BKLMElementNumbers.h:316
Belle2::BKLMSimHit::BKLMSimHit
BKLMSimHit()
Empty constructor for ROOT IO (needed to make the class storable)
Definition: BKLMSimHit.cc:17
Belle2::BKLMSimHit::shiftInTime
void shiftInTime(float delta) override
Adjust time (for background-overlay hit)
Definition: BKLMSimHit.h:162
Belle2::BKLMSimHit::getSector
int getSector() const
Get sector number.
Definition: BKLMSimHit.h:77
Belle2::BKLMSimHit::getEnergyDeposit
double getEnergyDeposit() const
Get energy deposition.
Definition: BKLMSimHit.h:155
Belle2::BKLMSimHit::ClassDefOverride
ClassDefOverride(BKLMSimHit, 5)
Needed to make the ROOT object storable.
Belle2::BKLMSimHit::inRPC
bool inRPC() const
Determine whether this hit is in an RPC or scintillator.
Definition: BKLMSimHit.h:63
Belle2::BKLMSimHit::m_EDep
float m_EDep
energy deposition (MeV)
Definition: BKLMSimHit.h:177
Belle2::BKLMElementNumbers::getSectionByModule
static int getSectionByModule(int module)
Get section number by module identifier.
Definition: BKLMElementNumbers.h:300
Belle2::BKLMSimHit::m_PropagationTime
float m_PropagationTime
time-of-propagation (ns) from hit to sensor
Definition: BKLMSimHit.h:180
Belle2::BKLMSimHit::getStripMax
int getStripMax() const
Get highest readout strip number of a contiguous set.
Definition: BKLMSimHit.h:120
Belle2::BKLMSimHit::getTime
double getTime() const
Get the hit time.
Definition: BKLMSimHit.h:148
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::BKLMElementNumbers::getPlaneByModule
static int getPlaneByModule(int module)
Get plane number (0 = z, 1 = phi) by module identifier.
Definition: BKLMElementNumbers.h:324
Belle2::BKLMSimHit::~BKLMSimHit
virtual ~BKLMSimHit()
Destructor.
Definition: BKLMSimHit.h:51
Belle2::BKLMSimHit::getModuleID
int getModuleID() const
Get detector-module identifier.
Definition: BKLMSimHit.h:127
Belle2::BKLMSimHit::m_Time
float m_Time
event hit time (ns)
Definition: BKLMSimHit.h:174
Belle2::BKLMSimHit::getStripMin
int getStripMin() const
Get lowest readout strip number of a contiguous set.
Definition: BKLMSimHit.h:113
Belle2::BKLMSimHit
Store one simulation hit as a ROOT object.
Definition: BKLMSimHit.h:35
Belle2::BKLMElementNumbers::c_FirstRPCLayer
@ c_FirstRPCLayer
First RPC layer.
Definition: BKLMElementNumbers.h:71
Belle2::BKLMSimHit::operator=
BKLMSimHit & operator=(const BKLMSimHit &)
Assignment operator.
Definition: BKLMSimHit.cc:47
Belle2::BKLMSimHit::getPropagationTime
float getPropagationTime() const
Get signal propagation time alont strip.
Definition: BKLMSimHit.h:134
Belle2::BKLMSimHit::getGlobalTime
float getGlobalTime() const override
Get the hit time (implementation of base class function.
Definition: BKLMSimHit.h:141
Belle2::BKLMElementNumbers::c_PhiPlane
@ c_PhiPlane
Phi.
Definition: BKLMElementNumbers.h:84
Belle2::BKLMSimHit::getPlane
int getPlane() const
Get plane number.
Definition: BKLMSimHit.h:91