]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/FORWARD/analysis2/qa/DrawQA.C
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGLF / 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  * @deprecated Use QATrender instead
9  * @ingroup pwglf_forward_scripts_qa
10  */
11 /** 
12  * Draw most QA stuff 
13  * 
14  * @param file File to read 
15  * @param full If true, assume output of analysis 
16  * 
17  * @deprecated Use QATrender instead
18  * @ingroup pwglf_forward_scripts_qa
19  */
20 void
21 DrawQA(const char* file, bool full=false)
22 {
23
24   gROOT->SetMacroPath(Form(".:$(ALICE_ROOT)/PWGLF/FORWARD/analysis2/qa:"
25                            "$(ALICE_ROOT)/PWGLF/FORWARD/analysis2/corrs:%s",
26                            gROOT->GetMacroPath()));
27   gROOT->LoadMacro("DrawBeforeAfter.C+g");
28   gROOT->LoadMacro("DrawELossPoisson.C+g");
29   gROOT->LoadMacro("DrawNeighbors.C+g");
30   gROOT->LoadMacro("DrawOccupancy.C+g");
31   gROOT->LoadMacro("DrawRecAnaEloss.C+g");
32   gROOT->LoadMacro("Draw123.C+g");
33
34   Info("DrawQA", "Drawing before-after");
35   DrawBeforeAfter(file);
36   Info("DrawQA", "Drawing singles, doubles, tripples");
37   Draw123(file);
38   Info("DrawQA", "Drawing Neighbors");
39   DrawNeighbors(file);
40   Info("DrawQA", "Drawing raw and analysed energy loss");
41   DrawRecAnaEloss(file);
42   Info("DrawQA", "Drawing poisson vs energy loss");
43   DrawELossPoisson(file);
44   Info("DrawQA", "Drawing Occupancies");
45   DrawOccupancy(file);
46
47   if (!full) { 
48     Info("DrawQA", "Drawing fit results");
49     gROOT->LoadMacro("DrawAnaELoss.C");
50     DrawAnaELoss(file);
51   }
52   else { 
53     gROOT->LoadMacro("DrawSteps.C");
54     DrawSteps(file);
55   }
56 }
57 //
58 // EOF
59 //
60
61