]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGPP/macros/RunMakers.C
Automatically find out if the track is AODtrack or ESDtrack: no more need to specify...
[u/mrichter/AliRoot.git] / PWGPP / macros / RunMakers.C
1 // Run this macro to correlate MC and reconstruction information (PWGPP library).
2 // Macro must be run in directory containing MC and ESD trees
3 //
4 RunMakers()
5 {
6 // load AliRoot libraries
7 gSystem->Load("libANALYSIS.so");
8 gSystem->Load("libANALYSISalice.so");
9 gSystem->Load("libPWGPP.so");
10
11 // collect MC information
12 AliGenInfoMaker *infoMC = new AliGenInfoMaker("galice.root","genTracks.root",0,0);
13 infoMC->Exec();
14
15 // correlate MC and reconstruction information
16 AliRecInfoMaker *infoMCR =
17 new AliRecInfoMaker("genTracks.root","cmpESDTracks.root","galice.root",0,0);
18 infoMCR->Exec();
19 }