]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/TestMUONPreprocessor.C
Add Config/HighVoltage directory and entry
[u/mrichter/AliRoot.git] / MUON / TestMUONPreprocessor.C
index 505d4a335425badf547e8a915e8c26841eb13ec8..145000e0a6d896346d7134e2b7417c4649140e65 100644 (file)
 
 #if !defined(__CINT__) || defined(__MAKECINT__)
 
+/// \ingroup macros
+/// \file TestMUONPreprocessor.C
+/// \brief The macro for testing the shuttle preprocessors 
+///
 /// This macro runs the test preprocessor for MUON.
 /// It uses AliTestShuttle to simulate a full Shuttle process
 ///
 /// here by CreateDCSAliasMap() for tracker HV).
 ///
 /// To play with it, you'll have to set/modify several lines, to
-/// a) select input files, using shuttle->AddInputFile()
-/// b) select run type, using shuttle->AddInputRunParameter() (the run type
-///    dictates which task is really performed by the MUONPreprocessor
+/// a) select input files, using shuttle->AddInputFile()
+/// b) select run type, using shuttle->AddInputRunParameter() (the run type
+///      dictates which task is really performed by the MUONPreprocessor
 ///
 /// You must load relevant libraries (besides normal MUON ones) before
 /// compiling this macro :
-///
+/// <pre>
 /// gSystem->Load("$ALICE_ROOT/SHUTTLE/TestShuttle/libTestShuttle");
 /// gSystem->Load("libMUONshuttle.so");
+/// </pre>
 ///
+/// For more information on usage, please see the \ref README_shuttle page.
 ///
-/// For more information on usage, please see READMEshuttle.
-///
-// By Laurent Aphecetche, SUBATECH Nantes
+/// \author Laurent Aphecetche, SUBATECH Nantes
 
 #include "TestMUONPreprocessor.h"
 
 #include "TRandom.h"
 #endif
 
-void TestMUONPreprocessor(Int_t runNumber=80, const char* runType="PEDESTAL_RUN")
+void TestMUONPreprocessor(Int_t runNumber=80, const char* runType="PEDESTAL")
 {
   // runType can be :
   //
-  // PEDESTAL_RUN -> pedestals
-  // ELECTRONICS_CALIBRATION_RUN -> gains
+  // PEDESTAL -> pedestals
+  // ELECTRONICS_CALIBRATION -> gains
   // PHYSICS -> HV
   // GMS
   
@@ -91,7 +95,7 @@ void TestMUONPreprocessor(Int_t runNumber=80, const char* runType="PEDESTAL_RUN"
   if ( rt.Contains("PHYSICS") )
   {
     // Create DCS HV aliases
-    TMap* dcsAliasMap = CreateDCSAliasMap(inputCDB);
+    TMap* dcsAliasMap = CreateDCSAliasMap(inputCDB, runNumber);
   
     if ( dcsAliasMap ) 
     {
@@ -151,7 +155,7 @@ void TestMUONPreprocessor(Int_t runNumber=80, const char* runType="PEDESTAL_RUN"
   shuttle->Process();
 }
 
-TMap* CreateDCSAliasMap(const char* inputCDB)
+TMap* CreateDCSAliasMap(const char* inputCDB, Int_t runNumber)
 {
   /// Creates a DCS structure for MUON Tracker HV
   ///
@@ -169,6 +173,7 @@ TMap* CreateDCSAliasMap(const char* inputCDB)
   {
     undefStorage = kTRUE;
     man->SetDefaultStorage(inputCDB);
+    man->SetRun(runNumber);
   }
   
   // Load mapping