// Info("MakePID", "TOF");
Float_t en = emc->GetEnergy();
Double_t time = emc->GetTime() ;
- // cout<<">>>>>>>Energy "<<en<<"Time "<<time<<endl;
+ // cout<<">>>>>>>Energy "<<en<<"Time "<<time<<endl;
// now get the signals probability
// s(pid) in the Bayesian formulation
+
+ //Initialize anused species
+ for(Int_t iii=0; iii<kSPECIES; iii)stof[iii][index]=0. ;
stof[AliPID::kPhoton][index] = 1.;
stof[AliPID::kElectron][index] = 1.;
//DP: still to be done
//dispersion is not well defined if the cluster is only in few crystals
+ //Initialize anused species
+ for(Int_t iii=0; iii<kSPECIES; iii)sdp[iii][index]=0. ;
sdp[AliPID::kPhoton][index] = 1. ;
sdp[AliPID::kElectron][index] = 1. ;
}
// else
// cout<<">>>>>>>>>>>CHARGED>>>>>>>>>>>"<<endl;
+ //Initialize anused species
+ for(Int_t iii=0; iii<kSPECIES; iii)scpv[iii][index]=0. ;
scpv[AliPID::kPion][index] = pcpvcharged ;
scpv[AliPID::kKaon][index] = pcpvcharged ;
}
//Weight to apply to hadrons due to energy reconstruction
+ //Initialize anused species
+ for(Int_t iii=0; iii<kSPECIES; iii)sw[iii][index]=1. ;
Float_t weight = fERecWeight ->Eval(en) ;