]>
Commit | Line | Data |
---|---|---|
ebdd0606 | 1 | #ifndef AliITSQASDDDataMakerRec_H |
2 | #define AliITSQASDDDataMakerRec_H | |
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 | #include "AliITSQADataMakerRec.h" |
3f90b3dc | 18 | #include "AliITSCalibrationSDD.h" |
ebdd0606 | 19 | |
20 | class TObjArray; | |
21 | class AliITSDDLModuleMapSDD; | |
ebdd0606 | 22 | class AliITSQASDDDataMakerRec: public TObject { |
23 | ||
24 | public: | |
25 | AliITSQASDDDataMakerRec(AliITSQADataMakerRec *aliITSQADataMakerRec, Bool_t kMode = kFALSE, Short_t ldc = 0); | |
26 | AliITSQASDDDataMakerRec(const AliITSQASDDDataMakerRec& qadm); | |
27 | AliITSQASDDDataMakerRec& operator = (const AliITSQASDDDataMakerRec& qac); | |
eca4fa66 | 28 | virtual Int_t InitRaws(); |
29 | virtual Int_t InitDigits(); | |
30 | virtual Int_t InitRecPoints(); | |
31 | virtual Int_t MakeRaws(AliRawReader *rawReader); | |
6252ceeb | 32 | virtual Int_t MakeDigits() {return 0;} |
eca4fa66 | 33 | virtual Int_t MakeDigits(TTree *clustersTree); |
34 | virtual Int_t MakeRecPoints(TTree *clustersTree); | |
ebdd0606 | 35 | virtual void StartOfDetectorCycle(); |
4e25ac79 | 36 | virtual void EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjArray * list); |
58ceb8ca | 37 | virtual void CreateTheMap(); |
3f90b3dc | 38 | virtual void CreateTheCalibration(); |
39 | virtual void InitCalibrationArray(); | |
e41192d7 | 40 | |
ebdd0606 | 41 | virtual ~AliITSQASDDDataMakerRec(); // dtor |
80b9610c | 42 | Int_t GetOffset(AliQAv1::TASKINDEX_t task,Int_t specie=0); |
8b7e858c | 43 | void SetOffset(AliQAv1::TASKINDEX_t task, Int_t offset, Int_t specie = 0); |
4e25ac79 | 44 | Int_t GetTaskHisto(AliQAv1::TASKINDEX_t task); |
5af1d436 | 45 | virtual void ResetDetector(AliQAv1::TASKINDEX_t task); |
46 | AliITSDDLModuleMapSDD* GetDDLSDDModuleMap(){return fDDLModuleMap; }; | |
58ceb8ca | 47 | |
ebdd0606 | 48 | private: |
49 | ||
e41192d7 | 50 | static const Int_t fgknSDDmodules = 260; // number of SDD modules |
51 | static const Int_t fgkmodoffset = 240; // number of SPD modules | |
52 | static const Int_t fgknAnode = 256; // anode per half-module | |
53 | static const Int_t fgknSide =2; // side per module | |
58ceb8ca | 54 | //static const Int_t fgkDDLIDshift = 0; // necessary option until RawStream Table is complete |
e41192d7 | 55 | static const Int_t fgkLADDonLAY3 = 14; // number of ladder on layer 3 |
56 | static const Int_t fgkLADDonLAY4 = 22; // number of ladder on layer 4 | |
3f90b3dc | 57 | static const Int_t fgkTotalNumberSDDAnodes = 512; |
58 | static const Int_t fgkNumberOfSDDAnodesperSide =256; | |
ebdd0606 | 59 | |
3f90b3dc | 60 | AliITSQADataMakerRec *fAliITSQADataMakerRec; // pointer to the main ctor |
61 | Bool_t fkOnline; // online (1) or offline (0) use | |
62 | Int_t fLDC; // LDC number (0 for offline, 1 to 4 for online) | |
63 | Int_t fSDDhRawsTask; // number of histo booked for each the Raws Task SDD | |
64 | Int_t fSDDhDigitsTask; // number of histo booked for each the RecPoints Task SDD | |
65 | Int_t fSDDhRecPointsTask; // number of histo booked for each the RecPoints Task SDD | |
8b7e858c | 66 | Int_t *fGenRawsOffset; // QAchecking Raws offset |
4a903927 | 67 | Int_t *fGenDigitsOffset; // QAchecking RecPoints offset |
8b7e858c | 68 | Int_t *fGenRecPointsOffset; // QAchecking RecPoints offset |
3f90b3dc | 69 | Int_t fTimeBinSize; // time bin width in number of clocks |
70 | Int_t fNEvent; // Number of Events (raw data) | |
71 | Int_t fNEventRP; // Number of Events (rec points) | |
72 | AliITSDDLModuleMapSDD *fDDLModuleMap; // SDD Detector configuration for the decoding | |
73 | TObjArray *fCalibration; //Array of Calibration Object | |
74 | TObjArray *fHistoCalibration; //Array of the Calibration histograms for the normalization | |
8b7e858c | 75 | |
3f90b3dc | 76 | ClassDef(AliITSQASDDDataMakerRec,12) // description |
ebdd0606 | 77 | |
78 | }; | |
79 | ||
80 | #endif | |
81 |