Protection against missing timestamps
[u/mrichter/AliRoot.git] / ITS / AliITSQASDDDataMakerRec.h
CommitLineData
cfb59c70 1#ifndef ALIITSQASDDDATAMAKERREC_H
2#define ALIITSQASDDDATAMAKERREC_H
ebdd0606 3/* Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6//
7// Checks the quality assurance.
8// By comparing with reference data
9// contained in a DB
10//
11//
12// W. Ferrarese + P. Cerello Feb 2008
13
14/* $Id$ */
15
4e25ac79 16#include "AliQAv1.h"
ebdd0606 17
f1b15b8d 18class AliITSQADataMakerRec;
cfb59c70 19class AliITSCalibrationSDD;
ebdd0606 20class TObjArray;
21class AliITSDDLModuleMapSDD;
f1b15b8d 22class AliRawReader;
cfb59c70 23
ebdd0606 24class AliITSQASDDDataMakerRec: public TObject {
25
26public:
27 AliITSQASDDDataMakerRec(AliITSQADataMakerRec *aliITSQADataMakerRec, Bool_t kMode = kFALSE, Short_t ldc = 0);
28 AliITSQASDDDataMakerRec(const AliITSQASDDDataMakerRec& qadm);
29 AliITSQASDDDataMakerRec& operator = (const AliITSQASDDDataMakerRec& qac);
eca4fa66 30 virtual Int_t InitRaws();
31 virtual Int_t InitDigits();
32 virtual Int_t InitRecPoints();
33 virtual Int_t MakeRaws(AliRawReader *rawReader);
6252ceeb 34 virtual Int_t MakeDigits() {return 0;}
eca4fa66 35 virtual Int_t MakeDigits(TTree *clustersTree);
36 virtual Int_t MakeRecPoints(TTree *clustersTree);
ebdd0606 37 virtual void StartOfDetectorCycle();
92664bc8 38 virtual void EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjArray ** list);
58ceb8ca 39 virtual void CreateTheMap();
3f90b3dc 40 virtual void CreateTheCalibration();
41 virtual void InitCalibrationArray();
e41192d7 42
ebdd0606 43 virtual ~AliITSQASDDDataMakerRec(); // dtor
cfb59c70 44 Int_t GetOffset(AliQAv1::TASKINDEX_t task,Int_t specie=0)const;
8b7e858c 45 void SetOffset(AliQAv1::TASKINDEX_t task, Int_t offset, Int_t specie = 0);
4e25ac79 46 Int_t GetTaskHisto(AliQAv1::TASKINDEX_t task);
92664bc8 47 Int_t GetNumberOfEvents(AliQAv1::TASKINDEX_t task, Int_t trigCl=-1);
5af1d436 48 virtual void ResetDetector(AliQAv1::TASKINDEX_t task);
cfb59c70 49 AliITSDDLModuleMapSDD* GetDDLSDDModuleMap()const{return fDDLModuleMap; };
58ceb8ca 50
ebdd0606 51private:
52
e41192d7 53 static const Int_t fgknSDDmodules = 260; // number of SDD modules
54 static const Int_t fgkmodoffset = 240; // number of SPD modules
55 static const Int_t fgknAnode = 256; // anode per half-module
56 static const Int_t fgknSide =2; // side per module
58ceb8ca 57 //static const Int_t fgkDDLIDshift = 0; // necessary option until RawStream Table is complete
e41192d7 58 static const Int_t fgkLADDonLAY3 = 14; // number of ladder on layer 3
59 static const Int_t fgkLADDonLAY4 = 22; // number of ladder on layer 4
cfb59c70 60 static const Int_t fgkTotalNumberSDDAnodes = 512; //total number of the anodes of a SDD modules
61 static const Int_t fgkNumberOfSDDAnodesperSide =256; //number of the anodes of an half SDD modules
ebdd0606 62
3f90b3dc 63 AliITSQADataMakerRec *fAliITSQADataMakerRec; // pointer to the main ctor
64 Bool_t fkOnline; // online (1) or offline (0) use
65 Int_t fLDC; // LDC number (0 for offline, 1 to 4 for online)
66 Int_t fSDDhRawsTask; // number of histo booked for each the Raws Task SDD
67 Int_t fSDDhDigitsTask; // number of histo booked for each the RecPoints Task SDD
68 Int_t fSDDhRecPointsTask; // number of histo booked for each the RecPoints Task SDD
78fb0b3d 69 Int_t fOnlineOffsetRaws; // index for starting online histograms for Raws
70 Int_t fOnlineOffsetRecPoints; // index for starting online histograms for RecPoints
8b7e858c 71 Int_t *fGenRawsOffset; // QAchecking Raws offset
4a903927 72 Int_t *fGenDigitsOffset; // QAchecking RecPoints offset
8b7e858c 73 Int_t *fGenRecPointsOffset; // QAchecking RecPoints offset
3f90b3dc 74 Int_t fTimeBinSize; // time bin width in number of clocks
3f90b3dc 75 AliITSDDLModuleMapSDD *fDDLModuleMap; // SDD Detector configuration for the decoding
76 TObjArray *fCalibration; //Array of Calibration Object
77 TObjArray *fHistoCalibration; //Array of the Calibration histograms for the normalization
8b7e858c 78
78fb0b3d 79 ClassDef(AliITSQASDDDataMakerRec,13) // description
ebdd0606 80
81};
82
83#endif
84