Possiblilty update or not update OCDB Time Delay entry for runs taken with new DA...
authoralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 7 Nov 2011 14:38:47 +0000 (14:38 +0000)
committeralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 7 Nov 2011 14:38:47 +0000 (14:38 +0000)
T0/AliT0PreprocessorOffline.cxx
T0/AliT0PreprocessorOffline.h

index 5e21912..f8a1c63 100644 (file)
@@ -50,7 +50,9 @@ TNamed("AliT0PreprocessorOffline","AliT0PreprocessorOffline"),
   endRun(0),  
   startTime(0),    
   endTime(0),     
-  ocdbStorage("")  
+  ocdbStorage(""),
+  fNewDArun(9999999)
+  
 {
   //constructor
 }
@@ -64,7 +66,8 @@ AliT0PreprocessorOffline::~AliT0PreprocessorOffline()
 //____________________________________________________
 void AliT0PreprocessorOffline::Process(TString filePhysName, Int_t ustartRun, Int_t uendRun, TString pocdbStorage)
 {
-  CalibOffsetChannels(filePhysName, ustartRun, uendRun, pocdbStorage);
+  if ( ustartRun < fNewDArun)
+    CalibOffsetChannels(filePhysName, ustartRun, uendRun, pocdbStorage);
   CalibT0sPosition(filePhysName, ustartRun, uendRun, pocdbStorage);
 }
 //____________________________________________________
@@ -106,6 +109,7 @@ void AliT0PreprocessorOffline::CalibOffsetChannels(TString filePhysName, Int_t u
 //-------------------------------------------------------------------------------------
 void AliT0PreprocessorOffline::CalibT0sPosition(TString filePhysName, Int_t ustartRun, Int_t uendRun, TString pocdbStorage)
 {
+  printf(" AliT0PreprocessorOffline::CalibT0sPosition \n");
   Float_t zero_timecdb[4]={0};
   Float_t *timecdb = zero_timecdb;
   if (pocdbStorage.Length()>0) ocdbStorage=pocdbStorage;
index d944677..0ba172e 100644 (file)
@@ -18,6 +18,7 @@ class AliT0PreprocessorOffline: public TNamed
   void CalibOffsetChannels(TString FileName, Int_t ustartRun, Int_t uendRun, TString ocdbStorage);
   void CalibT0sPosition(TString FileName, Int_t ustartRun, Int_t uendRun, TString ocdbStorage);
   void  Process(TString FileName, Int_t ustartRun, Int_t uendRun, TString ocdbStorage);
+  void setDArun(Int_t runnumber) {fNewDArun = runnumber; };
   private:
   AliT0PreprocessorOffline(const AliT0PreprocessorOffline & proc); // copy constructor 
   AliT0PreprocessorOffline& operator=(const AliT0PreprocessorOffline&); //operator
@@ -26,6 +27,7 @@ class AliT0PreprocessorOffline: public TNamed
   Int_t startTime;                        // startTime - used to make fast selection in THnSparse
   Int_t endTime;                          // endTime   - used to make fast selection in THnSparse
   TString  ocdbStorage;                   // path to the OCDB storage
+  Int_t fNewDArun;                         // run number with new DA
  
   ClassDef(AliT0PreprocessorOffline, 1)
 };