Fixes for building of DA (Anshul)
[u/mrichter/AliRoot.git] / TPC / AliTPCQADataMakerRec.h
CommitLineData
44f32dd2 1#ifndef ALITPCQADATAMAKERREC_H
2#define ALITPCQADATAMAKERREC_H
3/* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6
7/* $Id: $ */
8
9/*
10 Based on AliPHOSQADataMaker
11 Produces the data needed to calculate the quality assurance.
12 All data must be mergeable objects.
13 P. Christiansen, Lund, January 2008
14*/
15
16
17// --- ROOT system ---
18#include <TH1.h>
0ab2a4cc 19#include <TProfile.h>
44f32dd2 20
21// --- Standard library ---
22
23// --- AliRoot header files ---
24#include <AliQADataMakerRec.h>
25#include <AliRawReader.h>
be4f1702 26#include <AliTPCAltroMapping.h>
44f32dd2 27
28#include <AliTPCdataQA.h>
29
30class AliTPCQADataMakerRec: public AliQADataMakerRec {
31
32public:
0ab2a4cc 33 enum HRawsType_t {kRawsOccupancyVsSector=0, kRawsQVsSector, kRawsQmaxVsSector} ;
44ed7a66 34 enum HDigitType_t {kDigitsADC=0} ;
0ab2a4cc 35 enum HRECPOINTsType_t {kClusters=0, kRatio, kPt} ;
57acd2d2 36 enum HESDsType_t {kQmaxShort=0, kQmaxMedium, kQmaxLong, kQShort, kQMedium, kQLong, kRow} ;
37
44f32dd2 38 AliTPCQADataMakerRec() ; // ctor
39 AliTPCQADataMakerRec(const AliTPCQADataMakerRec& qadm) ;
40 AliTPCQADataMakerRec& operator = (const AliTPCQADataMakerRec& qadm) ;
be4f1702 41 virtual ~AliTPCQADataMakerRec();
44f32dd2 42
1267cf3a 43 Int_t GetRawFirstTimeBin() const { return fRawFirstTimeBin; }
44 Int_t GetRawLastTimeBin() const { return fRawLastTimeBin; }
0ab2a4cc 45
1267cf3a 46 void SetRawRangeTime(Int_t tMin, Int_t tMax){ fRawFirstTimeBin=tMin; fRawLastTimeBin=tMax;}
0ab2a4cc 47
48 private:
44f32dd2 49 virtual void StartOfDetectorCycle() {}; // empty
4e25ac79 50 virtual void EndOfDetectorCycle(AliQAv1::TASKINDEX_t, TObjArray** list) ;
0ab2a4cc 51
44f32dd2 52 // ESD QA
53 virtual void InitESDs() ;
54 virtual void MakeESDs(AliESDEvent *esd) ;
0ab2a4cc 55
44f32dd2 56 // Raw QA
57 virtual void InitRaws();
58 virtual void MakeRaws(AliRawReader* rawReader);
0ab2a4cc 59
44ed7a66 60 // Digits QA
61 virtual void InitDigits();
6252ceeb 62 virtual void MakeDigits() {return;}
44ed7a66 63 virtual void MakeDigits(TTree *digTree);
64
44f32dd2 65 // RecPoints QA
66 virtual void InitRecPoints();
67 virtual void MakeRecPoints(TTree *recTree);
44ed7a66 68
be4f1702 69 virtual void LoadMaps();
0ab2a4cc 70
be4f1702 71 AliTPCAltroMapping *fMapping[6]; //! Pointers to ALTRO mapping
0ab2a4cc 72 AliTPCdataQA* fTPCdataQA;//! TPC calibration object for making raw data QA
73
1267cf3a 74 Int_t fRawFirstTimeBin; //! First Time bin needed for RAW QA
75 Int_t fRawLastTimeBin; //! Last Time bin needed for RAW QA
0ab2a4cc 76
44f32dd2 77 ClassDef(AliTPCQADataMakerRec,1) // TPC Rec Quality Assurance Data Maker
0ab2a4cc 78 };
44f32dd2 79
80#endif // ALITPCQADATAMAKERREC_H