]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONTrackerPreprocessor.cxx
some histos added for TPC clusters
[u/mrichter/AliRoot.git] / MUON / AliMUONTrackerPreprocessor.cxx
index 637d66e5a570e4c2c1a08f858726d2db0d66ee95..739cd660c0a99dcf4432be937658583374966c8c 100644 (file)
@@ -27,6 +27,7 @@
 #include "Riostream.h"
 #include "TObjArray.h"
 
+//-----------------------------------------------------------------------------
 /// \class AliMUONTrackerPreprocessor
 ///
 /// Shuttle preprocessor for MUON tracker
@@ -35,6 +36,7 @@
 /// (of type AliMUONVSubprocessor).
 ///
 /// \author Laurent Aphecetche
+//-----------------------------------------------------------------------------
 
 /// \cond CLASSIMP
 ClassImp(AliMUONTrackerPreprocessor)
@@ -49,6 +51,11 @@ AliMUONTrackerPreprocessor::AliMUONTrackerPreprocessor(AliShuttleInterface* shut
   fGainSubprocessor(new AliMUONGainSubprocessor(this))
 {
   /// ctor. 
+    
+    AddRunType("PEDESTAL");
+    AddRunType("CALIBRATION");
+    AddRunType("GMS");
+    AddRunType("PHYSICS");
 }
 
 //_____________________________________________________________________________
@@ -66,35 +73,39 @@ AliMUONTrackerPreprocessor::~AliMUONTrackerPreprocessor()
 void
 AliMUONTrackerPreprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endTime)
 {
-  /// Re-register the subprocessor(s) depnding on the actual runTYpe
+  /// Re-register the subprocessor(s) depending on the actual runType
 
   ClearSubprocessors();
   
   TString runType = GetRunType();
   
-  if ( runType == "PEDESTAL_RUN" ) // FIXME : check the name
+  fIsValid = kTRUE;
+  fIsApplicable = kTRUE;
+  
+  if ( runType == "PEDESTAL" )
   {
     Add(fPedestalSubprocessor); // to be called only for pedestal runs
     Log("INFO-Will run Pedestal subprocessor");
   }
-  else if ( runType == "ELECTRONICS_CALIBRATION_RUN" ) // 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" )
   {
-    Add(fHVSubprocessor); // to be called only for physics runs
+    Bool_t useDCS(kTRUE);
+    Add(fHVSubprocessor,useDCS); // to be called only for physics runs
     Log("INFO-Will run HV subprocessor");
   }
   else
   {
-    Log(Form("ERROR-Unknown RunType=%",runType.Data()));
+    fIsApplicable = kFALSE;
   }
   
   AliMUONPreprocessor::Initialize(run,startTime,endTime);