]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/MUONTrigger.C
Adding include path to allow compilation of CleanGeom task
[u/mrichter/AliRoot.git] / MUON / MUONTrigger.C
index 91a2519ad34d3b35fbc1663f18dbd3f847d73cac..522b1202e959c8ffd072fc00ceefabdadc73911c 100644 (file)
 
 /* $Id$ */
 
-// This macro is to be used to check the trigger algorithm w/o having to
-// (re-)perform simulation and digitalization. 
-// see full description in the REDAME file
-// Author: P.Crochet (LPC)
+/// \ingroup macros
+/// \file MUONTrigger.C
+/// \brief This macro is to be used to check the trigger algorithm w/o having to
+/// (re-)perform simulation and digitalization. 
+///
+/// See full description on the \ref README_trigger page.
+///
+/// \author P.Crochet (LPC)
 
 #if !defined(__CINT__) || defined(__MAKECINT__)
 #include "AliRun.h"
@@ -55,9 +59,10 @@ void MUONTrigger(const char* filename)
     
     // Creating MUONTriggerDecision
     AliCDBManager* cdbManager = AliCDBManager::Instance();
-    cdbManager->SetDefaultStorage("local://$ALICE_ROOT");
+    cdbManager->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
     
-    Int_t runnumber = cdbManager->GetRun();
+    Int_t runnumber = 0;
+    cdbManager->SetRun(runnumber);
     AliMpCDB::LoadDDLStore();
     
     AliMUONCalibrationData *CalibrationData = new AliMUONCalibrationData(runnumber);
@@ -69,7 +74,7 @@ void MUONTrigger(const char* filename)
     
     for(Int_t ievent = 0; ievent < nevents; ievent++) {
        printf(">>> Event %i out of %i \n",ievent,nevents);
-       RunLoader->GetRunLoader()->GetEvent(ievent);
+       RunLoader->GetEvent(ievent);
        
        MUONLoader->LoadRecPoints("update");
        MUONLoader->CleanRecPoints();