]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - T0/AliT0Preprocessor.cxx
Readme for calibration/performance train (Marian)
[u/mrichter/AliRoot.git] / T0 / AliT0Preprocessor.cxx
index 401761c6348d93abb32c6bb9df432bc005f1c874..fb753baccf84d6c940be3b35ccde93bd3de06ce9 100644 (file)
@@ -63,6 +63,7 @@ AliT0Preprocessor::AliT0Preprocessor(AliShuttleInterface* shuttle) :
   //constructor
   AddRunType("PHYSICS");
   AddRunType("STANDALONE");
+  AddRunType("LASER");
 }
 //____________________________________________________
 
@@ -79,7 +80,7 @@ void AliT0Preprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endTime)
   // Creates AliT0DataDCS object
   AliPreprocessor::Initialize(run, startTime, endTime);
   AliInfo(Form("\n\tRun %d \n\tStartTime %s \n\tEndTime %s", run, TTimeStamp(startTime).AsString(), TTimeStamp(endTime).AsString()));
-  fData = new AliT0DataDCS(fRun, fStartTime, fEndTime);
+  fData = new AliT0DataDCS(fRun, fStartTime, fEndTime, GetStartTimeDCSQuery(), GetEndTimeDCSQuery());
 }
 //____________________________________________________
 
@@ -88,7 +89,9 @@ Bool_t AliT0Preprocessor::ProcessDCS(){
        TString runType = GetRunType();
        Log(Form("ProcessDCS - RunType: %s",runType.Data()));
 
-       if((runType == "STANDALONE")||(runType == "PHYSICS")){
+       if((runType == "STANDALONE")||
+          (runType == "PHYSICS")||
+          (runType == "LASER")){
          //            return kFALSE;
                return kTRUE;
        }else{
@@ -292,26 +295,32 @@ UInt_t AliT0Preprocessor::Process(TMap* dcsAliasMap )
        Log(Form("RunType: %s",runType.Data()));
        //processing
        if(runType == "STANDALONE"){
-               Int_t iresultLaser = ProcessLaser();
-                       if(dcsDP==1){
-                       Int_t iresultDCS = ProcessDCSDataPoints(dcsAliasMap);
-                       return iresultDCS;
-               }
-               Log(Form("iresultLaser = %d",iresultLaser));
-               return iresultLaser;
+         if(dcsDP==1){
+           Int_t iresultDCS = ProcessDCSDataPoints(dcsAliasMap);
+           return iresultDCS;
+         }
        }
-       else if(runType == "PHYSICS"){
-        // Int_t iresultPhysics = ProcessPhysics();
-               Int_t iresultCosmic = ProcessCosmic();
-               if(dcsDP==1){
-                       Int_t iresultDCS = ProcessDCSDataPoints(dcsAliasMap);
-                       return iresultDCS;
-               }
-               //              Log(Form("iresultPhysics = %d",iresultPhysics));
-               //              return iresultPhysics; 
-               Log(Form("iresultCosmic = %d",iresultCosmic));
-               return iresultCosmic; 
-       }       
-
-  return 0;
+       if(runType == "LASER"){
+         Int_t iresultLaser = ProcessLaser();
+         if(dcsDP==1){
+            Int_t iresultDCS = ProcessDCSDataPoints(dcsAliasMap);
+            return iresultDCS;
+          }
+         Log(Form("iresultLaser = %d",iresultLaser));
+         return iresultLaser;
+       }
+       else if(runType == "PHYSICS"){
+         Int_t iresultPhysics = ProcessPhysics();
+        //      Int_t iresultCosmic = ProcessCosmic();
+         if(dcsDP==1){
+           Int_t iresultDCS = ProcessDCSDataPoints(dcsAliasMap);
+           return iresultDCS;
+         }
+         Log(Form("iresultPhysics = %d",iresultPhysics));
+         return iresultPhysics; 
+         //            Log(Form("iresultPhysics =iresultCosmic %d",iresultCosmic));
+         //    return iresultCosmic; 
+       }       
+       
+       return 0;
 }