Fixing coding violations. Method AliITSQADataMakerRec::AreEqual defined static
[u/mrichter/AliRoot.git] / ITS / AliITSQADataMakerRec.h
CommitLineData
04236e67 1#ifndef AliITSQADataMakerRec_H
2#define AliITSQADataMakerRec_H
3/* Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6
7/* $Id$ */
8
8c823e5a 9
04236e67 10//
11// Checks the quality assurance.
12// By comparing with reference data
13// contained in a DB
14//
15//
8c823e5a 16// W. Ferrarese + P. Cerello Feb 2008
a90a332e 17//
18// ESD QA (Tracking and primary vertex)
19// A. Dainese Jun 2008
04236e67 20
21#include "AliQADataMakerRec.h"
8b7e858c 22#include "AliDetectorRecoParam.h"
23#include "AliReconstructor.h"
5af1d436 24#include "AliITSDDLModuleMapSDD.h"
8c823e5a 25
26class AliITSQASPDDataMakerRec;
27class AliITSQASDDDataMakerRec;
28class AliITSQASSDDataMakerRec;
8b7e858c 29class AliITSRecPoint;
04236e67 30class AliRawReader;
8b7e858c 31class TH2F;
5af1d436 32//class AliITSDDLModuleMapSDD;
04236e67 33
34class AliITSQADataMakerRec: public AliQADataMakerRec {
35
8c823e5a 36friend class AliITSQASPDDataMakerRec;
37friend class AliITSQASDDDataMakerRec;
38friend class AliITSQASSDDataMakerRec;
39
04236e67 40public:
8c823e5a 41 AliITSQADataMakerRec(Bool_t kMode = kFALSE, Short_t subDet = 0, Short_t ldc = 0); // kMode = kFALSE (offline), kTRUE (online); subDet = 0 (ALL), 1 (SPD), 2 (SDD), 3 (SSD)
04236e67 42 AliITSQADataMakerRec(const AliITSQADataMakerRec& qadm);
43 AliITSQADataMakerRec& operator = (const AliITSQADataMakerRec& qac);
d3c65f66 44 virtual Int_t GetEventSpecie() const { return AliRecoParam::AConvert(fEventSpecie); }
8c823e5a 45 virtual void StartOfDetectorCycle();
4e25ac79 46 virtual void EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjArray ** list);
8c823e5a 47 virtual void EndOfDetectorCycle(const char *fgDataName);
04236e67 48 virtual void InitRaws();
44ed7a66 49 virtual void InitDigits();
04236e67 50 virtual void InitRecPoints();
a90a332e 51 virtual void InitESDs();
04236e67 52 virtual void MakeRaws(AliRawReader *rawReader);
6252ceeb 53 virtual void MakeDigits(){AliWarning("Signature not implemented. A TTree* of digits should be passed as input argument");}
44ed7a66 54 virtual void MakeDigits(TTree *digitsTree);
04236e67 55 virtual void MakeRecPoints(TTree *clustersTree);
a90a332e 56 virtual void MakeESDs(AliESDEvent *esd);
8b7e858c 57 virtual void FillRecPoint(AliITSRecPoint rcp);
e41192d7 58
5af1d436 59 virtual void ResetDetector(AliQAv1::TASKINDEX_t task);
60
8c823e5a 61 virtual ~AliITSQADataMakerRec(); // dtor
614c7e17 62 Short_t GetSubDet(){return fSubDetector;};
80b9610c 63 Int_t GetDetTaskOffset(Int_t subdet,AliQAv1::TASKINDEX_t task,Int_t specie=0);
64 Int_t GetDetTaskHisto(Int_t subdet,AliQAv1::TASKINDEX_t task);
f867e0d8 65 TH2F *GetITSGlobalHisto(Int_t layer);
180e540f 66 static Bool_t AreEqual(Double_t a1, Double_t a2);
614c7e17 67
aa444532 68 virtual void SetRunNumber(Int_t runnumber){fRunNumber=runnumber;};
58ceb8ca 69 Int_t GetRunNumber(){return fRunNumber;};
70
aa444532 71 virtual void SetEventNumber(Int_t eventnumber){fEventNumber=eventnumber;};
72 Int_t GetEventNumber() const {return fEventNumber;};
5af1d436 73 AliITSDDLModuleMapSDD *GetDDLSDDModuleMap();
04236e67 74
75private:
76
8c823e5a 77 Bool_t fkOnline; //online (1) or offline (0) use
78 Short_t fSubDetector; // subDetector: 0 (ALL), 1 (SPD), 2 (SDD), 3 (SSD)
79 Short_t fLDC; // number of LDC: 0 (one LDC for the whole subdetector)
58ceb8ca 80 Int_t fRunNumber; //run number
aa444532 81 Int_t fEventNumber; //Event number (online mode)
8c823e5a 82
83 AliITSQASPDDataMakerRec *fSPDDataMaker; // SPD Data Maker
84 AliITSQASDDDataMakerRec *fSDDDataMaker; // SDD Data Maker
85 AliITSQASSDDataMakerRec *fSSDDataMaker; // SSD Data Maker
86
aa444532 87 ClassDef(AliITSQADataMakerRec,7) // description
04236e67 88
89};
90
91#endif
92