]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONTrackerPreprocessor.cxx
Change in CDB storage of Metadata
[u/mrichter/AliRoot.git] / MUON / AliMUONTrackerPreprocessor.cxx
index 2bf56ac860d4a3f7ae50ff2b9ad8bf698e4a334e..7da333d003d028f8ad199b7fbfbd419caa9a78ff 100644 (file)
@@ -20,6 +20,7 @@
 #include "AliMUONPedestalSubprocessor.h"
 #include "AliMUONHVSubprocessor.h"
 #include "AliMUONGMSSubprocessor.h"
+#include "AliMUONGainSubprocessor.h"
 
 #include "AliLog.h"
 #include "AliShuttleInterface.h"
@@ -44,7 +45,8 @@ AliMUONTrackerPreprocessor::AliMUONTrackerPreprocessor(AliShuttleInterface* shut
 : AliMUONPreprocessor("MCH",shuttle),
   fPedestalSubprocessor(new AliMUONPedestalSubprocessor(this)),
   fGMSSubprocessor(new AliMUONGMSSubprocessor(this)),    
-  fHVSubprocessor(new AliMUONHVSubprocessor(this))    
+  fHVSubprocessor(new AliMUONHVSubprocessor(this)),
+  fGainSubprocessor(new AliMUONGainSubprocessor(this))
 {
   /// ctor. 
 }
@@ -57,6 +59,7 @@ AliMUONTrackerPreprocessor::~AliMUONTrackerPreprocessor()
   delete fPedestalSubprocessor;
   delete fGMSSubprocessor;
   delete fHVSubprocessor;
+  delete fGainSubprocessor;
 }
 
 //_____________________________________________________________________________
@@ -76,8 +79,8 @@ AliMUONTrackerPreprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endTi
   }
   else if ( runType == "ELECTRONICS_CALIBRATION_RUN" ) // FIXME : check the name
   {
-    Log("WARNING-Subprocessor for gains not yet implemented");
-    //fSubprocessors->Add(new AliMUONGainSubprocessor(this)); // to be called only for gain runs
+    Add(new AliMUONGainSubprocessor(this)); // to be called only for gain runs
+    Log("INFO-Will run Gain subprocessor");
   }
   else if ( runType == "GMS" ) // FIXME : check the name
   {
@@ -86,7 +89,8 @@ AliMUONTrackerPreprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endTi
   }
   else if ( runType == "PHYSICS" ) // FIXME : check the name
   {
-    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