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