]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Adding HV subprocessor and change the way we select which subprocessor must be ran...
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 6 Feb 2007 17:18:36 +0000 (17:18 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 6 Feb 2007 17:18:36 +0000 (17:18 +0000)
MUON/AliMUONPreprocessor.cxx
MUON/AliMUONPreprocessor.h

index 2e7fcc46bae19320807b318a6b60315f82b7fe22..e329ccadb579ec1f55c50b545dc1f6ddafa26af1 100644 (file)
 // $Id$
 
 #include "AliMUONPreprocessor.h"
+
 #include "AliMUONPedestalSubprocessor.h"
+#include "AliMUONHVSubprocessor.h"
 #include "AliMUONGMSSubprocessor.h"
 
 #include "AliLog.h"
-
+#include "AliShuttleInterface.h"
 #include "Riostream.h"
 #include "TObjArray.h"
 
@@ -61,8 +63,24 @@ AliMUONPreprocessor::AliMUONPreprocessor(const TString& detName,
   /// - lut
   
   if ( detName == fgkTrackerDetName ) { 
-    fSubprocessors->Add(new AliMUONPedestalSubprocessor(this));
-    fSubprocessors->Add(new AliMUONGMSSubprocessor(this));
+    TString runType = shuttle->GetRunParameter("RunType");
+    if ( runType == "PEDESTAL_RUN" ) // FIXME : check the name 
+    {
+      fSubprocessors->Add(new AliMUONPedestalSubprocessor(this)); // to be called only for pedestal runs
+    }
+    else if ( runType == "ELECTRONICS_CALIBRATION_RUN" ) // FIXME : check the name 
+    {  
+      AliError("Not implemented yet");
+      //fSubprocessors->Add(new AliMUONGainSubprocessor(this)); // to be called only for gain runs
+    }
+    else if ( runType == "GMS" ) // FIXME : check the name 
+    {
+      fSubprocessors->Add(new AliMUONGMSSubprocessor(this));
+    }
+    else if ( runType == "PHYSICS" ) // FIXME : check the name
+    {
+      fSubprocessors->Add(new AliMUONHVSubprocessor(this)); // to be called only for physics runs
+    }
   }
   else if ( detName == fgkTriggerDetName ) {
     AliWarningStream() << "Trigger subprocessors not yet implemented." << endl;
index bc6ee8fb23e0186f1bb57a2913abef072c910fab..bcba5a7cf01a2fe03b64324046671fa2996ec074 100644 (file)
@@ -29,6 +29,8 @@ public:
   virtual UInt_t Process(TMap* dcsAliasMap);
   virtual void Print(Option_t* opt="") const;
   
+  void Log(const char* message) { AliPreprocessor::Log(message); }
+  
   TList* GetFileSources(Int_t system, const char* id) 
   { return AliPreprocessor::GetFileSources(system,id); }