From 3ce45991bc3183cf4c96489c483e0899868a0f7c Mon Sep 17 00:00:00 2001 From: marian Date: Thu, 2 Jul 2009 16:45:21 +0000 Subject: [PATCH] Using switch - use ExB correction from RecoParam --- TPC/AliTPCTransform.cxx | 12 +++++++++++- TPC/AliTPCTransform.h | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/TPC/AliTPCTransform.cxx b/TPC/AliTPCTransform.cxx index 81cd03669bd..702735485f7 100755 --- a/TPC/AliTPCTransform.cxx +++ b/TPC/AliTPCTransform.cxx @@ -170,7 +170,17 @@ void AliTPCTransform::Transform(Double_t *x,Int_t *i,UInt_t /*time*/, // // ExB correction // - calib->GetExB()->Correct(x,xx); + if(fCurrentRecoParam&&fCurrentRecoParam->GetUseExBCorrection()) { + + calib->GetExB()->Correct(x,xx); + + } else { + + xx[0] = x[0]; + xx[1] = x[1]; + xx[2] = x[2]; + } + // // Time of flight correction // diff --git a/TPC/AliTPCTransform.h b/TPC/AliTPCTransform.h index 40026e054dd..5a675a5e430 100755 --- a/TPC/AliTPCTransform.h +++ b/TPC/AliTPCTransform.h @@ -31,6 +31,7 @@ public: void GetCosAndSin(Int_t sector,Double_t &cos,Double_t &sin) const; UInt_t GetCurrentTimeStamp() const { return fCurrentTimeStamp;} const AliTPCRecoParam * GetCurrentRecoParam() const {return fCurrentRecoParam;} + AliTPCRecoParam * GetCurrentRecoParamNonConst() const {return fCurrentRecoParam;} UInt_t GetCurrentRunNumber() const { return fCurrentRun;} // // set current values -- 2.43.0