if (!cluster) continue;
// Read info from current cluster
- plane = AliTRDgeometry::GetPlane(cluster->GetDetector());
+ plane = AliTRDgeometry::GetLayer(cluster->GetDetector());
if (plane < 0 || plane >= kNplane) {
AliError(Form("Wrong plane %d", plane));
continue;
}
// Read info from current cluster
- plane = AliTRDgeometry::GetPlane(cluster->GetDetector());
+ plane = AliTRDgeometry::GetLayer(cluster->GetDetector());
if (plane < 0 || plane >= kNplane) {
AliError(Form("Wrong plane %d",plane));
continue;
}
// Retrieve the CDB container class with the probability distributions
- const AliTRDCalPID *pd = calibration->GetPIDObject(fPIDmethod == kNN ? 1 : 0);
+ const AliTRDCalPID *pd = calibration->GetPIDObject(fPIDmethod == kNN ? AliTRDrecoParam::kNNPID : AliTRDrecoParam::kLQPID);
if (!pd) {
AliError("No access to AliTRDCalPID");
return kFALSE;
// Skip tracks which have no TRD signal at all
if (fdEdx == 0.) return kFALSE;
- for (Int_t iPlane = 0; iPlane < AliTRDgeometry::kNplan; iPlane++) {
+ for (Int_t iPlane = 0; iPlane < AliTRDgeometry::kNlayer; iPlane++) {
length = (AliTRDgeometry::AmThick() + AliTRDgeometry::DrThick())
/ TMath::Sqrt((1.0 - fSnp[iPlane]*fSnp[iPlane])
//
return Int_t(TVector2::Phi_0_2pi(GetAlpha()) / AliTRDgeometry::GetAlpha())
- % AliTRDgeometry::kNsect;
+ % AliTRDgeometry::kNsector;
}