Added QA for digits during reconstruction (Yves)
[u/mrichter/AliRoot.git] / TRD / AliTRDQADataMakerRec.h
CommitLineData
04236e67 1#ifndef AliTRDQADataMakerRec_H
2#define AliTRDQADataMakerRec_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8////////////////////////////////////////////////////////////////////////////
9// //
10// Produces the data needed to calculate the quality assurance. //
11// All data must be mergeable objects. //
12// //
13// Author: //
14// Sylwester Radomski (radomski@physi.uni-heidelberg.de) //
15// //
16////////////////////////////////////////////////////////////////////////////
17
18// --- ROOT system ---
19class TH1F ;
20class TH1I ;
21
22// --- AliRoot header files ---
23class AliExternalTrackParam;
24
25#include "AliQADataMakerRec.h"
26
27class AliTRDQADataMakerRec: public AliQADataMakerRec {
28
29 public:
30
31 AliTRDQADataMakerRec() ; // ctor
32 AliTRDQADataMakerRec(const AliTRDQADataMakerRec& qadm) ;
33 AliTRDQADataMakerRec& operator = (const AliTRDQADataMakerRec& qadm) ;
34 virtual ~AliTRDQADataMakerRec() {;} // dtor
35
36 private:
37
4e25ac79 38 virtual void EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjArray ** list) ;
04236e67 39 virtual void InitESDs() ;
44ed7a66 40 virtual void InitDigits() ;
04236e67 41 virtual void InitRecPoints() ;
42 virtual void InitRaws() ;
43
44 virtual void MakeRaws(AliRawReader* rawReader);
44ed7a66 45 virtual void MakeDigits(TTree * dig);
46 virtual void MakeDigits(TClonesArray * digits);
04236e67 47 virtual void MakeRecPoints(TTree * recpo);
48 virtual void MakeESDs(AliESDEvent * esd);
49
50 virtual void StartOfDetectorCycle() ;
51 Int_t CheckPointer(TObject *obj, const char *name);
52
53 // internal methods
9b99c029 54 Int_t GetSector(Double_t alpha) const;
55 Int_t GetStack(const AliExternalTrackParam *paramOut) const;
04236e67 56 Double_t GetExtZ(const AliExternalTrackParam *paramIn) const;
987ba9a3 57 Int_t FillBits(TH1D *hist, Int_t code, Int_t offset);
9b99c029 58
743496f4 59 void BuildRatio(TH1D *ratio, TH1D *histN, TH1D *histD);
04236e67 60
61 ClassDef(AliTRDQADataMakerRec,1) // Creates the TRD QA data
62
63};
64#endif // AliTRDQADataMakerRec_H