/* $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"
#include "AliHeader.h"
#include "AliLoader.h"
#include "AliStack.h"
+#include "AliCDBManager.h"
// MUON includes
#include "AliMUONDataInterface.h"
TH1F *ptcoinc = new TH1F("ptcoinc","",50,0.15,5.);
TParticle *particle;
- AliStack* stack;
Int_t nevents;
Double_t coincmuon=0;
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);
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();