Changing once more (hopefully we get it correct this time...) the logic to trig the...
[u/mrichter/AliRoot.git] / ITS / AliITSQASDDDataMakerRec.h
... / ...
CommitLineData
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
16#include "AliQAv1.h"
17#include "AliITSQADataMakerRec.h"
18
19class TObjArray;
20class AliITSDDLModuleMapSDD;
21class AliITSQASDDDataMakerRec: public TObject {
22
23public:
24 AliITSQASDDDataMakerRec(AliITSQADataMakerRec *aliITSQADataMakerRec, Bool_t kMode = kFALSE, Short_t ldc = 0);
25 AliITSQASDDDataMakerRec(const AliITSQASDDDataMakerRec& qadm);
26 AliITSQASDDDataMakerRec& operator = (const AliITSQASDDDataMakerRec& qac);
27 virtual Int_t InitRaws();
28 virtual Int_t InitDigits();
29 virtual Int_t InitRecPoints();
30 virtual Int_t MakeRaws(AliRawReader *rawReader);
31 virtual Int_t MakeDigits() {return 0;}
32 virtual Int_t MakeDigits(TTree *clustersTree);
33 virtual Int_t MakeRecPoints(TTree *clustersTree);
34 virtual void StartOfDetectorCycle();
35 virtual void EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjArray * list);
36 virtual void CreateTheMap();
37
38 virtual ~AliITSQASDDDataMakerRec(); // dtor
39 Int_t GetOffset(AliQAv1::TASKINDEX_t task,Int_t specie=0);
40 void SetOffset(AliQAv1::TASKINDEX_t task, Int_t offset, Int_t specie = 0);
41 Int_t GetTaskHisto(AliQAv1::TASKINDEX_t task);
42 virtual void ResetDetector(AliQAv1::TASKINDEX_t task);
43 AliITSDDLModuleMapSDD* GetDDLSDDModuleMap(){return fDDLModuleMap; };
44
45private:
46
47 static const Int_t fgknSDDmodules = 260; // number of SDD modules
48 static const Int_t fgkmodoffset = 240; // number of SPD modules
49 static const Int_t fgknAnode = 256; // anode per half-module
50 static const Int_t fgknSide =2; // side per module
51 //static const Int_t fgkDDLIDshift = 0; // necessary option until RawStream Table is complete
52 static const Int_t fgkLADDonLAY3 = 14; // number of ladder on layer 3
53 static const Int_t fgkLADDonLAY4 = 22; // number of ladder on layer 4
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 fSDDhRawsTask; // number of histo booked for each the Raws Task SDD
59 Int_t fSDDhDigitsTask; // number of histo booked for each the RecPoints Task SDD
60 Int_t fSDDhRecPointsTask; // number of histo booked for each the RecPoints Task SDD
61 Int_t *fGenRawsOffset; // QAchecking Raws offset
62 Int_t *fGenDigitsOffset; // QAchecking RecPoints offset
63 Int_t *fGenRecPointsOffset; // QAchecking RecPoints offset
64 Int_t fTimeBinSize; // time bin width in number of clocks
65 AliITSDDLModuleMapSDD *fDDLModuleMap; // SDD Detector configuration for the decoding
66
67
68 ClassDef(AliITSQASDDDataMakerRec,11) // description
69
70};
71
72#endif
73