Additional functionality added
[u/mrichter/AliRoot.git] / ITS / AliITSQAChecker.h
CommitLineData
1507771f 1#ifndef ALIITSQACHECKER_H
2#define ALIITSQACHECKER_H
3/* Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6
7/* $Id$ */
8
9//
10// Checks the quality assurance.
11// By comparing with reference data
12// INFN Torino
13// W. Ferrarese Oct 2007
14//
15
16
17// --- ROOT system ---
18class TFile ;
19class TH2F ;
20
21// --- AliRoot header files ---
6b374954 22#include "AliQA.h"
1507771f 23#include "AliQACheckerBase.h"
5dfa9b71 24
25class AliITSQASPDChecker;
26class AliITSQASDDChecker;
27class AliITSQASSDChecker;
1507771f 28class AliITSLoader ;
29
30class AliITSQAChecker: public AliQACheckerBase {
31
5dfa9b71 32friend class AliITSQASPDChecker;
33friend class AliITSQASDDChecker;
34friend class AliITSQASSDChecker;
35
1507771f 36public:
5dfa9b71 37 AliITSQAChecker(Bool_t kMode = kFALSE, Short_t subDet = 0, Short_t ldc = 0) ; // ctor
38 AliITSQAChecker(const AliITSQAChecker& qac) : AliQACheckerBase(qac.GetName(), qac.GetTitle()), fkOnline(kFALSE), fDet(0), fLDC(0), fSPDChecker(0), fSDDChecker(0), fSSDChecker(0) {;} // cpy ctor
1507771f 39 AliITSQAChecker& operator = (const AliITSQAChecker& qac) ; //operator =
40 virtual ~AliITSQAChecker() {;} // dtor
5dfa9b71 41 void SetMode(Bool_t kMode) { fkOnline = kMode; }
42 void SetSubDet(Short_t subdet) { fDet = subdet; }
43 void SetLDC(Short_t ldc) { fLDC = ldc; }
44 Bool_t GetMode() { return fkOnline; }
45 Short_t GetSubDet() { return fDet; }
46 Short_t GetLDC() { return fLDC; }
47
48 protected:
49
6b374954 50 virtual const Double_t Check(AliQA::ALITASK_t index, TObjArray * list) ;
51 virtual const Double_t Check(AliQA::ALITASK_t /*index*/) {return 0.;} ;
1507771f 52
53private:
5dfa9b71 54
55 Bool_t fkOnline;
56 Short_t fDet;
57 Short_t fLDC;
58
59 AliITSQASPDChecker *fSPDChecker; // SPD Checker
60 AliITSQASDDChecker *fSDDChecker; // SDD Checker
61 AliITSQASSDChecker *fSSDChecker; // SSD Checker
62
63 ClassDef(AliITSQAChecker,3) // description
1507771f 64
65};
66
67#endif // AliITSQAChecker_H