]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - VZERO/AliVZEROPreprocessor.cxx
Get in sync with the base class
[u/mrichter/AliRoot.git] / VZERO / AliVZEROPreprocessor.cxx
index 413e507066f9e608a505398e99a8b08679f952d6..ae4fdf3b9db25d425b875413f8430b7844e9e07b 100644 (file)
@@ -24,6 +24,7 @@ AliVZEROPreprocessor::AliVZEROPreprocessor(AliShuttleInterface* shuttle) :
 {
   // constructor  
   
+  AddRunType("STANDALONE");
   AddRunType("PHYSICS");
     
 }
@@ -49,8 +50,10 @@ void AliVZEROPreprocessor::Initialize(Int_t run, UInt_t startTime,
                TTimeStamp(endTime).AsString()));
 
    fRun       = run;
-   fStartTime = startTime;
-   fEndTime   = endTime;
+   // fStartTime = startTime;
+   // fEndTime   = endTime;
+   fStartTime = GetStartTimeDCSQuery ();
+   fEndTime   = GetEndTimeDCSQuery ();
 
    fData      = new AliVZERODataDCS(fRun, fStartTime, fEndTime);
    
@@ -131,17 +134,21 @@ UInt_t AliVZEROPreprocessor::Process(TMap* dcsAliasMap)
 //   for(Int_t j=0; j<64; j++){printf("WidthHV[%d] -> %f \n",j,calibData->GetWidthHV(j));}
   
   // Now we store the VZERO Calibration Object into CalibrationDB
+
+  Bool_t resECal=kTRUE;
+  
+  Bool_t result = 0;
+//  if(sourceList && sourceList->GetEntries()>0)
+//  {
+  AliCDBMetaData metaData;
+  metaData.SetBeamPeriod(0);
+  metaData.SetResponsible("Brigitte Cheynis");
+  metaData.SetComment("This preprocessor fills an AliVZEROCalibData object");
+
+  resECal = Store("Calib", "Data", calibData, &metaData, 0, kTRUE);
+//  }
+  if(resECal==kFALSE ) result = 1;
   
-  Bool_t result = kFALSE;
-  if(sourceList && sourceList->GetEntries()>0)
-  {
-       AliCDBMetaData metaData;
-       metaData.SetBeamPeriod(0);
-       metaData.SetResponsible("Brigitte Cheynis");
-       metaData.SetComment("This preprocessor fills an AliVZEROCalibData object");
-
-       result = Store("Calib", "Data", calibData, &metaData, 0, kTRUE);
-  }
 
   delete calibData;
   delete sourceList;