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 81cd036..7027354 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 40026e0..5a675a5 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