]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONPreprocessor.cxx
Adding HLTbase to the list of libraries
[u/mrichter/AliRoot.git] / MUON / AliMUONPreprocessor.cxx
index b969f15594142ed0facc35ef74afa4f0579ba27e..a1a8dbf7b3780dbfbab6adc82a76feba668931e5 100644 (file)
 // $Id$
 
 #include "AliMUONPreprocessor.h"
-#include "TObjArray.h"
+
 #include "AliMUONPedestalSubprocessor.h"
+#include "AliMUONHVSubprocessor.h"
+#include "AliMUONGMSSubprocessor.h"
+
+#include "AliLog.h"
+#include "AliShuttleInterface.h"
 #include "Riostream.h"
+#include "TObjArray.h"
 
 /// \class AliMUONPreprocessor
 ///
@@ -34,25 +40,11 @@ ClassImp(AliMUONPreprocessor)
 /// \endcond
 
 //_____________________________________________________________________________
-AliMUONPreprocessor::AliMUONPreprocessor(const char* detector, 
-                                         AliShuttleInterface* shuttle) 
-: AliPreprocessor(detector,shuttle), fSubprocessors(new TObjArray[kLast])
+AliMUONPreprocessor::AliMUONPreprocessor(const char* detName, AliShuttleInterface* shuttle)
+: AliPreprocessor(detName, shuttle),
+  fSubprocessors(new TObjArray())
 {
-  /// ctor. Builds the list of subtasks
-  ///
-  /// \todo FIXME: should test detector wrt to tracker or trigger to 
-  /// instantiate the correct list of subtasks, which should be : 
-  /// Tracker : 
-  /// pedestals
-  /// gains
-  /// deadchannels
-  /// gms
-  ///
-  /// Trigger : 
-  /// masks
-  /// lut
-  ///
-  fSubprocessors->AddAt(new AliMUONPedestalSubprocessor(this),kPedestal);
+  /// ctor
 }
 
 //_____________________________________________________________________________
@@ -62,6 +54,22 @@ AliMUONPreprocessor::~AliMUONPreprocessor()
   delete fSubprocessors;
 }
 
+//_____________________________________________________________________________
+void
+AliMUONPreprocessor::ClearSubprocessors()
+{
+  /// Empty our subprocessor list
+  fSubprocessors->Clear();
+}
+
+//_____________________________________________________________________________
+void
+AliMUONPreprocessor::Add(AliMUONVSubprocessor* sub)
+{
+  /// Add a subprocessor to our list of workers
+  fSubprocessors->Add(sub);
+}
+
 //_____________________________________________________________________________
 void
 AliMUONPreprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endTime)