65 #ifndef StRichPidTraits_hh
66 #define StRichPidTraits_hh
69 #include "StTrackPidTraits.h"
70 #include "StParticleDefinition.hh"
71 #include "StContainers.h"
72 #include "StRichPid.h"
73 #include "StRichSpectra.h"
74 #include "StParticleTypes.hh"
87 const StSPtrVecRichPid& getAllPids()
const;
88 StSPtrVecRichPid& getAllPids();
98 void setProductionVersion(
int);
100 void setProbability(
float);
104 void setSignedDca2d(
float);
105 void setSignedDca3d(
float);
107 int productionVersion()
const;
109 float probability()
const;
114 float signedDca2d()
const;
115 float signedDca3d()
const;
118 StSPtrVecRichPid mThePids;
119 Int_t mProductionVersion;
121 Float_t mProbability;
129 Float_t mSigned3dDca;
130 Float_t mSigned2dDca;
138 inline StSPtrVecRichPid& StRichPidTraits::getAllPids() {
return mThePids;}
139 inline const StSPtrVecRichPid& StRichPidTraits::getAllPids()
const {
return mThePids;}
140 inline void StRichPidTraits::addPid(
StRichPid* t) {mThePids.push_back(t);}
141 inline void StRichPidTraits::setProductionVersion(
int id) {mProductionVersion = id;}
142 inline void StRichPidTraits::setId(
int id) {mId = id;}
143 inline void StRichPidTraits::setProbability(
float p) {mProbability = p;}
144 inline void StRichPidTraits::setAssociatedMip(
StRichHit*
hit) {mAssociatedMip = hit;}
145 inline void StRichPidTraits::setMipResidual(
const StThreeVectorF& res) {mMipResidual = res;}
146 inline void StRichPidTraits::setRefitResidual(
const StThreeVectorF& res) {mRefitResidual = res;}
147 inline void StRichPidTraits::setSignedDca2d(
float v) {mSigned2dDca = v;}
148 inline void StRichPidTraits::setSignedDca3d(
float v) {mSigned3dDca = v;}
149 inline int StRichPidTraits::productionVersion()
const {
return mProductionVersion;}
150 inline int StRichPidTraits::id()
const {
return mId;}
151 inline float StRichPidTraits::probability()
const {
return mProbability;}
152 inline const StRichHit* StRichPidTraits::associatedMip()
const {
return mAssociatedMip;}
153 inline const StThreeVectorF& StRichPidTraits::mipResidual()
const {
return mMipResidual;}
154 inline const StThreeVectorF& StRichPidTraits::refitResidual()
const {
return mRefitResidual;}
155 inline float StRichPidTraits::signedDca2d()
const {
return mSigned2dDca;}
156 inline float StRichPidTraits::signedDca3d()
const {
return mSigned3dDca;}
157 inline StRichSpectra* StRichPidTraits::getRichSpectra() {
return mRichSpectra;}
158 inline const StRichSpectra* StRichPidTraits::getRichSpectra()
const {
return mRichSpectra;}
159 inline void StRichPidTraits::setRichSpectra(
StRichSpectra* sp) {mRichSpectra = sp;}