]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
setting of priors only in the kBayes case
authorLeonardo Milano <lmilano@cern.ch>
Fri, 13 Dec 2013 15:49:47 +0000 (16:49 +0100)
committerLeonardo Milano <lmilano@cern.ch>
Fri, 13 Dec 2013 15:49:47 +0000 (16:49 +0100)
PWGLF/SPECTRA/PiKaPr/TestAOD/AliAnalysisTaskSpectraAllChAOD.cxx

index cb017bbce938befecc4b45901853f9f4fc76d834..25810a0001be17b1c973309530e58cc044759fc0 100644 (file)
@@ -170,7 +170,7 @@ void AliAnalysisTaskSpectraAllChAOD::UserExec(Option_t *)
   if(!fEventCuts->IsSelected(fAOD,fTrackCuts))return;//event selection\r
 \r
   //Default TPC priors\r
-  fHelperPID->GetPIDCombined()->SetDefaultTPCPriors();//FIXME maybe this can go in the UserCreateOutputObject?\r
+  if(fHelperPID->GetPIDType()==kBayes)fHelperPID->GetPIDCombined()->SetDefaultTPCPriors();//FIXME maybe this can go in the UserCreateOutputObject?\r
   \r
   Double_t Qvec=0.;//in case of MC we save space in the memory\r
   if(!fIsMC)Qvec=fEventCuts->GetqV0A();//FIXME we'll have to combine A and C\r