- if ( det == "PHOS" ) {
- if (fOx==0)
- return;
- Double_t phi=TMath::ATan2(fOp[0],fOx) + fOalpha;
- Double_t r=TMath::Sqrt(fOx*fOx + fOp[0]*fOp[0]);
- xyz[0]=r*TMath::Cos(phi); xyz[1]=r*TMath::Sin(phi); xyz[2]=fOp[1];
- }
- else if ( det == "EMCAL" ) {
- if (fXx==0)
- return;
- Double_t phi=TMath::ATan2(fXp[0],fOx) + fXalpha;
- Double_t r=TMath::Sqrt(fXx*fXx + fXp[0]*fXp[0]);
- xyz[0]=r*TMath::Cos(phi);
- xyz[1]=r*TMath::Sin(phi);
- xyz[2]=fXp[1];
- }
-}
+ if (fOx==0)
+ return;
+ Double_t phi=TMath::ATan2(fOp[0],fOx) + fOalpha;
+ Double_t r=TMath::Sqrt(fOx*fOx + fOp[0]*fOp[0]);
+ xyz[0]=r*TMath::Cos(phi); xyz[1]=r*TMath::Sin(phi); xyz[2]=fOp[1];
+}
+void AliESDtrack::GetOuterXYZEMCAL(Double_t *xyz) const {
+ //---------------------------------------------------------------------
+ // This function returns the global track position
+ // af the radius of the EMCAL
+ //---------------------------------------------------------------------
+ if (fXx==0)
+ return;
+ Double_t phi=TMath::ATan2(fXp[0],fOx) + fXalpha;
+ Double_t r=TMath::Sqrt(fXx*fXx + fXp[0]*fXp[0]);
+ xyz[0]=r*TMath::Cos(phi);
+ xyz[1]=r*TMath::Sin(phi);
+ xyz[2]=fXp[1];
+}