9 #ifndef StPicoETofPidTraits_h
10 #define StPicoETofPidTraits_h
30 virtual void Print(
const Char_t* option =
"" )
const;
44 Int_t
matchFlag()
const {
return (Int_t)mMatchFlag; }
46 Float_t
tof()
const {
return mTimeOfFlight; }
48 Float_t
beta()
const {
return (Float_t)mBeta / 20000.; }
50 Float_t
deltaX()
const {
return (Float_t)mDeltaX / 800.; }
52 Float_t
deltaY()
const {
return (Float_t)mDeltaY / 800.; }
54 Float_t
crossingX()
const {
return (Float_t)mCrossingX / 100.; }
56 Float_t
crossingY()
const {
return (Float_t)mCrossingY / 100.; }
58 Float_t
crossingZ()
const {
return (Float_t)mCrossingZ / 100.; }
68 { mTrackIndex = (index2PicoTrack > std::numeric_limits<short>::max()) ? -1 : (Short_t)index2PicoTrack; }
71 { mHitIndex = (index2Hit > std::numeric_limits<short>::max()) ? -1 : (Short_t)index2Hit; }
102 Float_t mTimeOfFlight;
virtual void Print(const Char_t *option="") const
Print eTOF PID traits information.
Int_t trackIndex() const
Return index of the associated track.
void setTrackIndex(const Int_t index2PicoTrack)
Set associated track index.
void setDeltaX(const Float_t &deltaX)
Set difference between track intersection and eTOF hit in local X coordinate (cm) across strips...
Float_t crossingX() const
Return global X coordinate (cm) of the track intersection with an eTOF volume.
TVector3 crossingPos() const
Return global position (cm) of the track intersection with an eTOF volume.
void setHitIndex(const Int_t index2Hit)
Set index of corrsponding eTOF hit.
Int_t hitIndex() const
Return index of corrsponding eTOF hit.
void setDeltaY(const Float_t &deltaY)
Set difference between track intersection and eTOF hit in local Y coordinate (cm) along strips...
Hold information about eTOF-matched tracks.
void setCrossingX(const Float_t &x)
Set global X coordinate (cm) of the track intersection with an eTOF volume.
void setCrossingZ(const Float_t &z)
Set global Z coordinate (cm) of the track intersection with an eTOF volume.
Float_t crossingY() const
Return global Y coordinate (cm) of the track intersection with an eTOF volume.
Float_t deltaY() const
Return difference between track intersection and eTOF hit in local Y coordinate (cm) along strips...
virtual ~StPicoETofPidTraits()
Destructor.
void setCrossingPos(const Float_t &x, const Float_t &y, const Float_t &z)
Set global position (cm) of the track intersection with an eTOF volume.
Float_t tof() const
Return time of flight (ns)
void setCrossingY(const Float_t &y)
Set global Y coordinate (cm) of the track intersection with an eTOF volume.
Float_t crossingZ() const
Return global Z coordinate (cm) of the track intersection with an eTOF volume.
void setTof(const Float_t &tof)
Set time of flight.
StPicoETofPidTraits()
Default constructor.
Float_t deltaX() const
Return difference between track intersection and eTOF hit in local X coordinate (cm) across strips...
void setBeta(const Float_t &beta)
Set beta.
Float_t beta() const
Return beta.
void setMatchFlag(const Char_t flag)
Set match flag.