Gas values corrected for the real P/T
[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"
1e7991d8 22
8b7e858c 23#include "AliDetectorRecoParam.h"
24#include "AliReconstructor.h"
5af1d436 25#include "AliITSDDLModuleMapSDD.h"
1e7991d8 26#include "AliQAManager.h"
8c823e5a 27
28class AliITSQASPDDataMakerRec;
29class AliITSQASDDDataMakerRec;
30class AliITSQASSDDataMakerRec;
8b7e858c 31class AliITSRecPoint;
04236e67 32class AliRawReader;
8b7e858c 33class TH2F;
5af1d436 34//class AliITSDDLModuleMapSDD;
04236e67 35
36class AliITSQADataMakerRec: public AliQADataMakerRec {
37
8c823e5a 38friend class AliITSQASPDDataMakerRec;
39friend class AliITSQASDDDataMakerRec;
40friend class AliITSQASSDDataMakerRec;
41
04236e67 42public:
8c823e5a 43 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 44 AliITSQADataMakerRec(const AliITSQADataMakerRec& qadm);
45 AliITSQADataMakerRec& operator = (const AliITSQADataMakerRec& qac);
d3c65f66 46 virtual Int_t GetEventSpecie() const { return AliRecoParam::AConvert(fEventSpecie); }
8c823e5a 47 virtual void StartOfDetectorCycle();
1e7991d8 48 virtual void StartOfCycle(AliQAv1::TASKINDEX_t task, Int_t run, const Bool_t sameCycle = kFALSE) ;
49 virtual void StartOfCycle(Int_t run){AliQADataMakerRec::StartOfCycle(run);}
4e25ac79 50 virtual void EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjArray ** list);
1e7991d8 51 // virtual void EndOfDetectorCycle(const char *fgDataName);
04236e67 52 virtual void InitRaws();
44ed7a66 53 virtual void InitDigits();
04236e67 54 virtual void InitRecPoints();
a90a332e 55 virtual void InitESDs();
04236e67 56 virtual void MakeRaws(AliRawReader *rawReader);
6252ceeb 57 virtual void MakeDigits(){AliWarning("Signature not implemented. A TTree* of digits should be passed as input argument");}
44ed7a66 58 virtual void MakeDigits(TTree *digitsTree);
04236e67 59 virtual void MakeRecPoints(TTree *clustersTree);
a90a332e 60 virtual void MakeESDs(AliESDEvent *esd);
8b7e858c 61 virtual void FillRecPoint(AliITSRecPoint rcp);
1e7991d8 62 virtual Bool_t ListExists(AliQAv1::TASKINDEX_t task) const;
63 AliQAv1::TASKINDEX_t GetTaskIndexSelected() const {return fSelectedTaskIndex;}
e41192d7 64
5af1d436 65 virtual void ResetDetector(AliQAv1::TASKINDEX_t task);
66
8c823e5a 67 virtual ~AliITSQADataMakerRec(); // dtor
614c7e17 68 Short_t GetSubDet(){return fSubDetector;};
80b9610c 69 Int_t GetDetTaskOffset(Int_t subdet,AliQAv1::TASKINDEX_t task,Int_t specie=0);
70 Int_t GetDetTaskHisto(Int_t subdet,AliQAv1::TASKINDEX_t task);
f867e0d8 71 TH2F *GetITSGlobalHisto(Int_t layer);
180e540f 72 static Bool_t AreEqual(Double_t a1, Double_t a2);
614c7e17 73
aa444532 74 virtual void SetRunNumber(Int_t runnumber){fRunNumber=runnumber;};
58ceb8ca 75 Int_t GetRunNumber(){return fRunNumber;};
76
aa444532 77 virtual void SetEventNumber(Int_t eventnumber){fEventNumber=eventnumber;};
78 Int_t GetEventNumber() const {return fEventNumber;};
5af1d436 79 AliITSDDLModuleMapSDD *GetDDLSDDModuleMap();
04236e67 80
81private:
82
8c823e5a 83 Bool_t fkOnline; //online (1) or offline (0) use
84 Short_t fSubDetector; // subDetector: 0 (ALL), 1 (SPD), 2 (SDD), 3 (SSD)
85 Short_t fLDC; // number of LDC: 0 (one LDC for the whole subdetector)
58ceb8ca 86 Int_t fRunNumber; //run number
1e7991d8 87 Int_t fEventNumber; //Event number (online mode)
88 AliQAv1::TASKINDEX_t fSelectedTaskIndex; //Current TaskIndex
8c823e5a 89
90 AliITSQASPDDataMakerRec *fSPDDataMaker; // SPD Data Maker
91 AliITSQASDDDataMakerRec *fSDDDataMaker; // SDD Data Maker
92 AliITSQASSDDataMakerRec *fSSDDataMaker; // SSD Data Maker
93
1e7991d8 94 ClassDef(AliITSQADataMakerRec,8) // description
04236e67 95
96};
97
98#endif
99