Small correction for shifts in SSD (M. Van Leeuwen)
[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
16#include "AliQA.h"
17#include "AliITSQADataMakerRec.h"
f91768e0 18#include "AliQADataMakerRec.h"
8c823e5a 19
20class TObjArray;
21class TH1D;
22class AliRawReader;
c71529b0 23class AliESDEvent;
8c823e5a 24class AliITSQADataMakerRec;
25
26class AliITSQASSDDataMakerRec: public TObject {
27
28public:
29 AliITSQASSDDataMakerRec(AliITSQADataMakerRec *aliITSQADataMakerRec, Bool_t kMode = kFALSE, Int_t ldc=0); //ctor
30 AliITSQASSDDataMakerRec(const AliITSQASSDDataMakerRec& qadm);
31 AliITSQASSDDataMakerRec& operator = (const AliITSQASSDDataMakerRec& qac);
32 virtual void InitRaws();
33 virtual void InitRecPoints();
c71529b0 34 //virtual void InitESDs();
8c823e5a 35 virtual void MakeRaws(AliRawReader *rawReader);
36 virtual void MakeRecPoints(TTree *clustersTree);
c71529b0 37 //virtual void MakeESDs(AliESDEvent *esd);
8c823e5a 38 virtual void StartOfDetectorCycle();
92a357bf 39 virtual void EndOfDetectorCycle(AliQA::TASKINDEX_t task, TObjArray * list);
f91768e0 40 virtual ~AliITSQASSDDataMakerRec(); // dtor
c71529b0 41 Int_t GetOffset() { return fGenOffset; }
3647765c 42 Int_t GetTaskHisto() { return fSSDhTask; }
8c823e5a 43
f91768e0 44 private:
8c823e5a 45
f91768e0 46 Double_t GetSSDOccupancyRaws(TH1 *lHisto, Int_t stripside);
47
c6fba1d9 48 static const Int_t fgkNumOfLDCs = 3; //number of SSD LDCs
f91768e0 49 static const Int_t fgkNumOfDDLs = 16; //number of SSD DDLs
8c823e5a 50 static const Int_t fgkSSDMODULES = 1698; //total number of SSD modules
f91768e0 51 static const Int_t fgkSSDLADDERSLAYER5 = 34; //ladders on layer 5
52 static const Int_t fgkSSDLADDERSLAYER6 = 38; //ladders on layer 6
53 static const Int_t fgkSSDMODULESPERLADDERLAYER5 = 22; //modules per ladder - layer 5
54 static const Int_t fgkSSDMODULESPERLADDERLAYER6 = 25; //modules per ladder - layer 6
8c823e5a 55 static const Int_t fgkSSDMODULESLAYER5 = 748; //total number of SSD modules - layer5
56 static const Int_t fgkSSDMODULESLAYER6 = 950; //total number of SSD modules - layer6
f91768e0 57 static const Int_t fgkNumberOfPSideStrips = 768; //number of P-side strips
58
8c823e5a 59 AliITSQADataMakerRec *fAliITSQADataMakerRec; //pointer to the main ctor
f91768e0 60 Int_t fSSDEvent; //event counter
8c823e5a 61 Bool_t fkOnline; //online (1) or offline (0) use
62 Int_t fLDC; //LDC number (0 for offline, 1 to 4 for online)
c71529b0 63 Int_t fSSDRawsOffset; // SSD raw data plot offset
3647765c 64 Int_t fSSDhTask; // number of histo booked for each SSD task
65 Int_t fGenOffset; // qachecking offset
8c823e5a 66 TH1D *fHistSSDRawSignalModule[fgkSSDMODULES]; //raw signal vs strip number - SSD
c6fba1d9 67 ClassDef(AliITSQASSDDataMakerRec,2) // description
8c823e5a 68
69};
70
71#endif