]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGPP/PWGPPREADME.txt
Merge branch 'master' into TPCdev
[u/mrichter/AliRoot.git] / PWGPP / PWGPPREADME.txt
CommitLineData
36f9c31d 1
2
3How to make a comparison using MC information:
4
5
60. Build the MC info tree
a1e6aa99 7gSystem->Load("libANALYSIS.so");
2bfe5463 8gSystem->Load("libPWGPP.so")
36f9c31d 9AliGenInfoMaker *t = new AliGenInfoMaker("galice.root","genTracks.root",0,0)
10t->Exec();
11
12
131. Build the reconstructed info tree
14
d390cc7e 15gSystem->Load("libANALYSIS.so");
2bfe5463 16gSystem->Load("libPWGPP.so");
36f9c31d 17//
18AliRecInfoMaker *t2 = new AliRecInfoMaker("genTracks.root","cmpESDTracks.root","galice.root",0,0);
19t2->Exec();
20
21
999d8278 22
36f9c31d 232. Make a chain of the information tree
d390cc7e 24gSystem->Load("libANALYSIS.so");
36f9c31d 25
2bfe5463 26gSystem->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
393.
40
41a.) Use AliTreeDraw for fast prototyping the queries - analysis type:
42
2bfe5463 43gSystem->Load("libPWGPP.so");
36f9c31d 44AliTreeDraw comp;
45comp.SetTree(tree)
46
47
48b.) Or use Selector
49
2bfe5463 50chain->Process("$ALICE_ROOT/PWGPP/AliComparisonSelector.cxx+")
36f9c31d 51
52
53TFile f("Output.root");