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 ---
18 // --- Standard library ---
20 // --- AliRoot header files ---
21 class AliPHOSConTableDB ;
22 class AliPHOSCalibrationData ;
24 class AliPHOSCalibrManager:public TNamed {
27 AliPHOSCalibrManager() ; // ctor
28 virtual ~AliPHOSCalibrManager() ; // dtor
29 static AliPHOSCalibrManager * GetInstance() ;
30 static AliPHOSCalibrManager * GetInstance(const char * dbfilename ) ;
32 //To know correspondance when reads list of gains from ascii file
33 void SetConTableDB(AliPHOSConTableDB * ctdb){fctdb = ctdb; }
35 //Read gains of pedestals from ascii file
36 void ReadFromASCII(AliPHOSCalibrationData & data,const char * filename = "gains.dat") ;
38 void ReadFromRoot(AliPHOSCalibrationData &data,Int_t run) ;
40 void WriteData(AliPHOSCalibrationData *data) ;
42 AliPHOSCalibrManager & operator = (const AliPHOSCalibrManager & ) ;
45 AliPHOSCalibrManager(const char* filename) ;
49 AliPHOSConTableDB * fctdb ; //!
50 static AliPHOSCalibrManager * fgCaMa ; // pointer to the unique instance of singleton
53 ClassDef(AliPHOSCalibrManager,1) // description
57 #endif // AliPHOSCALIBRMANAGER_H