1 #if !defined(__CINT__) || defined(__MAKECINT__)
8 #include "AliAnalysis.h"
11 #include "AliAODParticle.h"
12 #include "AliReaderESDTree.h"
13 #include "AliRunAnalysis.h"
14 #include "AliMuonAnalysis.h"
18 /////////////////////////////////////////////////////////////////////////////
19 // first version for analysing the invariant mass plot in the AOD framework
20 // since the framework is in progress, this macro may change as a consequence
21 // don't forget the include with ".includepath $ALICE_ROOT/ANALYSIS"
22 // if you compile this macro comment out
23 // gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libANALYSIS.so");
24 // and launch this command in Aliroot outside the macro
27 /////////////////////////////////////////////////////////////////////////////
29 void analysisAOD(Int_t first = 0, Int_t last = 99999, const Char_t* esdfilename = "AliESDs.root")
32 gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libANALYSIS.so");
34 AliVAODParticle::SetDebug(0);
35 AliRunAnalysis* analysis = new AliRunAnalysis();
38 AliReaderESDTree* reader = new AliReaderESDTree(esdfilename);
39 // active muon ESD reader
40 reader->SetReadMuon(kTRUE);
41 // disable central barrel (default = kTRUE)
42 reader->SetReadCentralBarrel(kFALSE);
43 // disable simulated data (not implemented yet)
44 reader->ReadSimulatedData(kFALSE);
45 // number of event to be read
46 reader->ReadEventsFromTo(first,last);
49 AliMuonAnalysis* muon = new AliMuonAnalysis();
50 analysis->SetReader(reader);