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 */
8 //_________________________________________________________________________
10 //*-- Author: D.Peressounko (RRC KI & SUBATECH)
13 // --- ROOT system ---
17 // --- Standard library ---
19 // --- AliRoot header files ---
20 class AliPHOSConTableDB ;
21 class AliPHOSCalibrationData ;
23 class AliPHOSCalibrManager:public TNamed {
26 AliPHOSCalibrManager() ; // ctor
27 AliPHOSCalibrManager(const AliPHOSCalibrManager & manager) : TNamed(manager) {
29 // requested by the Coding Convention
30 Fatal("cpy ctor", "not implemented") ;
33 virtual ~AliPHOSCalibrManager() ; // dtor
34 static AliPHOSCalibrManager * GetInstance() ;
35 static AliPHOSCalibrManager * GetInstance(const char * filename,const char * kind = "root" ) ;
37 void GetParameters(AliPHOSCalibrationData &data) ;
39 void SetConTable(AliPHOSConTableDB * ct){fctdb = ct ;}
41 void WriteData(AliPHOSCalibrationData &data) ;
43 AliPHOSCalibrManager & operator = (const AliPHOSCalibrManager & right) ;
46 //Read gains of pedestals from ascii file
47 void ReadFromASCII(AliPHOSCalibrationData & data) ;
49 void ReadFromRoot(AliPHOSCalibrationData &data) ;
51 AliPHOSCalibrManager(const char* filename,const char * kind = "root") ;
54 TString fFileName ; //Name of file with calibration data
55 Int_t fInputKind; //Kind of input to read/write data
56 AliPHOSConTableDB * fctdb ; //Connection table used to read from ASCII file
58 static AliPHOSCalibrManager * fgCaMa ; // pointer to the unique instance of singleton
61 ClassDef(AliPHOSCalibrManager,1) // description
65 #endif // AliPHOSCALIBRMANAGER_H