11 #include <cdc/dataobjects/WireID.h>
12 #include <simulation/dataobjects/SimHitBase.h>
164 int zeroOrOne = (minusOneOrZeroOrOne <= 0) ? 0 : 1;
172 int zeroOrOne = (minusOneOrZeroOrOne <= 0) ? 0 : 1;
239 int zeroOrOne = (int((
m_leftRight & 0x2) >> 1) == 0) ? 0 : 1;
248 int zeroOrOne = (int((
m_leftRight & 0x4) >> 2) == 0) ? 0 : 1;
int getPDGCode() const
The method to get PDG code.
void setLeftRightPassageRaw(int minusOneOrZeroOrOne)
The method to set new left/right info. for digitization.
double getStepLength() const
The method to get step length.
float m_globalTime
Time of energy deposition.
void setPosOut(TVector3 posOut)
The method to set position of post-step.
int getTrackId() const
The method to get track id.
float m_flightTime
Flight time from IP.
TVector3 getPosWire() const
The method to get position on wire.
void setPosFlag(int zeroOrOne)
The method to set position flag.
unsigned char m_leftRight
The flag to denote this hit is in the left or right side.
double getFlightTime() const
The method to get flight time.
float m_posOut[3]
Position of post-step.
float getGlobalTime() const override
The method to get global time.
void setPosWire(TVector3 posWire)
The method to set position on wire.
WireID getWireID() const
Getter for WireID object.
void setWireID(int iCLayerID, int iWireID)
Setter for Wire ID.
void setGlobalTime(double globalTime)
The method to set global time.
double getEnergyDep() const
The method to get deposited energy.
void setTrackId(int trackId)
The method to set track id.
void setPDGCode(int pdg)
The method to set PDG code.
float m_posIn[3]
Position of pre-step.
TVector3 getMomentum() const
The method to get momentum.
int m_pdg
Particle PDG (can be one of secondaries).
void setEnergyDep(double edep)
The method to set deposited energy.
float m_stepLength
Step length of this hit.
void setDriftLength(double driftLength)
The method to set drift length.
CDCSimHit()
Empty constructor.
float m_posWire[3]
The position on wire which is closest to this hit.
CDCSimHit(int layerId, int wireId, int trackId, int pdg, double driftLength, double flightTime, double edep, double stepLength, TVector3 momentum, TVector3 posWire, TVector3 posIn, TVector3 posOut, TVector3 posTrack, int leftRight, double globalTime)
Useful Constructor.
void setStepLength(double stepLength)
The method to set step length.
void setMomentum(TVector3 momentum)
The method to set momentum.
ClassDefOverride(CDCSimHit, 6)
ROOT Macro.
int getPosFlag() const
The method to get old left/right info.
WireID m_wireID
The WireID of the hit.
double getDriftLength() const
The method to get drift length.
unsigned short m_trackId
The track id of this hit.
float m_driftLength
Drift length of this hit.
TVector3 getPosIn() const
The method to get position of pre-step.
void setFlightTime(double flightTime)
The method to set flight time.
float m_edep
Deposited energy of this hit.
virtual void shiftInTime(float delta) override
Shift the SimHit in time.
int getLeftRightPassageRaw() const
The method to get new left/right info. for digitization.
int getLeftRightPassage() const
The method to get new left/right info. for tracking.
TVector3 getPosTrack() const
The method to get position on the track.
void setPosTrack(TVector3 posTrack)
The method to set position on the track.
float m_momentum[3]
The momentum at closest point.
TVector3 getPosOut() const
The method to get position of post-step.
float m_posTrack[3]
Position on the track.
void setPosIn(TVector3 posIn)
The method to set position of pre-step.
void setLeftRightPassage(int minusOneOrZeroOrOne)
The method to set new left/right info. for tracking.
Class SimHitBase - A common base for subdetector SimHits.
Class to identify a wire inside the CDC.
void setWireID(unsigned short iSuperLayer, unsigned short iLayer, unsigned short iWire)
Setter using official numbering.
Abstract base class for different kinds of events.