MergeQA is now an intrinsic part of AliReconstruction
[u/mrichter/AliRoot.git] / ITS / AliITSQASSDDataMakerRec.h
CommitLineData
8c823e5a 1#ifndef AliITSQASSDDataMakerRec_H
2#define AliITSQASSDDataMakerRec_H
3/* Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
3647765c 6/* $Id$ */
f91768e0 7
8c823e5a 8//
9// Checks the quality assurance.
10// By comparing with reference data
11// contained in a DB
12// -------------------------------------------------------------
13// W. Ferrarese + P. Cerello Feb 2008
14// INFN Torino
15
4e25ac79 16#include "AliQAv1.h"
8c823e5a 17#include "AliITSQADataMakerRec.h"
f91768e0 18#include "AliQADataMakerRec.h"
8c823e5a 19
20class TObjArray;
21class TH1D;
88128115 22
8c823e5a 23class AliRawReader;
8c823e5a 24class AliITSQADataMakerRec;
88128115 25class AliCDBManager;
8c823e5a 26
27class AliITSQASSDDataMakerRec: public TObject {
28
29public:
30 AliITSQASSDDataMakerRec(AliITSQADataMakerRec *aliITSQADataMakerRec, Bool_t kMode = kFALSE, Int_t ldc=0); //ctor
31 AliITSQASSDDataMakerRec(const AliITSQASSDDataMakerRec& qadm);
32 AliITSQASSDDataMakerRec& operator = (const AliITSQASSDDataMakerRec& qac);
33 virtual void InitRaws();
44ed7a66 34 virtual void InitDigits();
8c823e5a 35 virtual void InitRecPoints();
36 virtual void MakeRaws(AliRawReader *rawReader);
44ed7a66 37 virtual void MakeDigits(TClonesArray* /*digits*/) {return;}
38 virtual void MakeDigits(TTree *digitsTree);
8c823e5a 39 virtual void MakeRecPoints(TTree *clustersTree);
40 virtual void StartOfDetectorCycle();
4e25ac79 41 virtual void EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjArray * list);
f91768e0 42 virtual ~AliITSQASSDDataMakerRec(); // dtor
7a0e5776 43
4e25ac79 44 Int_t GetOffset(AliQAv1::TASKINDEX_t task);
45 Int_t GetTaskHisto(AliQAv1::TASKINDEX_t task);
8c823e5a 46
f91768e0 47 private:
8c823e5a 48
88128115 49 void GetOccupancyStrip(TH1 *lHisto, Int_t *occupancyMatrix);
0730893d 50 Double_t GetOccupancyModule(TH1 *lHisto,
51 Int_t stripside,
52 Int_t mode,
53 Double_t threshold);
88128115 54 void MonitorOCDBObjects();
55
c6fba1d9 56 static const Int_t fgkNumOfLDCs = 3; //number of SSD LDCs
f91768e0 57 static const Int_t fgkNumOfDDLs = 16; //number of SSD DDLs
8c823e5a 58 static const Int_t fgkSSDMODULES = 1698; //total number of SSD modules
f91768e0 59 static const Int_t fgkSSDLADDERSLAYER5 = 34; //ladders on layer 5
60 static const Int_t fgkSSDLADDERSLAYER6 = 38; //ladders on layer 6
61 static const Int_t fgkSSDMODULESPERLADDERLAYER5 = 22; //modules per ladder - layer 5
62 static const Int_t fgkSSDMODULESPERLADDERLAYER6 = 25; //modules per ladder - layer 6
8c823e5a 63 static const Int_t fgkSSDMODULESLAYER5 = 748; //total number of SSD modules - layer5
64 static const Int_t fgkSSDMODULESLAYER6 = 950; //total number of SSD modules - layer6
f91768e0 65 static const Int_t fgkNumberOfPSideStrips = 768; //number of P-side strips
66
8c823e5a 67 AliITSQADataMakerRec *fAliITSQADataMakerRec; //pointer to the main ctor
e85e993e 68 Int_t fSSDEvent; //event counter
69 Int_t fSSDEventPerCycle; //event counter per cycle
8c823e5a 70 Bool_t fkOnline; //online (1) or offline (0) use
71 Int_t fLDC; //LDC number (0 for offline, 1 to 4 for online)
e85e993e 72 Int_t fSSDRawsOffset; //SSD raw data plot offset
88128115 73 Int_t fSSDRawsDAOffset; //SSD DA plot offset
e85e993e 74 Int_t fSSDRawsCommonLevelOffset; //Raw data QA - top level offset - histos used both online and offline
7a0e5776 75 Int_t fSSDhRawsTask; //number of histo booked for the raws SSD task
44ed7a66 76 Int_t fSSDhDigitsTask; //number of histo booked for the recpoints SSD task
7a0e5776 77 Int_t fSSDhRecPointsTask; //number of histo booked for the recpoints SSD task
78 Int_t fGenRawsOffset; //qachecking raws offset
44ed7a66 79 Int_t fGenDigitsOffset; //qachecking recpoints offset
7a0e5776 80 Int_t fGenRecPointsOffset; //qachecking recpoints offset
e85e993e 81 TH1D *fHistSSDRawSignalModule[fgkSSDMODULES]; //raw signal vs strip number - SSD
82 Int_t fOccupancyMatrix[fgkSSDMODULES][2*fgkNumberOfPSideStrips]; //occupancy values per strip
83
88128115 84 AliCDBManager *fCDBManager; //CDB manager
8c823e5a 85
7a0e5776 86 ClassDef(AliITSQASSDDataMakerRec,5) // description
8c823e5a 87};
88
89#endif