]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGPP/PWGPPREADME.txt
Changes in drawing macros:
[u/mrichter/AliRoot.git] / PWGPP / PWGPPREADME.txt
1
2
3 How to make a comparison using MC information:
4
5
6 0. Build the MC info tree
7 gSystem->Load("libANALYSIS.so");
8 gSystem->Load("libPWGPP.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 gSystem->Load("libANALYSIS.so");
16 gSystem->Load("libPWGPP.so");
17 //
18 AliRecInfoMaker *t2 = new AliRecInfoMaker("genTracks.root","cmpESDTracks.root","galice.root",0,0);
19 t2->Exec();
20
21
22
23 2. Make a chain of the information tree
24 gSystem->Load("libANALYSIS.so");
25
26 gSystem->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  
39 3. 
40
41 a.) Use AliTreeDraw for fast prototyping the queries - analysis type:
42
43 gSystem->Load("libPWGPP.so");
44 AliTreeDraw comp;
45 comp.SetTree(tree)
46
47
48 b.) Or use Selector
49
50 chain->Process("$ALICE_ROOT/PWGPP/AliComparisonSelector.cxx+")
51
52
53 TFile f("Output.root");