]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
apply 100 ns shift only from run 130850 - Marie Germain
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 Jun 2013 07:51:51 +0000 (07:51 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 Jun 2013 07:51:51 +0000 (07:51 +0000)
EMCAL/AliEMCALRawUtils.cxx

index 5fd9723de3b811702ddc742a5a5bb99d12227caf..5463e0b19a05545a2229be54c87c7ae85eec0bb7 100644 (file)
@@ -29,6 +29,7 @@
 //*-- Author: Marco van Leeuwen (LBL)
 //*-- Major refactoring by Per Thomas Hille
 
+//#include "AliCDBManager.h"
 #include "AliEMCALRawUtils.h"
 #include "AliRun.h"
 #include "AliRunLoader.h"
@@ -300,9 +301,14 @@ void AliEMCALRawUtils::Raw2Digits(AliRawReader* reader,TClonesArray *digitsArr,
   
   Float_t bcTimePhaseCorr = 0; // for BC-based L1 phase correction
   Int_t bcMod4 = (reader->GetBCID() % 4); // LHC uses 40 MHz, EMCal uses 10 MHz clock
-  if (bcMod4==0 || bcMod4==1) { 
+       
+  //AliCDBManager* man = AliCDBManager::Instance();
+  //Int_t runNumber = man->GetRun();
+       
+ Int_t runNumber = reader->GetRunNumber();
+
+  if ((runNumber >130850 ) && (bcMod4==0 || bcMod4==1)) 
     bcTimePhaseCorr = -1e-7; // subtract 100 ns for certain BC values
-  } 
 
   while (in.NextDDL()) 
     {