]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSCalibrManager.h
Updated PID with pi0 identification
[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"
15#include "TArrayF.h"
16#include "TString.h"
17
18// --- Standard library ---
19
20// --- AliRoot header files ---
21class AliPHOSConTableDB ;
22class AliPHOSCalibrationData ;
23
24class AliPHOSCalibrManager:public TNamed {
25
26public:
27 AliPHOSCalibrManager() ; // ctor
28 virtual ~AliPHOSCalibrManager() ; // dtor
29 static AliPHOSCalibrManager * GetInstance() ;
30 static AliPHOSCalibrManager * GetInstance(const char * dbfilename ) ;
31
32 //To know correspondance when reads list of gains from ascii file
33 void SetConTableDB(AliPHOSConTableDB * ctdb){fctdb = ctdb; }
34
35 //Read gains of pedestals from ascii file
36 void ReadFromASCII(AliPHOSCalibrationData & data,const char * filename = "gains.dat") ;
37
38 void ReadFromRoot(AliPHOSCalibrationData &data,Int_t run) ;
39
40 void WriteData(AliPHOSCalibrationData *data) ;
41
42 AliPHOSCalibrManager & operator = (const AliPHOSCalibrManager & ) ;
43
44private:
45 AliPHOSCalibrManager(const char* filename) ;
46
47private:
48 TString fFileName ;
49 AliPHOSConTableDB * fctdb ; //!
50 static AliPHOSCalibrManager * fgCaMa ; // pointer to the unique instance of singleton
51
52
53 ClassDef(AliPHOSCalibrManager,1) // description
54
55};
56
57#endif // AliPHOSCALIBRMANAGER_H