]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGCF/FLOW/Documentation/examples/plotGlauberMCexample.C
Merge branch 'TPCdev' of https://git.cern.ch/reps/AliRoot into TPCdev
[u/mrichter/AliRoot.git] / PWGCF / FLOW / Documentation / examples / plotGlauberMCexample.C
CommitLineData
f1a1d070 1{
2 // open file
0e4137d1 3 TFile* f = new TFile("glau_pbpb_ntuple.root");
f1a1d070 4 TTree* t = (TTree*)gDirectory->Get("nt_Pb_Pb"); // get the tree
5
6 gStyle->SetCanvasColor(0);
7 gStyle->SetFrameBorderMode(0);
8 gStyle->SetStatBorderSize(1);
9 gStyle->SetFrameFillColor(0);
10 gStyle->SetTitleFillColor(0);
11 gStyle->SetPalette(1);
12
13 TCanvas* c = new TCanvas("GlauberMC","GlauberMC");
0448b9f3 14 c->Divide(2,3);
f1a1d070 15 c->cd(1);
16 // plot number of collisions
17 t->Draw("Ncoll:B","","prof");
18 c->cd(2);
19 // plot number of wounded nucleons
20 t->Draw("Npart:B","","prof");
21 c->cd(3);
0448b9f3 22 t->Draw("VarE:Npart","","prof");
f1a1d070 23 c->cd(4);
e06729d3 24 t->Draw("VarEPart:Npart","","prof");
1b4934d5 25 c->cd(5);
e06729d3 26 t->Draw("dNdEta:B");
1b4934d5 27 c->cd(6);
e06729d3 28 t->Draw("dNdEtaGBW:B");
0448b9f3 29
30 c->cd(0);
f1a1d070 31
32 c->Update();
33}