Update for Ds
[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
3647765c 13// W.Ferrarese P.Cerello Mag 2008
1507771f 14//
15
16
17// --- ROOT system ---
18class TFile ;
19class TH2F ;
20
21// --- AliRoot header files ---
4e25ac79 22#include "AliQAv1.h"
1507771f 23#include "AliQACheckerBase.h"
5dfa9b71 24
25class AliITSQASPDChecker;
26class AliITSQASDDChecker;
27class AliITSQASSDChecker;
1507771f 28class AliITSLoader ;
29
30class AliITSQAChecker: public AliQACheckerBase {
31
32public:
5dfa9b71 33 AliITSQAChecker(Bool_t kMode = kFALSE, Short_t subDet = 0, Short_t ldc = 0) ; // ctor
8b51d296 34 AliITSQAChecker(const AliITSQAChecker& qac);
5047ab0a 35 AliITSQAChecker& operator=(const AliITSQAChecker& qac);
fdd0de6a 36 virtual ~AliITSQAChecker();// dtor
5dfa9b71 37 void SetMode(Bool_t kMode) { fkOnline = kMode; }
38 void SetSubDet(Short_t subdet) { fDet = subdet; }
39 void SetLDC(Short_t ldc) { fLDC = ldc; }
9b94f977 40 Bool_t GetMode() const { return fkOnline; };
41 Short_t GetSubDet() const { return fDet; } ;
42 Short_t GetLDC() const { return fLDC; } ;
c71529b0 43 virtual void SetTaskOffset(Int_t SPDOffset, Int_t SDDOffset, Int_t SSDOffset);
80b9610c 44 virtual void SetHisto(Int_t SPDhisto, Int_t SDDhisto, Int_t SSDhisto);
614c7e17 45 virtual void SetDetTaskOffset(Int_t subdet=0,Int_t offset=0);
80b9610c 46 virtual void InitQACheckerLimits();
47 virtual void CreateStepForBit(Double_t histonumb,Double_t *steprange);
48 virtual void SetQA(AliQAv1::ALITASK_t index, Double_t * value) const;
49 virtual void SetDetHisto(Int_t subdet=0,Int_t histo=0);
50
51 virtual Int_t GetSPDHisto(){return fSPDHisto;} ;
52 virtual Int_t GetSDDHisto(){return fSDDHisto;} ;
53 virtual Int_t GetSSDHisto(){return fSSDHisto;} ;
54
8db5c9f9 55 virtual void MakeImage( TObjArray ** list, AliQAv1::TASKINDEX_t task, AliQAv1::MODE_t mode) ;
56 virtual void MakeITSImage( TObjArray ** list, AliQAv1::TASKINDEX_t task, AliQAv1::MODE_t mode) { AliQACheckerBase::MakeImage(list,task, mode);}
5dfa9b71 57
f9e8ab3f 58protected:
a42ceb0e 59 virtual void Check(Double_t * test, AliQAv1::ALITASK_t index, TObjArray ** list, const AliDetectorRecoParam * recoParam) ;
614c7e17 60 virtual void SetSPDTaskOffset(Int_t SPDOffset){fSPDOffset = SPDOffset;} ;
61 virtual void SetSDDTaskOffset(Int_t SDDOffset){fSDDOffset = SDDOffset;} ;
62 virtual void SetSSDTaskOffset(Int_t SSDOffset){fSSDOffset = SSDOffset;} ;
63
80b9610c 64 virtual void SetSPDHisto(Int_t SPDhisto){fSPDHisto = SPDhisto;} ;
65 virtual void SetSDDHisto(Int_t SDDhisto){fSDDHisto = SDDhisto;} ;
66 virtual void SetSSDHisto(Int_t SSDhisto){fSSDHisto = SSDhisto;} ;
67
1507771f 68private:
5dfa9b71 69
9b94f977 70 Bool_t fkOnline; //online=kTRUE offline=kFALSE
71 Short_t fDet; //0=all 1=SPD 2=SDD 3=SSD
72 Short_t fLDC; //LDC number
80b9610c 73
9b94f977 74 Int_t fSPDOffset; //starting point for the QACheck list SPD
75 Int_t fSDDOffset; //starting point for the QACheck list SDD
76 Int_t fSSDOffset; //starting point for the QACheck list SSD
5dfa9b71 77
9b94f977 78 Int_t fSPDHisto; //number of histograms for SPD
79 Int_t fSDDHisto; //number of histograms for SDD
80 Int_t fSSDHisto; //number of histograms for SSD
80b9610c 81
5dfa9b71 82 AliITSQASPDChecker *fSPDChecker; // SPD Checker
83 AliITSQASDDChecker *fSDDChecker; // SDD Checker
84 AliITSQASSDChecker *fSSDChecker; // SSD Checker
85
86 ClassDef(AliITSQAChecker,3) // description
1507771f 87
88};
89
90#endif // AliITSQAChecker_H