#include "TMath.h"
#include "TRandom3.h"
#include "PndMvdAdvancedPidAlgo.h"
#include "PndMvdPidCand.h"
Go to the source code of this file.
Definition at line 8 of file PndMvdAdvancedPidAlgo.cxx.
References dE, and dx.
17 double weight[kNPidType];
22 for (
int k=0;k<cand->GetMvdHits(); k++) {
23 dE+=cand->GetMvdHitdE(k);
24 dx+=cand->GetMvdHitdx(k);
25 fmomentum+=cand->GetMvdHitMomentum(k);
29 fmomentum/=cand->GetMvdHits();
34 CalcLikelihood(weight);
36 cand->SetLikelihood(2212, weight[kProton]);
37 cand->SetLikelihood(211, weight[kPion]);
38 cand->SetLikelihood(321, weight[kKaon]);
39 cand->SetLikelihood(13, weight[kMuon]);
40 cand->SetLikelihood(11, weight[kElectron]);