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 virtual ~AliPHOSCalibrManager() ; // dtor
28 static AliPHOSCalibrManager * GetInstance() ;
29 static AliPHOSCalibrManager * GetInstance(const char * dbfilename ) ;
31 //To know correspondance when reads list of gains from ascii file
32 void SetConTableDB(AliPHOSConTableDB * ctdb){fctdb = ctdb; }
34 //Read gains of pedestals from ascii file
35 void ReadFromASCII(AliPHOSCalibrationData & data,const char * filename = "gains.dat") ;
37 void ReadFromRoot(AliPHOSCalibrationData &data,Int_t run) ;
39 void WriteData(AliPHOSCalibrationData *data) ;
41 AliPHOSCalibrManager & operator = (const AliPHOSCalibrManager & ) ;
44 AliPHOSCalibrManager(const char* filename) ;
48 AliPHOSConTableDB * fctdb ; //!
49 static AliPHOSCalibrManager * fgCaMa ; // pointer to the unique instance of singleton
52 ClassDef(AliPHOSCalibrManager,1) // description
56 #endif // AliPHOSCALIBRMANAGER_H