64 #ifndef StDedxPidTraits_hh
65 #define StDedxPidTraits_hh
66 #include "StTrackPidTraits.h"
70 StDedxPidTraits(StDetectorId det=kUnknownId, Short_t meth=kUndefinedMethodId,
71 UShort_t n=0, Float_t dedx=0, Float_t sig=0, Float_t log2dx=1) :
73 mNumberOfPoints(n), mMethod(meth), mDedx(dedx), mSigma(sig), mLog2dX(log2dx) { }
77 mNumberOfPoints(t.ndedx), mMethod(t.method), mDedx(t.dedx[0]),
78 mSigma(t.dedx[1]), mLog2dX(t.dedx[2]) { }
82 UShort_t numberOfPoints()
const {
return mNumberOfPoints%100; }
83 Float_t length()
const {
return (mNumberOfPoints/100); }
84 StDedxMethod method()
const;
85 Short_t encodedMethod()
const;
87 Float_t errorOnMean()
const;
88 void Print(Option_t *opt =
"")
const;
89 Float_t log2dX()
const {
return mLog2dX;}
91 UShort_t mNumberOfPoints;