]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG1/TPC/AliTPCPerformanceSummary.h
corrected default OCDB path
[u/mrichter/AliRoot.git] / PWG1 / TPC / AliTPCPerformanceSummary.h
CommitLineData
b832d719 1#ifndef ALI_TPC_PERFORMANCE_SUMMARY_H
2#define ALI_TPC_PERFORMANCE_SUMMARY_H
3
4//------------------------------------------------------------------------------
5// Class to extract some TPC Performance parameters from AliPerformanceTPC and
6// AliPerformanceDEdx objects and produce trend graphs.
7//
f69eb048 8// by M.Knichel 15/10/2010
b832d719 9//------------------------------------------------------------------------------
10
11class TTree;
12
13class TTreeSRedirector;
14class AliPerformanceTPC;
15class AliPerformanceDEdx;
16class AliPerformanceDCA;
f69eb048 17class AliPerformanceMatch;
b832d719 18
19class AliTPCPerformanceSummary
20{
21 public:
22 AliTPCPerformanceSummary() {} // default contructor
23 virtual ~AliTPCPerformanceSummary() {} // destructor
24
f69eb048 25 static void WriteToTTreeSRedirector(const AliPerformanceTPC* pTPC, const AliPerformanceDEdx* pTPCgain, const AliPerformanceMatch* pTPCMatch, TTreeSRedirector* pcstream, Int_t run = -1); // called by WriteToFile
b832d719 26
f69eb048 27 static void WriteToFile(const AliPerformanceTPC* pTPC, const AliPerformanceDEdx* pTPCgain, const AliPerformanceMatch* pMatch, const Char_t* outfile, Int_t run = -1); // calles by MakeReport
b832d719 28
29 // the two key functions
0cb93e70 30 static Int_t MakeReport(const Char_t* infile, const Char_t* outfile, Int_t run);
b832d719 31 static Int_t ProduceTrends(const Char_t* infilelist, const Char_t* outfile);
0cb93e70 32
33 static Bool_t getForceTHnSparse() { return fgForceTHnSparse; }
34 static void setForceTHnSparse(Bool_t forceSparse = kTRUE) { fgForceTHnSparse = forceSparse; }
b832d719 35
0cb93e70 36 private:
37
38 static Bool_t fgForceTHnSparse;
b832d719 39 // save graphs to current directory
0cb93e70 40
b832d719 41 static Int_t SaveGraph(TTree* tree, const Char_t* y, const Char_t* x, const Char_t* condition);
42
43 // helper functions to extract parameter and write to TTreeSRedirector
44 static Int_t AnalyzeDCARPhi(const AliPerformanceTPC* pTPC, TTreeSRedirector* pcstream);
45 static Int_t AnalyzeDCARPhiPos(const AliPerformanceTPC* pTPC, TTreeSRedirector* pcstream);
46 static Int_t AnalyzeDCARPhiNeg(const AliPerformanceTPC* pTPC, TTreeSRedirector* pcstream);
47 static Int_t AnalyzeNCL(const AliPerformanceTPC* pTPC, TTreeSRedirector* pcstream);
48 static Int_t AnalyzeDrift(const AliPerformanceTPC* pTPC, TTreeSRedirector* pcstream);
49 static Int_t AnalyzeDriftPos(const AliPerformanceTPC* pTPC, TTreeSRedirector* pcstream);
50 static Int_t AnalyzeDriftNeg(const AliPerformanceTPC* pTPC, TTreeSRedirector* pcstream);
51 static Int_t AnalyzeGain(const AliPerformanceDEdx* pTPCgain, TTreeSRedirector* pcstream);
52 static Int_t AnalyzeEvent(const AliPerformanceTPC* pTPC, TTreeSRedirector* pcstream);
f69eb048 53 static void AnalyzeMatch(const AliPerformanceMatch* pMatch, TTreeSRedirector* pcstream);
0cb93e70 54
b832d719 55
56 AliTPCPerformanceSummary(const AliTPCPerformanceSummary&); // copy contructor (not implemented)
57 AliTPCPerformanceSummary& operator=(const AliTPCPerformanceSummary&); // assignment operator (not implemented)
58
814d192f 59 ClassDef(AliTPCPerformanceSummary, 3);
b832d719 60};
61
62#endif