Local3DVector LocalVector
LocalVector localDirection() const
Obsolete. Same as momentumAtEntry().unit(), for backward compatibility.
unsigned int detUnitId() const
Local3DPoint theEntryPoint
unsigned int theDetUnitId
unsigned int originalTrackId() const
static unsigned int addTrackIdOffset(unsigned int tId, unsigned int offset)
Local3DPoint exitPoint() const
Exit point in the local Det frame.
PSimHit(const Local3DPoint &entry, const Local3DPoint &exit, float pabs, float tof, float eloss, int particleType, unsigned int detId, unsigned int trackId, float theta, float phi, unsigned short processType=0)
unsigned short theProcessType
static constexpr unsigned int k_tidOffset
unsigned short processType() const
Local3DPoint entryPoint() const
Entry point in the local Det frame.
unsigned int trackId() const
EncodedEventId eventId() const
Local3DPoint localPosition() const
float tof() const
deprecated name for timeOfFlight()
float pabs() const
fast and more accurate access to momentumAtEntry().mag()
float energyLoss() const
The energy deposit in the PSimHit, in ???.
void setEventId(EncodedEventId e)
Geom::Theta< float > thetaAtEntry() const
fast and more accurate access to momentumAtEntry().theta()
EncodedEventId theEventId
std::ostream & operator<<(std::ostream &o, const PSimHit &hit)
float timeOfFlight() const
LocalVector momentumAtEntry() const
The momentum of the track that produced the hit, at entry point.
Geom::Phi< float > phiAtEntry() const
fast and more accurate access to momentumAtEntry().phi()
unsigned int offsetTrackId() const