// Destructor
// Delete the created priors
+ if(fPartPriors) delete [] fPartPriors;
if(fElectronFunction) delete fElectronFunction;
if(fMuonFunction) delete fMuonFunction;
// Determines the type of the particle
Int_t charge;
- if(reqPartType < 0){
- charge = -1;
- }
- else{
- charge = 1;
- }
+ if(reqPartType < 0){
+ charge = -1;
+ }
+ else{
+ charge = 1;
+ }
- Double_t probability[5];
- Double_t w[5];
+ Double_t probability[5] = {0.0,0.0,0.0,0.0,0.0};
+ Double_t w[5] = {0.0,0.0,0.0,0.0,0.0};
Long64_t partType = 0;
if(fPIDtype.Contains("Bayesian")) {
partType = TMath::LocMax(AliPID::kSPECIES,w);
+ if(partType<0.) return kFALSE;
}
else if(fPIDtype.Contains("Custom")){