16 #ifndef StProbPidTraits_hh
17 #define StProbPidTraits_hh
18 #include "StDetectorId.h"
19 #include "StTrackPidTraits.h"
21 #include "StParticleDefinition.hh"
22 #include "StPidParticleDefinition.h"
26 StProbPidTraits(
const Int_t NDF=0,
const StDetectorId Id=kUnknownId,
const StPidParticle N=KPidParticles,
27 const Float_t *PidArray = 0, Double_t *Fractions = 0);
29 Int_t GetNDF() {
return mNDF;}
30 TArrayF *GetPidArray() {
return mPidArray;}
31 Double_t GetProbability(Int_t PartId) ;
32 Double_t GetChi2Prob(Int_t PartId)
const;
33 Double_t GetSum() {
return mSum;}
34 void SetFractions(Double_t *Fractions) {mFractions = Fractions; mSum = 0;}
35 void SetNDF(Int_t ndf) {mNDF = ndf;}
36 void Print(Option_t *opt =
"")
const;
44 Double_t mProbability[KPidParticles];