]>
Commit | Line | Data |
---|---|---|
e2213ed5 | 1 | /** |
2 | * @file DrawQA.C | |
3 | * @author Christian Holm Christensen <cholm@dalsgaard.hehi.nbi.dk> | |
4 | * @date Tue Jul 12 13:45:26 2011 | |
5 | * | |
6 | * @brief Script to draw most QA stuff | |
7 | * | |
8 | * @ingroup pwg2_forward_scripts_qa | |
9 | */ | |
10 | /** | |
11 | * Draw most QA stuff | |
12 | * | |
13 | * @param file File to read | |
14 | * @param full If true, assume output of analysis | |
15 | */ | |
16 | void | |
17 | DrawQA(const char* file, bool full=false) | |
18 | { | |
19 | ||
20 | gROOT->SetMacroPath(Form(".:$(ALICE_ROOT)/PWG2/FORWARD/analysis2/qa:" | |
21 | "$(ALICE_ROOT)/PWG2/FORWARD/analysis2/corrs:%s", | |
22 | gROOT->GetMacroPath())); | |
d015ecfe | 23 | gROOT->LoadMacro("DrawBeforeAfter.C+g"); |
24 | gROOT->LoadMacro("DrawELossPoisson.C+g"); | |
25 | gROOT->LoadMacro("DrawNeighbors.C+g"); | |
26 | gROOT->LoadMacro("DrawOccupancy.C+g"); | |
27 | gROOT->LoadMacro("DrawRecAnaEloss.C+g"); | |
28 | gROOT->LoadMacro("Draw123.C+g"); | |
e2213ed5 | 29 | |
d015ecfe | 30 | Info("DrawQA", "Drawing before-after"); |
e2213ed5 | 31 | DrawBeforeAfter(file); |
d015ecfe | 32 | Info("DrawQA", "Drawing singles, doubles, tripples"); |
33 | Draw123(file); | |
34 | Info("DrawQA", "Drawing Neighbors"); | |
e2213ed5 | 35 | DrawNeighbors(file); |
d015ecfe | 36 | Info("DrawQA", "Drawing raw and analysed energy loss"); |
e2213ed5 | 37 | DrawRecAnaEloss(file); |
d015ecfe | 38 | Info("DrawQA", "Drawing poisson vs energy loss"); |
39 | DrawELossPoisson(file); | |
40 | Info("DrawQA", "Drawing Occupancies"); | |
41 | DrawOccupancy(file); | |
e2213ed5 | 42 | |
43 | if (!full) { | |
d015ecfe | 44 | Info("DrawQA", "Drawing fit results"); |
e2213ed5 | 45 | gROOT->LoadMacro("DrawAnaELoss.C"); |
46 | DrawAnaELoss(file); | |
47 | } | |
48 | else { | |
49 | gROOT->LoadMacro("DrawSteps.C"); | |
50 | DrawSteps(file); | |
51 | } | |
52 | } | |
53 | // | |
54 | // EOF | |
55 | // | |
56 | ||
57 |