}
Bool_t AliExternalTrackParam::CorrectForMeanMaterial
-(Double_t xOverX0, Double_t xTimesRho, Double_t mass,
-Double_t (*Bethe)(Double_t)) {
+(Double_t xOverX0, Double_t xTimesRho, Double_t mass, Bool_t anglecorr,
+ Double_t (*Bethe)(Double_t)) {
//------------------------------------------------------------------
// This function corrects the track parameters for the crossed material.
// "xOverX0" - X/X0, the thickness in units of the radiation length.
Double_t &fC43=fC[13];
Double_t &fC44=fC[14];
+ //Apply angle correction, if requested
+ if(anglecorr) {
+ Double_t angle=TMath::Sqrt((1.+ fP3*fP3)/(1.- fP2*fP2));
+ xOverX0 *=angle;
+ xTimesRho *=angle;
+ }
+
Double_t p=GetP();
Double_t p2=p*p;
Double_t beta2=p2/(p2 + mass*mass);
Double_t GetD(Double_t xv, Double_t yv, Double_t b) const;
Double_t GetLinearD(Double_t xv, Double_t yv) const;
Bool_t CorrectForMeanMaterial(Double_t xOverX0, Double_t xTimesRho,
- Double_t mass, Double_t (*f)(Double_t)=ApproximateBetheBloch);
+ Double_t mass, Bool_t anglecorr=kFALSE,
+ Double_t (*f)(Double_t)=ApproximateBetheBloch);
Double_t GetPredictedChi2(Double_t p[2],Double_t cov[3]) const;
Double_t