9 #ifndef StPicoBTofPidTraits_h
10 #define StPicoBTofPidTraits_h
30 virtual void Print(
const Char_t* option =
"")
const;
44 Float_t
btof()
const {
return mBTof; }
46 Float_t
btofBeta()
const {
return (Float_t)mBTofBeta / 20000.f; }
48 Float_t
btofYLocal()
const {
return (Float_t)mBTofYLocal / 1000.; }
50 Float_t
btofZLocal()
const {
return (Float_t)mBTofZLocal / 1000.; }
56 Float_t
btofHitPosX()
const {
return (Float_t)mBTofHitPosX / 100.; }
58 Float_t
btofHitPosY()
const {
return (Float_t)mBTofHitPosY / 100.; }
60 Float_t
btofHitPosZ()
const {
return (Float_t)mBTofHitPosZ / 100.; }
65 Float_t
nSigmaPion()
const {
return (Float_t)mNSigmaPion / 1000.; }
67 Float_t
nSigmaKaon()
const {
return (Float_t)mNSigmaKaon / 1000.; }
69 Float_t
nSigmaProton()
const {
return (Float_t)mNSigmaProton / 1000.; }
77 { mTrackIndex = (idx2PicoTrack > std::numeric_limits<short>::max()) ? -1 : (Short_t)idx2PicoTrack; }
80 { mBTofCellId = (Short_t)((tray - 1) * 192 + (module - 1) * 6 + (cell - 1)); }
116 UChar_t mBTofMatchFlag;
126 Short_t mBTofHitPosX;
128 Short_t mBTofHitPosY;
130 Short_t mBTofHitPosZ;
133 Short_t mNSigmaElectron;
139 Short_t mNSigmaProton;
Float_t btofZLocal() const
Return zLocal (compression = zLocal * 1000)
Float_t btofHitPosY() const
Return y comonent of hit position.
Int_t btofCellId() const
Return BTOF cell ID (encoding = (tray-1)*192+(module-1)*6+(cell-1): -1 - no match ) ...
void setZLocal(Float_t zLocal)
Set zLocal.
void setNSigmaProton(Float_t sigma)
Set nsigma(proton)
virtual ~StPicoBTofPidTraits()
Destructor.
Int_t trackIndex() const
Return index of the assiciated track.
void setBTofCellId(Int_t tray, Int_t module, Int_t cell)
Set TOF cell ID which encodes tray, module and cell IDs.
Float_t btofYLocal() const
Return yLocal (compression = yLocal * 1000)
virtual void Print(const Char_t *option="") const
Print TOF PID traits information.
void setHitPositionZ(Float_t z)
Set hit position z (cm)
Float_t btofBeta() const
Return beta (compression = beta * 20000)
Float_t btofHitPosZ() const
Return z comonent of hit position.
void setHitPositionXYZ(Float_t x, Float_t y, Float_t z)
Set hit position (x,y,z)
void setTrackIndex(Int_t idx2PicoTrack)
Set assiciated track index.
TVector3 btofHitPos() const
Return hit position.
Float_t btof() const
Return time of flight.
void setNSigmaElectron(Float_t sigma)
Set nsigma(electron)
void setNSigmaKaon(Float_t sigma)
Set nsigma(kaon)
void setTOF(Float_t tof)
Set time of flight.
void setHitPositionY(Float_t y)
Set hit position y (cm)
void setNSigmaPion(Float_t sigma)
Set nsigma(pion)
void setBTofMatchFlag(UChar_t flag)
Set TOF-matching flag.
Float_t nSigmaKaon() const
Return nSigma(kaon)
void setHitPositionX(Float_t x)
Set hit position x (cm)
void setBeta(Float_t beta)
Set beta.
Float_t nSigmaPion() const
Return nSigma(pion)
Float_t nSigmaProton() const
Return nSigma(proton)
StPicoBTofPidTraits()
Default constructor.
Int_t btofMatchFlag() const
Return matching flag (0 - no match, 1 - one-to-one, 2 - one-to-multiple)
Float_t btofHitPosX() const
Return x comonent of hit position.
void setYLocal(Float_t yLocal)
Set yLocal.
Float_t nSigmaElectron() const
Return nSigma(electron)