]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Temporary fix if running with STEER not up to date
authorcholm <Christian.Holm.Christensen@cern.ch>
Thu, 15 May 2014 12:45:21 +0000 (14:45 +0200)
committercholm <Christian.Holm.Christensen@cern.ch>
Thu, 15 May 2014 12:45:21 +0000 (14:45 +0200)
PWGLF/FORWARD/analysis2/AliFMDESDFixer.cxx

index e9a7ed629205dd409ee00b3f65c3cfc2bd5f1e87..94574e62eddb94c5a8370e89c5fc8bdadb65797c 100644 (file)
@@ -187,23 +187,30 @@ AliFMDESDFixer::FindTargetNoiseFactor(const AliESDFMD& esd, Bool_t check) const
   if (!IsUseNoiseCorrection()) 
     // If the reconstruction factor was high (4 or more), do nothing 
     return 0;
+
+  Int_t target = 0;
+  if (AliESDFMD::Class_Version() < 4) {
+    // IF we running with older STEER - we fix it here
+    target = 4;                                        
+  } else {
 #if 1
-  if (!esd.TestBit(1 << 14)) { 
-    // If the bit isn't set, do nothing
-    return 0;
-  }
+    if (!esd.TestBit(1 << 14)) { 
+      // If the bit isn't set, do nothing
+      return 0;
+    }
 #else 
-  // Uncommented until Peter commits patch to STEER/ESD
-  if (!esd.NeedNoiseFix()) { 
-    // If the bit isn't set, do nothing
-    return 0;
-  }
+    // Uncommented until Peter commits patch to STEER/ESD
+    if (!esd.NeedNoiseFix()) { 
+      // If the bit isn't set, do nothing
+      return 0;
+    }
 #endif
-  
+    target = esd.GetNoiseFactor();
+  }
   // Get the target factor - even thought the method below returns a
   // floating point value, we know that the noise factor is always
   // integer, so we coerce it to be the same here. 
-  Int_t target = esd.GetNoiseFactor() - fRecoFactor;
+  target -= fRecoFactor;
 
   // If the target factor is the same or smaller than the assumed
   // factor, we have nothing to do here, and we return immediately