Fixes for coverity checks.
[u/mrichter/AliRoot.git] / PWG2 / FORWARD / analysis2 / qa / DrawQA.C
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()));
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");
29
30   Info("DrawQA", "Drawing before-after");
31   DrawBeforeAfter(file);
32   Info("DrawQA", "Drawing singles, doubles, tripples");
33   Draw123(file);
34   Info("DrawQA", "Drawing Neighbors");
35   DrawNeighbors(file);
36   Info("DrawQA", "Drawing raw and analysed energy loss");
37   DrawRecAnaEloss(file);
38   Info("DrawQA", "Drawing poisson vs energy loss");
39   DrawELossPoisson(file);
40   Info("DrawQA", "Drawing Occupancies");
41   DrawOccupancy(file);
42
43   if (!full) { 
44     Info("DrawQA", "Drawing fit results");
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