#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
if ( rt.Contains("PHYSICS") )
{
// Create DCS HV aliases
- TMap* dcsAliasMap = CreateDCSAliasMap(inputCDB);
+ TMap* dcsAliasMap = CreateDCSAliasMap(inputCDB, runNumber);
if ( dcsAliasMap )
{
shuttle->Process();
}
-TMap* CreateDCSAliasMap(const char* inputCDB)
+TMap* CreateDCSAliasMap(const char* inputCDB, Int_t runNumber)
{
/// Creates a DCS structure for MUON Tracker HV
///
{
undefStorage = kTRUE;
man->SetDefaultStorage(inputCDB);
+ man->SetRun(runNumber);
}
// Load mapping