Specifying which run types we are interested in
authorlaphecet <laphecet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 28 Mar 2008 09:05:07 +0000 (09:05 +0000)
committerlaphecet <laphecet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 28 Mar 2008 09:05:07 +0000 (09:05 +0000)
MUON/AliMUONTrackerPreprocessor.cxx
MUON/AliMUONTriggerPreprocessor.cxx

index e0a4a10..739cd66 100644 (file)
@@ -51,6 +51,11 @@ AliMUONTrackerPreprocessor::AliMUONTrackerPreprocessor(AliShuttleInterface* shut
   fGainSubprocessor(new AliMUONGainSubprocessor(this))
 {
   /// ctor. 
+    
+    AddRunType("PEDESTAL");
+    AddRunType("CALIBRATION");
+    AddRunType("GMS");
+    AddRunType("PHYSICS");
 }
 
 //_____________________________________________________________________________
@@ -82,18 +87,17 @@ AliMUONTrackerPreprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endTi
     Add(fPedestalSubprocessor); // to be called only for pedestal runs
     Log("INFO-Will run Pedestal subprocessor");
   }
-  else if ( runType == "ELECTRONICS_CALIBRATION" ||
-            runType == "CALIBRATION" ) // FIXME : check the name
+  else if ( runType == "CALIBRATION" )
   {
-    Add(new AliMUONGainSubprocessor(this)); // to be called only for gain runs
+    Add(fGainSubprocessor); // to be called only for gain runs
     Log("INFO-Will run Gain subprocessor");
   }
-  else if ( runType == "GMS" ) // FIXME : check the name
+  else if ( runType == "GMS" )
   {
     Add(fGMSSubprocessor);
     Log("INFO-Will run GMS subprocessor");
   }
-  else if ( runType == "PHYSICS" ) // FIXME : check the name
+  else if ( runType == "PHYSICS" )
   {
     Bool_t useDCS(kTRUE);
     Add(fHVSubprocessor,useDCS); // to be called only for physics runs
index f176ec8..e231f76 100644 (file)
@@ -41,6 +41,8 @@ AliMUONTriggerPreprocessor::AliMUONTriggerPreprocessor(AliShuttleInterface* shut
 fTriggerSubprocessor(new AliMUONTriggerSubprocessor(this))
 {
   /// ctor. 
+  AddRunType("PHYSICS");
+  AddRunType("CALIBRATION");
 }
 
 //_____________________________________________________________________________
@@ -64,8 +66,6 @@ AliMUONTriggerPreprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endTi
   TString runType = GetRunType();
   
   if ( runType == "PHYSICS" ||
-       runType == "ELECTRONICS_CALIBRATION" ||
-       runType == "DETECTOR_CALIBRATION" ||
        runType == "CALIBRATION" ) 
   {
     Add(fTriggerSubprocessor);