ClassImp(AliTRDpidESD)
+ Bool_t AliTRDpidESD::fCheckTrackStatus = kTRUE;
+ Bool_t AliTRDpidESD::fCheckKinkStatus = kFALSE;
+ Int_t AliTRDpidESD::fMinPlane = 0;
+
//_____________________________________________________________________________
AliTRDpidESD::AliTRDpidESD():TObject()
{
// Default constructor
//
- fCheckTrackStatus = kTRUE;
- fCheckKinkStatus = kFALSE;
- fMinPlane = 0;
-
}
//_____________________________________________________________________________
AliTRDcalibDB *calibration = AliTRDcalibDB::Instance();
if (!calibration) {
- //AliError("No access to calibration data\n");
+ AliErrorGeneral("AliTRDpidESD::MakePID"
+ ,"No access to calibration data\n");
return -1;
}
// Retrieve the CDB container class with the probability distributions
const AliTRDCalPIDLQ *pd = calibration->GetPIDLQObject();
if (!pd) {
- //AliError("No access to AliTRDCalPIDLQ\n");
+ AliErrorGeneral("AliTRDpidESD::MakePID"
+ ,"No access to AliTRDCalPIDLQ\n");
return -1;
}
p[iSpecies] *= pd->GetProbabilityT(iSpecies,mom,timebin);
p[iSpecies] *= 100.0; // ??????????????
- probTotal += p[iSpecies];
-
}
}
- }
+ }
+
+ for (Int_t iSpecies = 0; iSpecies < nSpecies; iSpecies++) {
+ probTotal += p[iSpecies];
+ }
for (Int_t iSpecies = 0; iSpecies < nSpecies; iSpecies++) {
if ((probTotal > 0.0) &&