Belle II Software  release-05-01-25
DosiHit.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010-2014 Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Martin Ritter, Igal Jaegle *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #ifndef DosiHIT_H
12 #define DosiHIT_H
13 
14 #include <simulation/dataobjects/SimHitBase.h>
15 
16 // ROOT
17 #include <TVector3.h>
18 
19 namespace Belle2 {
33  class DosiHit : public SimHitBase {
34  public:
36  DosiHit(): SimHitBase(), m_CellId(0), m_TrackId(0), m_Pdg(0), m_FlightTime(0), m_Edep(0), m_Momentum(0, 0, 0), m_Position(0, 0, 0),
37  m_Erecdep(0) {;}
39  DosiHit(
40  int CellId,
41  int TrackId,
42  int Pdg,
43  float FlightTime,
44  float Edep,
45  TVector3 Momentum,
46  TVector3 Position,
47  float Erecdep
48  ): SimHitBase()
49  {
50  m_CellId = CellId;
51  m_TrackId = TrackId;
52  m_Pdg = Pdg;
53  m_FlightTime = FlightTime;
54  m_Edep = Edep;
55  m_Momentum = Momentum;
56  m_Position = Position;
57  m_Erecdep = Erecdep;
58 
59  }
60 
61 
62 
63 
66  void setCellId(int CellId) { m_CellId = CellId; }
67 
70  void setTrackId(int TrackId) { m_TrackId = TrackId; }
71 
74  void setPDGCode(int Pdg) { m_Pdg = Pdg; }
75 
78  void setFlightTime(double FlightTime) { m_FlightTime = (float) FlightTime; }
79 
82  void setEnergyDep(double Edep) { m_Edep = (float) Edep; }
83 
86  void setMomentum(TVector3 Momentum) { m_Momentum = Momentum; }
87 
90  void setPosIn(TVector3 Position) { m_Position = Position; }
91 
94  void setPosition(TVector3 Position) { m_Position = Position; }
95 
96 
100  int getCellId() const { return m_CellId; }
101 
105  int getTrackId() const { return m_TrackId; }
106 
110  int getPDGCode() const { return m_Pdg; }
111 
115  double getFlightTime() const { return (double)m_FlightTime; }
116 
120  double getEnergyDep() const { return (double) m_Edep; }
121 
125  double getEnergyRecDep() const { return (double) m_Erecdep; }
126 
130  TVector3 getMomentum() const { return m_Momentum; }
131 
135  TVector3 getPosIn() const { return m_Position; }
136 
140  TVector3 getPosition() const { return m_Position; }
141 
142 
146  void shiftInTime(float delta) override { m_FlightTime += delta; }
147 
148 
149  private:
150  int m_CellId;
151  int m_TrackId;
152  int m_Pdg;
153  float m_FlightTime;
154  float m_Edep;
155  TVector3 m_Momentum;
156  TVector3 m_Position;
157  float m_Erecdep;
159  ClassDefOverride(DosiHit, 1)
160  };
161 
163 } // end namespace Belle2
164 
165 #endif
Belle2::DosiHit::setPosIn
void setPosIn(TVector3 Position)
Set Position.
Definition: DosiHit.h:98
Belle2::DosiHit::setCellId
void setCellId(int CellId)
Set Cell ID.
Definition: DosiHit.h:74
Belle2::DosiHit::getPosition
TVector3 getPosition() const
Get Position.
Definition: DosiHit.h:148
Belle2::DosiHit::getMomentum
TVector3 getMomentum() const
Get Momentum.
Definition: DosiHit.h:138
Belle2::DosiHit::getFlightTime
double getFlightTime() const
Get Flight time from IP.
Definition: DosiHit.h:123
Belle2::DosiHit::m_TrackId
int m_TrackId
Track ID.
Definition: DosiHit.h:159
Belle2::DosiHit::getEnergyRecDep
double getEnergyRecDep() const
Get Deposit energy folded by resolution.
Definition: DosiHit.h:133
Belle2::DosiHit::getPosIn
TVector3 getPosIn() const
Get Position.
Definition: DosiHit.h:143
Belle2::DosiHit::m_Erecdep
float m_Erecdep
Deposit energy reconstructed.
Definition: DosiHit.h:165
Belle2::SimHitBase
Class SimHitBase - A common base for subdetector SimHits.
Definition: SimHitBase.h:38
Belle2::SimHitBase::SimHitBase
SimHitBase()
Constructor.
Definition: SimHitBase.h:43
Belle2::DosiHit::setTrackId
void setTrackId(int TrackId)
Set Track ID.
Definition: DosiHit.h:78
Belle2::DosiHit::m_Position
TVector3 m_Position
Position.
Definition: DosiHit.h:164
Belle2::DosiHit::setPDGCode
void setPDGCode(int Pdg)
Set Particle PDG (can be one of secondaries)
Definition: DosiHit.h:82
Belle2::DosiHit::shiftInTime
void shiftInTime(float delta) override
Shift the Hit in time (needed for beam background mixing)
Definition: DosiHit.h:154
Belle2::DosiHit::setPosition
void setPosition(TVector3 Position)
Set Position.
Definition: DosiHit.h:102
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::DosiHit::setMomentum
void setMomentum(TVector3 Momentum)
Set Momentum.
Definition: DosiHit.h:94
Belle2::DosiHit::m_CellId
int m_CellId
Cell ID.
Definition: DosiHit.h:158
Belle2::DosiHit::setEnergyDep
void setEnergyDep(double Edep)
Set Deposit energy.
Definition: DosiHit.h:90
Belle2::DosiHit::m_Edep
float m_Edep
Deposit energy.
Definition: DosiHit.h:162
Belle2::DosiHit::m_Momentum
TVector3 m_Momentum
Momentum.
Definition: DosiHit.h:163
Belle2::DosiHit::getCellId
int getCellId() const
Get Cell ID.
Definition: DosiHit.h:108
Belle2::DosiHit::m_FlightTime
float m_FlightTime
Flight time from IP.
Definition: DosiHit.h:161
Belle2::DosiHit::getEnergyDep
double getEnergyDep() const
Get Deposit energy.
Definition: DosiHit.h:128
Belle2::DosiHit::getTrackId
int getTrackId() const
Get Track ID.
Definition: DosiHit.h:113
Belle2::DosiHit
ClassDosiHit - Geant4 ulated hit for the Dosi crystal in beast.
Definition: DosiHit.h:41
Belle2::DosiHit::DosiHit
DosiHit()
default constructor for ROOT
Definition: DosiHit.h:44
Belle2::DosiHit::setFlightTime
void setFlightTime(double FlightTime)
Set Flight time from IP.
Definition: DosiHit.h:86
Belle2::DosiHit::getPDGCode
int getPDGCode() const
Get Particle PDG (can be one of secondaries)
Definition: DosiHit.h:118
Belle2::DosiHit::m_Pdg
int m_Pdg
Particle PDG (can be one of secondaries)
Definition: DosiHit.h:160