Modification needed to include PHOS in the global trigger framework
[u/mrichter/AliRoot.git] / PHOS / AliPHOSCalibrManager.h
CommitLineData
f3bd42f5 1#ifndef ALIPHOSCALIBRMANAGER_H
2#define ALIPHOSCALIBRMANAGER_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6
7
8//_________________________________________________________________________
9//
10//*-- Author: D.Peressounko (RRC KI & SUBATECH)
11
12
13// --- ROOT system ---
14#include "TNamed.h"
f3bd42f5 15#include "TString.h"
00953b03 16class TArrayF ;
f3bd42f5 17// --- Standard library ---
18
19// --- AliRoot header files ---
20class AliPHOSConTableDB ;
21class AliPHOSCalibrationData ;
22
23class AliPHOSCalibrManager:public TNamed {
24
25public:
26 AliPHOSCalibrManager() ; // ctor
a8c47ab6 27 AliPHOSCalibrManager(const AliPHOSCalibrManager & manager) : TNamed(manager) {
cd228525 28 // cpy ctor: no need
29 // requested by the Coding Convention
30 Fatal("cpy ctor", "not implemented") ;
31 }
32
f3bd42f5 33 virtual ~AliPHOSCalibrManager() ; // dtor
34 static AliPHOSCalibrManager * GetInstance() ;
e4778e0c 35 static AliPHOSCalibrManager * GetInstance(const char * filename,const char * kind = "root" ) ;
f3bd42f5 36
e4778e0c 37 void GetParameters(AliPHOSCalibrationData &data) ;
38
39 void SetConTable(AliPHOSConTableDB * ct){fctdb = ct ;}
f3bd42f5 40
e4778e0c 41 void WriteData(AliPHOSCalibrationData &data) ;
f3bd42f5 42
cd228525 43 AliPHOSCalibrManager & operator = (const AliPHOSCalibrManager & right) ;
f3bd42f5 44
45private:
e4778e0c 46 //Read gains of pedestals from ascii file
47 void ReadFromASCII(AliPHOSCalibrationData & data) ;
48
49 void ReadFromRoot(AliPHOSCalibrationData &data) ;
50
51 AliPHOSCalibrManager(const char* filename,const char * kind = "root") ;
f3bd42f5 52
53private:
cd228525 54 TString fFileName ; //Name of file with calibration data
e4778e0c 55 Int_t fInputKind; //Kind of input to read/write data
56 AliPHOSConTableDB * fctdb ; //Connection table used to read from ASCII file
57
f3bd42f5 58 static AliPHOSCalibrManager * fgCaMa ; // pointer to the unique instance of singleton
59
60
61 ClassDef(AliPHOSCalibrManager,1) // description
62
63};
64
65#endif // AliPHOSCALIBRMANAGER_H