]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliQACheckerBase.h
Clean-up in includes.
[u/mrichter/AliRoot.git] / STEER / AliQACheckerBase.h
CommitLineData
2e42b4d4 1#ifndef ALIQACHECKERBASE_H
2#define ALIQACHECKERBASE_H
421ab0fb 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6
7/* $Id$ */
8
9/*
10 Base class for detectors quality assurance checkers
2e42b4d4 11 Compares Data made by QADataMakers with reference data
421ab0fb 12 Y. Schutz CERN August 2007
13*/
14
15
16// --- ROOT system ---
17#include <TNamed.h>
2e42b4d4 18#include "AliQA.h"
421ab0fb 19class TFile ;
a5fa6165 20class TH1 ;
a4976ef3 21class TList ;
421ab0fb 22
23// --- Standard library ---
24
25// --- AliRoot header files ---
26
2e42b4d4 27class AliQACheckerBase: public TNamed {
421ab0fb 28
29public:
2e42b4d4 30 AliQACheckerBase(const char * name = "", const char * title = "") ; // ctor
31 AliQACheckerBase(const AliQACheckerBase& qac) ;
32 AliQACheckerBase& operator = (const AliQACheckerBase& qac) ;
33 virtual ~AliQACheckerBase() {;} // dtor
34
35 void Init(const AliQA::DETECTORINDEX det) ;
36 void Run(AliQA::ALITASK tsk, TList * list=0x0);
a4976ef3 37 void SetRefandData(TDirectory * ref, TDirectory * data=NULL) { fRefSubDir = ref ; fDataSubDir = data ; }
421ab0fb 38
39protected:
a5fa6165 40 virtual const Double_t Check() ;
a4976ef3 41 virtual const Double_t Check(TList * list) ;
421ab0fb 42 const Double_t DiffC(const TH1 * href, const TH1 * hin) const ;
43 const Double_t DiffK(const TH1 * href, const TH1 * hin) const ;
44 void Finish() const ;
45
a5fa6165 46 TDirectory * fDataSubDir ; //! directory for the current task directory in the current detector directory in the data file
47 TDirectory * fRefSubDir ; //! directory for the current task directory in the current detector directory in the reference file
421ab0fb 48
2e42b4d4 49 ClassDef(AliQACheckerBase,1) // description
421ab0fb 50
51};
52
53#endif // AliQUALASSCHECKERBASE_H