]>
Commit | Line | Data |
---|---|---|
421ab0fb | 1 | #ifndef ALIQUALASSCHECKERBASE_H |
2 | #define ALIQUALASSCHECKERBASE_H | |
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 | |
11 | Compares Data made by QualAssDataMakers with reference data | |
12 | Y. Schutz CERN August 2007 | |
13 | */ | |
14 | ||
15 | ||
16 | // --- ROOT system --- | |
17 | #include <TNamed.h> | |
a5fa6165 | 18 | #include "AliQualAss.h" |
421ab0fb | 19 | class TFile ; |
a5fa6165 | 20 | class TH1 ; |
421ab0fb | 21 | |
22 | // --- Standard library --- | |
23 | ||
24 | // --- AliRoot header files --- | |
25 | ||
26 | class AliQualAssCheckerBase: public TNamed { | |
27 | ||
28 | public: | |
29 | AliQualAssCheckerBase(const char * name = "", const char * title = "") ; // ctor | |
30 | AliQualAssCheckerBase(const AliQualAssCheckerBase& qac) ; | |
31 | AliQualAssCheckerBase& operator = (const AliQualAssCheckerBase& qac) ; | |
32 | virtual ~AliQualAssCheckerBase() {;} // dtor | |
33 | ||
a5fa6165 | 34 | void Run(AliQualAss::ALITASK tsk); |
35 | void Init(const AliQualAss::DETECTORINDEX det) ; | |
36 | void SetRefandData(TDirectory * ref, TDirectory * data) { fRefSubDir = ref ; fDataSubDir = data ; } | |
421ab0fb | 37 | |
38 | protected: | |
a5fa6165 | 39 | virtual const Double_t Check() ; |
421ab0fb | 40 | const Double_t DiffC(const TH1 * href, const TH1 * hin) const ; |
41 | const Double_t DiffK(const TH1 * href, const TH1 * hin) const ; | |
42 | void Finish() const ; | |
43 | ||
a5fa6165 | 44 | TDirectory * fDataSubDir ; //! directory for the current task directory in the current detector directory in the data file |
45 | TDirectory * fRefSubDir ; //! directory for the current task directory in the current detector directory in the reference file | |
421ab0fb | 46 | |
47 | ClassDef(AliQualAssCheckerBase,1) // description | |
48 | ||
49 | }; | |
50 | ||
51 | #endif // AliQUALASSCHECKERBASE_H |