Belle II Software  release-06-01-15
EKLMSimHit.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 #pragma once
10 
11 /* KLM headers. */
12 #include <klm/dataobjects/eklm/EKLMHitBase.h>
13 #include <klm/dataobjects/eklm/EKLMHitCoord.h>
14 #include <klm/dataobjects/eklm/EKLMHitMomentum.h>
15 
16 /* Belle 2 headers. */
17 #include <simulation/dataobjects/SimHitBase.h>
18 
19 namespace Belle2 {
31  class EKLMSimHit : public SimHitBase, public EKLMHitBase, public EKLMHitCoord,
32  public EKLMHitMomentum {
33  public:
34 
39  {
40  }
41 
46  {
47  }
48 
53  int getTrackID() const
54  {
55  return m_trackID;
56  }
57 
62  void setTrackID(int track)
63  {
64  m_trackID = track;
65  }
66 
71  int getParentTrackID() const
72  {
73  return m_parentTrackID;
74  }
75 
80  void setParentTrackID(int track)
81  {
82  m_parentTrackID = track;
83  }
84 
89  int getVolumeID() const
90  {
91  return m_volid;
92  }
93 
98  void setVolumeID(int id)
99  {
100  m_volid = id;
101  }
102 
107  int getPlane() const
108  {
109  return m_Plane;
110  }
111 
116  void setPlane(int plane)
117  {
118  m_Plane = plane;
119  }
120 
125  int getStrip() const
126  {
127  return m_Strip;
128  }
129 
134  void setStrip(int strip)
135  {
136  m_Strip = strip;
137  }
138 
143  float getGlobalTime() const override
144  {
145  return getTime();
146  }
147 
152  void shiftInTime(float delta) override
153  {
154  setTime(getTime() + delta);
155  }
156 
157  private:
158 
160  int m_trackID = -1;
161 
163  int m_parentTrackID = -1;
164 
166  int m_volid = -1;
167 
169  int m_Plane = -1;
170 
172  int m_Strip = -1;
173 
176 
177  };
178 
180 }
Base hit class.
Definition: EKLMHitBase.h:23
float getTime() const
Get hit time.
Definition: EKLMHitBase.h:118
void setTime(float time)
Set hit time.
Definition: EKLMHitBase.h:127
Hit coordinates.
Definition: EKLMHitCoord.h:26
Class EKLMSimHit stores information on particular Geant step; using information from TrackID and Pare...
Definition: EKLMSimHit.h:32
void setParentTrackID(int track)
Set ID of parent track.
Definition: EKLMSimHit.h:80
int m_parentTrackID
Parent track ID.
Definition: EKLMSimHit.h:163
EKLMSimHit()
Constructor.
Definition: EKLMSimHit.h:38
int m_trackID
Track ID.
Definition: EKLMSimHit.h:160
float getGlobalTime() const override
Get hit time (implementation of base class function)
Definition: EKLMSimHit.h:143
int getPlane() const
Get plane number.
Definition: EKLMSimHit.h:107
int getStrip() const
Get strip number.
Definition: EKLMSimHit.h:125
void setStrip(int strip)
Set strip number.
Definition: EKLMSimHit.h:134
void setTrackID(int track)
Set track ID.
Definition: EKLMSimHit.h:62
int getTrackID() const
Get track ID.
Definition: EKLMSimHit.h:53
int getParentTrackID() const
Get ID of parent track.
Definition: EKLMSimHit.h:71
int m_Plane
Number of plane.
Definition: EKLMSimHit.h:169
ClassDefOverride(Belle2::EKLMSimHit, 2)
Class version.
void setVolumeID(int id)
Set volume identifier.
Definition: EKLMSimHit.h:98
void shiftInTime(float delta) override
Shift SimHit in time (implementation of base class function)
Definition: EKLMSimHit.h:152
~EKLMSimHit()
Destructor.
Definition: EKLMSimHit.h:45
int m_volid
Volume identifier.
Definition: EKLMSimHit.h:166
int m_Strip
Number of strip.
Definition: EKLMSimHit.h:172
void setPlane(int plane)
Set plane number.
Definition: EKLMSimHit.h:116
int getVolumeID() const
Get volume identifier.
Definition: EKLMSimHit.h:89
Class SimHitBase - A common base for subdetector SimHits.
Definition: SimHitBase.h:28
Abstract base class for different kinds of events.