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