]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/MUONTriggerEfficiencyPt.C
DQM configure file
[u/mrichter/AliRoot.git] / MUON / MUONTriggerEfficiencyPt.C
index d7acf21176161604135a3c327fb1a2b8c3aad512..7d13b65a204682b3f5d2388e528100a1ea5f5ac0 100644 (file)
 /* $Id$ */
 
 
-// Macro to produce trigger single muon efficiency versus pt plots for the 
-// 2 pt cuts. 
-// see full description in the README file
-// Author: Fabien Guerin (LPC)
+/// \ingroup macros
+/// \file MUONTriggerEfficiencyPt.C
+/// \brief Macro to produce trigger single muon efficiency versus pt plots for the 
+/// 2 pt cuts.
+/// 
+/// See full description on the \ref README_trigger page.
+///
+/// \author Fabien Guerin (LPC)
 
 // ROOT includes
 #include "TBranch.h"
@@ -42,6 +46,7 @@
 #include "AliHeader.h"
 #include "AliLoader.h"
 #include "AliStack.h"
+#include "AliCDBManager.h"
 
 // MUON includes
 #include "AliMUONDataInterface.h"
@@ -104,7 +109,6 @@ void MUONTriggerEfficiencyPt(const char* filenameSim="galice_sim.root",
     TH1F *ptcoinc  = new TH1F("ptcoinc","",50,0.15,5.);  
         
     TParticle *particle;
-    AliStack* stack; 
     
     Int_t nevents;
     Double_t coincmuon=0;
@@ -112,6 +116,10 @@ void MUONTriggerEfficiencyPt(const char* filenameSim="galice_sim.root",
     Double_t hptmuon=0;
     Double_t ptmu=0;
 
+    AliCDBManager* cdbManager = AliCDBManager::Instance();
+    cdbManager->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
+    cdbManager->SetRun(0);
+
     AliMUONMCDataInterface diSim(filenameSim);
     AliMUONDataInterface diRec(filenameRec);
     
@@ -143,9 +151,9 @@ void MUONTriggerEfficiencyPt(const char* filenameSim="galice_sim.root",
        if (ievent%500==0) printf("ievent = %d \n",ievent);
 // kine
        
-       runLoader->GetRunLoader()->GetEvent(ievent);
-       runLoader->GetRunLoader()->LoadKinematics();
-       AliStack* stack = runLoader->GetRunLoader()->Stack();
+       runLoader->GetEvent(ievent);
+       runLoader->LoadKinematics();
+       AliStack* stack = runLoader->Stack();
        
        Int_t nparticles = (Int_t) stack->GetNtrack();