]>
Commit | Line | Data |
---|---|---|
1 | #ifndef ALIITSQASPDDATAMAKERREC_H | |
2 | #define ALIITSQASPDDATAMAKERREC_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 | // M. Nicassio D. Elia INFN Bari March 2008 | |
14 | // maria.nicassio@ba.infn.it | |
15 | ||
16 | /* $Id$ */ | |
17 | ||
18 | class TObjArray; | |
19 | class AliRawReader; | |
20 | class AliITSRawStreamSPDErrorLog; | |
21 | class AliITSQADataMakerRec; | |
22 | class AliQAv1; | |
23 | ||
24 | class AliITSQASPDDataMakerRec : public TObject { | |
25 | ||
26 | public: | |
27 | AliITSQASPDDataMakerRec(AliITSQADataMakerRec *aliITSQADataMakerRec, Bool_t kMode = kFALSE, Short_t ldc = 0, | |
28 | AliITSRawStreamSPDErrorLog *aliITSRawStreamSPDErrorLog = NULL); //ctor | |
29 | AliITSQASPDDataMakerRec(const AliITSQASPDDataMakerRec& qadm); | |
30 | AliITSQASPDDataMakerRec& operator = (const AliITSQASPDDataMakerRec& qac); | |
31 | virtual Int_t InitRaws(); | |
32 | virtual Int_t InitDigits(); | |
33 | virtual Int_t InitRecPoints(); | |
34 | virtual Int_t MakeRaws(AliRawReader *rawReader); | |
35 | virtual Int_t MakeRecPoints(TTree *clustersTree); | |
36 | virtual Int_t MakeDigits() {return 0;} | |
37 | virtual Int_t MakeDigits(TTree *clustersTree); | |
38 | virtual void StartOfDetectorCycle(); | |
39 | virtual void EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjArray * list); | |
40 | virtual ~AliITSQASPDDataMakerRec(); // dtor | |
41 | Int_t GetOffset(AliQAv1::TASKINDEX_t task,Int_t specie=0) const; | |
42 | void SetOffset(AliQAv1::TASKINDEX_t task, Int_t offset, Int_t specie = 0); | |
43 | Int_t GetTaskHisto(AliQAv1::TASKINDEX_t task) const; | |
44 | virtual void ResetDetector(AliQAv1::TASKINDEX_t){;}; | |
45 | ||
46 | enum {kAmoreFoOffset=10, kAmoreErrorsOffset=21}; | |
47 | ||
48 | private: | |
49 | ||
50 | static const Short_t fgknSPDmodules = 240; //number of SPD modules | |
51 | static const Short_t fgkLADDonLay1 = 80; //number of modules on layer 1 | |
52 | static const Short_t fgkLADDonLay2 = 160; //number of modules on layer 2 | |
53 | static const Short_t fgkSPDchips = 1200; //number of chips | |
54 | ||
55 | AliITSQADataMakerRec *fAliITSQADataMakerRec;//pointer to the main ctor | |
56 | Bool_t fkOnline; //online (1) or offline (0) use | |
57 | Int_t fLDC; //LDC number (0 for offline, 1 to 4 for online) | |
58 | Int_t fSPDhRawsTask; // number of booked SPD histograms for the Raws Task | |
59 | Int_t fSPDhDigitsTask; // number of booked SPD histograms for the RecPoints Task | |
60 | Int_t fSPDhRecPointsTask; // number of booked SPD histograms for the RecPoints Task | |
61 | Int_t *fGenRawsOffset; // QAchecking Raws offset | |
62 | Int_t *fGenDigitsOffset; // QAchecking Digits offset | |
63 | Int_t *fGenRecPointsOffset; // QAchecking RecPoints offset | |
64 | AliITSRawStreamSPDErrorLog *fAdvLogger; // pointer to special error logger object | |
65 | ||
66 | ClassDef(AliITSQASPDDataMakerRec,6) // description | |
67 | ||
68 | }; | |
69 | ||
70 | #endif | |
71 | ||
72 |