T0 mean position for channel width 24.4
[u/mrichter/AliRoot.git] / STEER / AliQADataMakerSteer.h
CommitLineData
312e6f8d 1#ifndef ALIQADATAMAKERSTEER_H
2#define ALIQADATAMAKERSTEER_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// class for running the QA makers //
11// //
12// AliQADataMakerSteer qas; //
13// qas.Run(AliQA::kRAWS, rawROOTFileName); //
14// qas.Run(AliQA::kHITS); //
15// qas.Run(AliQA::kSDIGITS); //
16// qas.Run(AliQA::kDIGITS); //
17// qas.Run(AliQA::kRECPOINTS); //
18// qas.Run(AliQA::kESDS); //
19// //
20///////////////////////////////////////////////////////////////////////////////
21
22#include <TNamed.h>
23#include "AliQA.h"
24#include "AliLoader.h"
25
26class AliQADataMaker ;
27class AliRawReaderRoot ;
28class AliRunLoader ;
c65c502a 29class AliESDEvent ;
312e6f8d 30
31class AliQADataMakerSteer: public TNamed {
32public:
33 AliQADataMakerSteer(const char* gAliceFilename = "galice.root",
34 const char * name = "AliQADataMakerSteer",
35 const char * title = "QA makers") ;
36 AliQADataMakerSteer(const AliQADataMakerSteer & qas) ;
37 AliQADataMakerSteer & operator = (const AliQADataMakerSteer & qas) ;
38 virtual ~AliQADataMakerSteer() ;
315bba70 39 Bool_t Merge() ;
c65c502a 40 void Reset() ;
312e6f8d 41 Bool_t Run(const AliQA::TASKINDEX taskIndex, const char * fileName = NULL) ;
42 void SetCycleLength(const AliQA::DETECTORINDEX det, const Int_t cycle) { fQACycles[det] = cycle ; }
43
44private:
45 AliLoader * GetLoader(Int_t iDet) ;
46 const Int_t GetQACycles(const Int_t iDet) { return fQACycles[iDet] ; }
47 AliQADataMaker * GetQADataMaker(Int_t iDet) ;
48 Bool_t Init(const AliQA::TASKINDEX taskIndex, const char * fileName = NULL) ;
49 Bool_t InitRunLoader() ;
50 Bool_t Finish(const AliQA::TASKINDEX taskIndex) ;
51
52
c65c502a 53 Bool_t fCycleSame ; //! true if 2 consecutive data making for a same detector
312e6f8d 54 AliESDEvent * fESD ; //! current ESD
55 TTree * fESDTree ; //! current ESD Tree
56 Bool_t fFirst ; //! to search the detector QA data maker only once
57 TString fGAliceFileName ; //! name of the galice file
58 UInt_t fRunNumber ; //! current run number
59 Long64_t fNumberOfEvents ; //! number of events in the run
60 AliRawReaderRoot * fRawReader ; //! current raw reader object
61 AliRunLoader * fRunLoader ; //! current run loader object
62 static const UInt_t fgkNDetectors = AliQA::kNDET ; //! number of detectors
63 AliLoader * fLoader[fgkNDetectors]; //! array of detectors loader
64 AliQADataMaker * fQADataMaker[fgkNDetectors]; //! array of QA data maker objects
65 Int_t fQACycles[fgkNDetectors]; //! array of QA cycle length
66
67 ClassDef(AliQADataMakerSteer, 0) // class for running the QA makers
68};
69
70#endif