From c3c15772a773954877a7e8bb1de061834d55fae7 Mon Sep 17 00:00:00 2001 From: mvl Date: Sat, 4 Aug 2007 21:41:50 +0000 Subject: [PATCH] Fixes to calls for MeanMaterialBudget (now in AliTracker) (From Jouri Belikov) --- EMCAL/AliEMCALTrack.cxx | 2 +- EMCAL/AliEMCALTracker.cxx | 16 +++++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/EMCAL/AliEMCALTrack.cxx b/EMCAL/AliEMCALTrack.cxx index 5902791f2fe..7c56b375229 100755 --- a/EMCAL/AliEMCALTrack.cxx +++ b/EMCAL/AliEMCALTrack.cxx @@ -294,5 +294,5 @@ Bool_t AliEMCALTrack::SimplePropagation(Double_t xk, Double_t d, Double_t x0) // EL correction is computed only if requested... if (!fgCorrectForEL) return kTRUE; - return AliExternalTrackParam::CorrectForMaterial(d, x0, GetMass()); + return AliExternalTrackParam::CorrectForMeanMaterial(d, x0, GetMass()); } diff --git a/EMCAL/AliEMCALTracker.cxx b/EMCAL/AliEMCALTracker.cxx index 1b3ca8d0047..2a4d8648976 100644 --- a/EMCAL/AliEMCALTracker.cxx +++ b/EMCAL/AliEMCALTracker.cxx @@ -44,7 +44,6 @@ #include "AliESDEvent.h" #include "AliESDtrack.h" #include "AliESDCaloCluster.h" -#include "AliKalmanTrack.h" #include "AliEMCALRecPoint.h" #include "AliRunLoader.h" #include "AliEMCALTrack.h" @@ -562,8 +561,8 @@ Double_t AliEMCALTracker::CheckPair pos2[0] = cl->X(); pos2[1] = cl->Y(); pos2[2] = cl->Z(); - AliKalmanTrack::MeanMaterialBudget(pos1, pos2, param); - rho = param[0]; + MeanMaterialBudget(pos1, pos2, param); + rho = param[0]*param[4]; x0 = param[1]; } else if (fTrackCorrMode == kTrackCorrFixed) { @@ -691,8 +690,8 @@ Double_t AliEMCALTracker::CheckPairV2 pos2[0] = cl->X(); pos2[1] = cl->Y(); pos2[2] = cl->Z(); - AliKalmanTrack::MeanMaterialBudget(pos1, pos2, param); - rho = param[0]; + MeanMaterialBudget(pos1, pos2, param); + rho = param[0]*param[4]; x0 = param[1]; } else if (fTrackCorrMode == kTrackCorrFixed) { @@ -849,11 +848,10 @@ Bool_t AliEMCALTracker::PropagateToEMCAL(AliEMCALTrack *tr) tr->GetXYZ(x1); bz = tr->GetBz(); if (!tr->GetXYZAt(xtemp, bz, x2)) return kFALSE; - AliKalmanTrack::MeanMaterialBudget(x1, x2, param); - d = param[4]; - rho = param[0]; + MeanMaterialBudget(x1, x2, param); + rho = param[0]*param[4]; x0 = param[1]; - if (!tr->PropagateTo(xtemp, d*rho/x0, x0)) return kFALSE; + if (!tr->PropagateTo(xtemp, rho, x0)) return kFALSE; } return kTRUE; -- 2.43.0