12 #include <simulation/dataobjects/SimHitBase.h>
34 CsiHit_v2():
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,
ClassCsiHit_v2 - Geant4 simulated hits in CsI crystals in BEAST.
TVector3 m_Position
Position.
int getPDGCode() const
Get Particle PDG (can be one of secondaries)
void setEnergyDep(double Edep)
Set Deposit energy.
int getTrackId() const
Get Track ID.
int getCellId() const
Get Cell ID.
double getFlightTime() const
Get Flight time from IP.
void setPDGCode(int Pdg)
Set Particle PDG (can be one of secondaries)
double getEnergyRecDep() const
Get Deposit energy folded by resolution.
void setCellId(int CellId)
Set Cell ID.
TVector3 m_Momentum
Momentum.
double getEnergyDep() const
Get Deposit energy.
float m_FlightTime
Flight time from IP.
float m_Edep
Deposit energy.
TVector3 getMomentum() const
Get Momentum.
void setPosition(TVector3 Position)
Set Position.
float m_Erecdep
Deposit energy reconstructed.
void setTrackId(int TrackId)
Set Track ID.
TVector3 getPosition() const
Get Position.
void setPosIn(TVector3 Position)
Set Position.
void setFlightTime(double FlightTime)
Set Flight time from IP.
TVector3 getPosIn() const
Get Position.
CsiHit_v2(int CellId, int TrackId, int Pdg, float FlightTime, float Edep, TVector3 Momentum, TVector3 Position, float Erecdep)
Useful Constructor.
void setMomentum(TVector3 Momentum)
Set Momentum.
void shiftInTime(float delta) override
Shift the SimHit in time (needed for beam background mixing)
CsiHit_v2()
default constructor for ROOT
int m_Pdg
Particle PDG (can be one of secondaries)
Class SimHitBase - A common base for subdetector SimHits.
Abstract base class for different kinds of events.