]>
Commit | Line | Data |
---|---|---|
36f9c31d | 1 | |
2 | ||
3 | How to make a comparison using MC information: | |
4 | ||
5 | ||
6 | 0. Build the MC info tree | |
a1e6aa99 | 7 | gSystem->Load("libANALYSIS.so"); |
2bfe5463 | 8 | gSystem->Load("libPWGPP.so") |
36f9c31d | 9 | AliGenInfoMaker *t = new AliGenInfoMaker("galice.root","genTracks.root",0,0) |
10 | t->Exec(); | |
11 | ||
12 | ||
13 | 1. Build the reconstructed info tree | |
14 | ||
d390cc7e | 15 | gSystem->Load("libANALYSIS.so"); |
2bfe5463 | 16 | gSystem->Load("libPWGPP.so"); |
36f9c31d | 17 | // |
18 | AliRecInfoMaker *t2 = new AliRecInfoMaker("genTracks.root","cmpESDTracks.root","galice.root",0,0); | |
19 | t2->Exec(); | |
20 | ||
21 | ||
999d8278 | 22 | |
36f9c31d | 23 | 2. Make a chain of the information tree |
d390cc7e | 24 | gSystem->Load("libANALYSIS.so"); |
36f9c31d | 25 | |
2bfe5463 | 26 | gSystem->Load("libPWGPP.so"); |
36f9c31d | 27 | |
28 | //GSI example | |
29 | .x ~/rootlogon.C | |
d390cc7e | 30 | gSystem->AddIncludePath("-I$ALICE_ROOT/TPC/macros") |
31 | gROOT->LoadMacro("$ALICE_ROOT/TPC/macros/AliXRDPROOFtoolkit.cxx+") | |
32 | ||
36f9c31d | 33 | AliXRDPROOFtoolkit tool; |
d390cc7e | 34 | TChain * chain = tool.MakeChain("cmp.txt","ESDcmpTracks",0,1000) |
36f9c31d | 35 | chain->Lookup(); |
2bfe5463 | 36 | .L $ALICE_ROOT/PWGPP/AliComparisonSelector.cxx+ |
36f9c31d | 37 | |
38 | ||
39 | 3. | |
40 | ||
41 | a.) Use AliTreeDraw for fast prototyping the queries - analysis type: | |
42 | ||
2bfe5463 | 43 | gSystem->Load("libPWGPP.so"); |
36f9c31d | 44 | AliTreeDraw comp; |
45 | comp.SetTree(tree) | |
46 | ||
47 | ||
48 | b.) Or use Selector | |
49 | ||
2bfe5463 | 50 | chain->Process("$ALICE_ROOT/PWGPP/AliComparisonSelector.cxx+") |
36f9c31d | 51 | |
52 | ||
53 | TFile f("Output.root"); |