From 15a2657d65de145ed24fe7662470198336f1d1d7 Mon Sep 17 00:00:00 2001 From: abercuci Date: Thu, 13 Oct 2011 06:40:46 +0000 Subject: [PATCH] revert calculation of Material Budget to previous version (TRD=Si) until TOF bug 86673 is solved --- TRD/AliTRDtrackV1.cxx | 5 ++--- TRD/AliTRDtrackerV1.cxx | 8 ++++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/TRD/AliTRDtrackV1.cxx b/TRD/AliTRDtrackV1.cxx index 587886c2718..38148d07442 100644 --- a/TRD/AliTRDtrackV1.cxx +++ b/TRD/AliTRDtrackV1.cxx @@ -584,7 +584,7 @@ Int_t AliTRDtrackV1::GetProlongation(Double_t xk, Double_t &y, Double_t &z) cons } //_____________________________________________________________________________ -Bool_t AliTRDtrackV1::PropagateTo(Double_t xk, Double_t /*xx0*/, Double_t xrho) +Bool_t AliTRDtrackV1::PropagateTo(Double_t xk, Double_t xx0, Double_t xrho) { // // Propagates this track to a reference plane defined by "xk" [cm] @@ -621,8 +621,7 @@ Bool_t AliTRDtrackV1::PropagateTo(Double_t xk, Double_t /*xx0*/, Double_t xrho) AddTimeStep(l2); } } - -// if (!AliExternalTrackParam::CorrectForMeanMaterial(xx0, xrho, GetMass())) return kFALSE; + if (!AliExternalTrackParam::CorrectForMeanMaterial(xx0, xrho, GetMass())) return kFALSE; { diff --git a/TRD/AliTRDtrackerV1.cxx b/TRD/AliTRDtrackerV1.cxx index 4bfe6616641..e49f3787d2c 100644 --- a/TRD/AliTRDtrackerV1.cxx +++ b/TRD/AliTRDtrackerV1.cxx @@ -1804,8 +1804,8 @@ Int_t AliTRDtrackerV1::PropagateToX(AliTRDtrackV1 &t, Double_t xToGo, Double_t m // // Current track X-position - Double_t xpos = t.GetX(), - mass = t.GetMass(); + Double_t xpos = t.GetX()/*, + mass = t.GetMass()*/; // Direction: inward or outward Double_t dir = (xpos < xToGo) ? 1.0 : -1.0; @@ -1843,7 +1843,7 @@ Int_t AliTRDtrackerV1::PropagateToX(AliTRDtrackV1 &t, Double_t xToGo, Double_t m // Propagate the track to the X-position after the next step if (!t.PropagateTo(x, param[1], param[0]*param[4])) return 0; - // Correct for mean material budget +/* // Correct for mean material budget Double_t dEdx(0.), bg(t.GetP()/mass); if(AliLog::GetDebugLevel("TRD", "AliTRDtrackerV1")>=3){ @@ -1877,7 +1877,7 @@ Int_t AliTRDtrackerV1::PropagateToX(AliTRDtrackV1 &t, Double_t xToGo, Double_t m } if(AliLog::GetDebugLevel("TRD", "AliTRDtrackerV1")>=2) printf("D-AliTRDtrackerV1::PropagateTo(): dEdx(bg=%e, m=%e)= %e[GeV/cm]\n", bg, mass, dEdx); if (!t.CorrectForMeanMaterialdEdx(param[1], dir*param[0]*param[4], mass, dEdx)) return 0; - +*/ // Rotate the track if necessary if(!AdjustSector(&t)) return 0; -- 2.43.0