- Disentangle masks effect from trigger chamber efficiency estimation.
[u/mrichter/AliRoot.git] / MUON / AliMUONTriggerPreprocessor.cxx
index f176ec8..b839b2f 100644 (file)
@@ -19,6 +19,7 @@
 
 #include "AliLog.h"
 #include "AliMUONTriggerSubprocessor.h"
+#include "AliMUONTriggerDCSSubprocessor.h"
 #include "AliShuttleInterface.h"
 #include "Riostream.h"
 
@@ -38,9 +39,12 @@ ClassImp(AliMUONTriggerPreprocessor)
 //_____________________________________________________________________________
 AliMUONTriggerPreprocessor::AliMUONTriggerPreprocessor(AliShuttleInterface* shuttle)
 : AliMUONPreprocessor("MTR",shuttle),
-fTriggerSubprocessor(new AliMUONTriggerSubprocessor(this))
+  fTriggerSubprocessor(new AliMUONTriggerSubprocessor(this)),
+  fTriggerDCSSubprocessor(new AliMUONTriggerDCSSubprocessor(this))
 {
   /// ctor. 
+  AddRunType("PHYSICS");
+  AddRunType("CALIBRATION");
 }
 
 //_____________________________________________________________________________
@@ -48,6 +52,7 @@ AliMUONTriggerPreprocessor::~AliMUONTriggerPreprocessor()
 {
   /// dtor
   delete fTriggerSubprocessor;
+  delete fTriggerDCSSubprocessor;
 }
 
 //_____________________________________________________________________________
@@ -63,10 +68,12 @@ 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" ) 
+  if ( runType == "PHYSICS" ) 
+  {
+    Add(fTriggerSubprocessor);
+    Add(fTriggerDCSSubprocessor,kTRUE); // uses DCS
+  }
+  else if (runType == "CALIBRATION")
   {
     Add(fTriggerSubprocessor);
   }