AddTaskFemto for train update
[u/mrichter/AliRoot.git] / ITS / AliITSQASDDChecker.h
CommitLineData
5dfa9b71 1#ifndef ALIITSQASDDCHECKER_H
2#define ALIITSQASDDCHECKER_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// P. Cerello - apr 2008
14//
15
f09c0b42 16#include "AliQAv1.h"
9b94f977 17//#include "TPad.h"
5dfa9b71 18// --- ROOT system ---
f09c0b42 19class TFile;
20class TH2F;
5dfa9b71 21
22// --- AliRoot header files ---
f09c0b42 23
24class AliQACheckerBase;
8db5c9f9 25class AliQAChecker;
f09c0b42 26class AliITSQAChecker;
27class AliITSCalibrationSDD;
28class AliITSLoader;
29class TSystem;
30class AliQAManager;
31class AliLog;
32class TF1;
33class TCanvas;
8db5c9f9 34class AliQAv1;
5dfa9b71 35
8db5c9f9 36class AliITSQASDDChecker: public TObject{
5dfa9b71 37
38public:
2abfa09f 39
40 AliITSQASDDChecker(); // ctor
5dfa9b71 41 AliITSQASDDChecker& operator = (const AliITSQASDDChecker& qac) ; //operator =
78fb0b3d 42 virtual ~AliITSQASDDChecker(); // dtor
f09c0b42 43 virtual Double_t Check(AliQAv1::ALITASK_t index, const TObjArray * list, const AliDetectorRecoParam * recoParam);
80b9610c 44 virtual void SetTaskOffset(Int_t taskoffset);
f09c0b42 45 virtual void SetStepBit(const Double_t *steprange);
80b9610c 46 virtual Double_t *GetStepBit(){return fStepBitSDD;};
f09c0b42 47 virtual void SetSDDLimits(const Float_t *lowvalue, const Float_t * highvalue);
25b4170b 48 void SetEventSpecieForCheck(Int_t esforcheck=0){ fESforCheck=esforcheck;}
49 Int_t GetEventSpecieForCheck(){return fESforCheck;}
6bf3d857 50
8db5c9f9 51 virtual Bool_t MakeSDDImage( TObjArray ** list, AliQAv1::TASKINDEX_t task, AliQAv1::MODE_t mode) ;
52 Bool_t MakeSDDRawsImage(TObjArray ** list, AliQAv1::TASKINDEX_t task, AliQAv1::MODE_t mode );//{AliInfo("The method for raw image has been called\n");}
53 Bool_t MakeSDDRecPointsImage(TObjArray ** list, AliQAv1::TASKINDEX_t task, AliQAv1::MODE_t mode);//{AliInfo("The method for recpoint image has been called\n");}
54
55
56 private:
57
58 AliITSQASDDChecker(const AliITSQASDDChecker& qac):TObject(),
59 fSubDetOffset(qac.fSubDetOffset),
60 fStepBitSDD(qac.fStepBitSDD),
61 fLowSDDValue(qac.fLowSDDValue),
62 fHighSDDValue(qac.fHighSDDValue),
63 fCalibration(qac.fCalibration),
64 fThresholdForRelativeOccupancy(qac.fThresholdForRelativeOccupancy),
65 fThresholdForRecToRawRatio(qac.fThresholdForRecToRawRatio),
25b4170b 66 fImage(qac.fImage),
67 fESforCheck(qac.fESforCheck)
8db5c9f9 68 {;} // cpy ctor
6bf3d857 69
8db5c9f9 70 Int_t fSubDetOffset; // checking operation starting point
71 Double_t *fStepBitSDD; //step size for each QAbit(kINFO, kWARNING,kERROR,kFATAL)
72 Float_t *fLowSDDValue; //low value of each QA bit range
73 Float_t *fHighSDDValue; //High value of each QA bit range
74 TObjArray *fCalibration; //TObjArray with Calibration SDD Objects
75
76
77 Float_t fThresholdForRelativeOccupancy; // ThresholdForRelativeOccupancy (by module)
78 Float_t fThresholdForRecToRawRatio; // ThresholdForRecToRawRatio (by module)
79
80 TCanvas ** fImage ; //[AliRecoParam::kNSpecies]
80b9610c 81
25b4170b 82 Int_t fESforCheck; //eventspecie of the list to check
83
8db5c9f9 84 static const Int_t fgknSDDmodules = 260; // number of SDD modules
85 static const Int_t fgkmodoffset = 240; // number of SPD modules
5dfa9b71 86
25b4170b 87 ClassDef(AliITSQASDDChecker,6) // description
8db5c9f9 88
5dfa9b71 89};
90
91#endif // AliITSQASDDChecker_H