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