Fix writing of tracklets for first event
[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"
8c823e5a 24
25class AliITSQASPDDataMakerRec;
26class AliITSQASDDDataMakerRec;
27class AliITSQASSDDataMakerRec;
8b7e858c 28class AliITSRecPoint;
04236e67 29class AliRawReader;
8b7e858c 30class TH2F;
04236e67 31
32class AliITSQADataMakerRec: public AliQADataMakerRec {
33
8c823e5a 34friend class AliITSQASPDDataMakerRec;
35friend class AliITSQASDDDataMakerRec;
36friend class AliITSQASSDDataMakerRec;
37
04236e67 38public:
8c823e5a 39 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 40 AliITSQADataMakerRec(const AliITSQADataMakerRec& qadm);
41 AliITSQADataMakerRec& operator = (const AliITSQADataMakerRec& qac);
8b7e858c 42 virtual Int_t GetEventSpecie() const { return AliReconstructor::GetRecoParam(0)->GetEventSpecie(); }
8c823e5a 43 virtual void StartOfDetectorCycle();
4e25ac79 44 virtual void EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjArray ** list);
8c823e5a 45 virtual void EndOfDetectorCycle(const char *fgDataName);
04236e67 46 virtual void InitRaws();
44ed7a66 47 virtual void InitDigits();
04236e67 48 virtual void InitRecPoints();
a90a332e 49 virtual void InitESDs();
04236e67 50 virtual void MakeRaws(AliRawReader *rawReader);
6252ceeb 51 virtual void MakeDigits(){AliWarning("Signature not implemented. A TTree* of digits should be passed as input argument");}
44ed7a66 52 virtual void MakeDigits(TTree *digitsTree);
04236e67 53 virtual void MakeRecPoints(TTree *clustersTree);
a90a332e 54 virtual void MakeESDs(AliESDEvent *esd);
8b7e858c 55 virtual void FillRecPoint(AliITSRecPoint rcp);
e41192d7 56
8c823e5a 57 virtual ~AliITSQADataMakerRec(); // dtor
614c7e17 58 Short_t GetSubDet(){return fSubDetector;};
4e25ac79 59 Int_t GetDetTaskOffset(Int_t subdet,AliQAv1::TASKINDEX_t task);
8b7e858c 60 TH2F *GetITSGlobalHisto(Int_t layer);
614c7e17 61
04236e67 62
63private:
64
8c823e5a 65 Bool_t fkOnline; //online (1) or offline (0) use
66 Short_t fSubDetector; // subDetector: 0 (ALL), 1 (SPD), 2 (SDD), 3 (SSD)
67 Short_t fLDC; // number of LDC: 0 (one LDC for the whole subdetector)
68
69 AliITSQASPDDataMakerRec *fSPDDataMaker; // SPD Data Maker
70 AliITSQASDDDataMakerRec *fSDDDataMaker; // SDD Data Maker
71 AliITSQASSDDataMakerRec *fSSDDataMaker; // SSD Data Maker
72
8b7e858c 73 ClassDef(AliITSQADataMakerRec,5) // description
04236e67 74
75};
76
77#endif
78