Using switch - use ExB correction
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 2 Jul 2009 16:45:21 +0000 (16:45 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 2 Jul 2009 16:45:21 +0000 (16:45 +0000)
from RecoParam

TPC/AliTPCTransform.cxx
TPC/AliTPCTransform.h

index 81cd03669bd20d3865a720dc528ff7c7c111bf0a..702735485f77a83a9ebd22f769114463a2f8ae3f 100755 (executable)
@@ -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
   // 
index 40026e054ddc772d6dd13d85e9e76a3c2eac765a..5a675a5e430a32720a5e17b86e21c9a83e8762e2 100755 (executable)
@@ -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