]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/TestMUONPreprocessor.C
add calculation and histograms for MC cross section
[u/mrichter/AliRoot.git] / MUON / TestMUONPreprocessor.C
index be2de3132a2d449c19753a69b8fcb87507e3505d..77638efb4538332632473dfaa09eef93a37548e7 100644 (file)
 /// You must also make a link of some OCDB entries to have the mapping loaded 
 /// correctly :
 ///
-/// cd $ALICE_ROOT/OCDB/SHUTTLE/TestShuttle/TestCDB
+/// <pre>
+/// cd $ALICE_ROOT/SHUTTLE/TestShuttle/TestCDB
 /// mkdir -p MUON/Calib
 /// cd MUON/Calib
 /// ln -si $ALICE_ROOT/OCDB/MUON/Calib/MappingData .
+/// </pre>
 ///
 /// and Align/Baseline if you'd like to test GMS subprocessor :
 ///
-/// cd $ALICE_ROOT/OCDB/SHUTTLE/TestShuttle/TestCDB
-/// mkdir -p MUON/Align/Baseline
+/// <pre>
+/// cd $ALICE_ROOT/SHUTTLE/TestShuttle/TestCDB
+/// mkdir -p MUON/Align
 /// cd MUON/Align
 /// ln -si $ALICE_ROOT/OCDB/MUON/Align/Baseline .
+/// </pre>
 ///
 /// The input data has to be created first by other processes (or is created
 /// here by CreateDCSAliasMap() for tracker HV).
 /// The sourceDirectory is there to "emulate" what the real preprocessor will
 /// find on the FXS, and is assumed to have the following structure :
 /// <pre>
+/// CONFIG/
+///    LDC0.config
+///    LDC1.config
+///    LDC2.config
+///    LDC3.config
 /// GAINS/
 ///    LDC0.gain
 ///    LDC1.gain
@@ -156,8 +165,7 @@ void TestMUONPreprocessor(Int_t runNumber=80,
 
   AliTestShuttle* shuttle = new AliTestShuttle(runNumber, 0, 1);
   
-  const char* inputCDB = "local://$ALICE_ROOT/OCDB/SHUTTLE/TestShuttle/TestCDB";
-  //const char* inputCDB = "alien://folder=/alice/testdata/2008/TS08a/OCDB";
+  const char* inputCDB = "local://$ALICE_ROOT/SHUTTLE/TestShuttle/TestCDB";
   
   AliTestShuttle::SetMainCDB(inputCDB);
   AliTestShuttle::SetMainRefStorage("local://$ALICE_ROOT/OCDB/SHUTTLE/TestShuttle/TestReference");
@@ -168,8 +176,6 @@ void TestMUONPreprocessor(Int_t runNumber=80,
   if ( rt.Contains("PHYSICS") )
   {
     // Create DCS aliases
-    UInt_t startTime, endTime;
-    
     TMap* dcsAliasMap = CreateDCSAliasMap(inputCDB, runNumber);
 
     if ( dcsAliasMap ) 
@@ -229,6 +235,8 @@ void TestMUONPreprocessor(Int_t runNumber=80,
   // In real life the parameters will be retrieved automatically from the run logbook;
   shuttle->SetInputRunType(runType);
   
+  shuttle->AddInputRunParameter("totalEvents","20");
+                                
   // Create the preprocessor that should be tested, it registers itself automatically to the shuttle
   new AliMUONTrackerPreprocessor(shuttle);
   new AliMUONTriggerPreprocessor(shuttle);
@@ -383,8 +391,16 @@ TMap* CreateDCSAliasMap(const char* inputCDB, Int_t runNumber)
         {
           Float_t value = 0;
           if(sDetName.Contains("TRACKER")){
-            value = random.Gaus(1750,62.5);
-            if ( aliasName == "MchHvLvLeft/Chamber00Left/Quad2Sect1.actual.vMon") value = 500;
+            if ( aliasName.Contains("vMon"))
+            {
+              value = random.Gaus(1750,62.5);
+              if ( aliasName == "MchHvLvLeft/Chamber00Left/Quad2Sect1.actual.vMon") value = 500;
+            }
+            else
+            {
+              value = random.Gaus(10,2);
+              if ( aliasName == "MchHvLvLeft/Chamber00Left/Quad2Sect1.actual.iMon") value = 50;
+            }
           }
           else if(aliasName.Contains("iMon")){
             value = random.Gaus(2.,0.4);