new run type LASER implemented
authoralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 10 Jul 2008 09:57:23 +0000 (09:57 +0000)
committeralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 10 Jul 2008 09:57:23 +0000 (09:57 +0000)
T0/AliT0Preprocessor.cxx

index d9158dc..249f924 100644 (file)
@@ -63,6 +63,7 @@ AliT0Preprocessor::AliT0Preprocessor(AliShuttleInterface* shuttle) :
   //constructor
   AddRunType("PHYSICS");
   AddRunType("STANDALONE");
+  AddRunType("LASER");
 }
 //____________________________________________________
 
@@ -292,26 +293,28 @@ 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;
+         }
+       }
+       if(runType == "LASER"){
+         Int_t iresultLaser = ProcessLaser();
+         Log(Form("iresultLaser = %d",iresultLaser));
+         return iresultLaser;
        }
-       else if(runType == "PHYSICS"){
-        Int_t iresultPhysics = ProcessPhysics();
+       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;
+         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;
 }