]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGPP/PWGPPREADME.txt
.so cleanup: more gSystem->Load()
[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
b0635849 7gSystem->Load("libANALYSIS");
8gSystem->Load("libPWGPP")
36f9c31d 9AliGenInfoMaker *t = new AliGenInfoMaker("galice.root","genTracks.root",0,0)
10t->Exec();
11
12
131. Build the reconstructed info tree
14
b0635849 15gSystem->Load("libANALYSIS");
16gSystem->Load("libPWGPP");
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
b0635849 24gSystem->Load("libANALYSIS");
36f9c31d 25
b0635849 26gSystem->Load("libPWGPP");
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
b0635849 43gSystem->Load("libPWGPP");
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");