Added reference from vertex to candidate (Andrea)
[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
3f7dbdb7 27 AliPHOSCalibrManager(const AliPHOSCalibrManager & manager);
cd228525 28
f3bd42f5 29 virtual ~AliPHOSCalibrManager() ; // dtor
30 static AliPHOSCalibrManager * GetInstance() ;
e4778e0c 31 static AliPHOSCalibrManager * GetInstance(const char * filename,const char * kind = "root" ) ;
f3bd42f5 32
e4778e0c 33 void GetParameters(AliPHOSCalibrationData &data) ;
34
35 void SetConTable(AliPHOSConTableDB * ct){fctdb = ct ;}
f3bd42f5 36
e4778e0c 37 void WriteData(AliPHOSCalibrationData &data) ;
f3bd42f5 38
cd228525 39 AliPHOSCalibrManager & operator = (const AliPHOSCalibrManager & right) ;
f3bd42f5 40
41private:
e4778e0c 42 //Read gains of pedestals from ascii file
43 void ReadFromASCII(AliPHOSCalibrationData & data) ;
44
45 void ReadFromRoot(AliPHOSCalibrationData &data) ;
46
47 AliPHOSCalibrManager(const char* filename,const char * kind = "root") ;
f3bd42f5 48
49private:
cd228525 50 TString fFileName ; //Name of file with calibration data
e4778e0c 51 Int_t fInputKind; //Kind of input to read/write data
52 AliPHOSConTableDB * fctdb ; //Connection table used to read from ASCII file
53
f3bd42f5 54 static AliPHOSCalibrManager * fgCaMa ; // pointer to the unique instance of singleton
55
56
57 ClassDef(AliPHOSCalibrManager,1) // description
58
59};
60
61#endif // AliPHOSCALIBRMANAGER_H