Update for changes in other parts of the code
[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
c71529b0 38 //AliITSQAChecker(Int_t SPDoffset, Int_t SDDoffset, Int_t SSDoffset, Bool_t kMode = kFALSE, Short_t subDet = 0, Short_t ldc = 0) ;
39 AliITSQAChecker(const AliITSQAChecker& qac) : AliQACheckerBase(qac.GetName(), qac.GetTitle()), fkOnline(kFALSE), fDet(0), fLDC(0), fSPDOffset(0), fSDDOffset(0), fSSDOffset(0), fSPDChecker(0), fSDDChecker(0), fSSDChecker(0) {;} // cpy ctor
1507771f 40 AliITSQAChecker& operator = (const AliITSQAChecker& qac) ; //operator =
41 virtual ~AliITSQAChecker() {;} // dtor
5dfa9b71 42 void SetMode(Bool_t kMode) { fkOnline = kMode; }
43 void SetSubDet(Short_t subdet) { fDet = subdet; }
44 void SetLDC(Short_t ldc) { fLDC = ldc; }
45 Bool_t GetMode() { return fkOnline; }
46 Short_t GetSubDet() { return fDet; }
47 Short_t GetLDC() { return fLDC; }
c71529b0 48 virtual void SetTaskOffset(Int_t SPDOffset, Int_t SDDOffset, Int_t SSDOffset);
5dfa9b71 49
50 protected:
51
c71529b0 52 virtual const Double_t Check(AliQA::ALITASK_t index, TObjArray * list ) ;
53 virtual const Double_t Check(AliQA::ALITASK_t /*index*/, TObjArray * /*list*/, Int_t /*SubDetOffset*/) {return 0.;};
1507771f 54
55private:
5dfa9b71 56
57 Bool_t fkOnline;
58 Short_t fDet;
59 Short_t fLDC;
c71529b0 60 Int_t fSPDOffset; //starting point for the QACheck list
61 Int_t fSDDOffset;
62 Int_t fSSDOffset;
5dfa9b71 63
64 AliITSQASPDChecker *fSPDChecker; // SPD Checker
65 AliITSQASDDChecker *fSDDChecker; // SDD Checker
66 AliITSQASSDChecker *fSSDChecker; // SSD Checker
67
68 ClassDef(AliITSQAChecker,3) // description
1507771f 69
70};
71
72#endif // AliITSQAChecker_H