Exporting header files for DCS sensors
[u/mrichter/AliRoot.git] / TPC / AliTPCcalibDB.h
CommitLineData
c5bbaa2c 1#ifndef ALITPCCALIBDB_H
2#define ALITPCCALIBDB_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// Class providing the calibration parameters by accessing the CDB //
9// //
10///////////////////////////////////////////////////////////////////////////////
11
12
13#include "TObject.h"
14class AliTPCCalPad;
15class AliCDBEntry;
8477f500 16class AliTPCParam;
68751c2c 17//class AliCDBStorage;
c5bbaa2c 18
19class AliTPCcalibDB : public TObject
20{
21 public:
22 static AliTPCcalibDB* Instance();
23 AliTPCcalibDB();
24 virtual ~AliTPCcalibDB();
25 static void Terminate();
26 void SetRun(Long64_t run);
27 //
a3610d0e 28 AliTPCCalPad* GetPadGainFactor();
29 AliTPCCalPad* GetPadTime0();
30 AliTPCCalPad* GetPadPRFWidth();
31 AliTPCCalPad* GetPadNoise();
32 AliTPCCalPad* GetPedestals();
33 AliTPCParam* GetParameters();
c5bbaa2c 34 //
35protected:
36 void Update(); //update entries
37 AliCDBEntry* GetCDBEntry(const char* cdbPath);
38 Long64_t fRun; // current run number
68751c2c 39// AliCDBStorage* fLocator; // Storage locator retrieved from AliCDBManager
c5bbaa2c 40 //
41 // calibration parameters per pad
42 //
43 AliTPCCalPad* fPadGainFactor;
44 AliTPCCalPad* fPadTime0;
45 AliTPCCalPad* fPadPRFWidth;
46 AliTPCCalPad* fPadNoise;
8477f500 47 AliTPCCalPad* fPedestals;
48 //
49 //
50 AliTPCParam * fParam;
c5bbaa2c 51 //
52 static AliTPCcalibDB* fgInstance;
53 static Bool_t fgTerminated;
0355ccd5 54 private:
55 AliTPCcalibDB(const AliTPCcalibDB &param); // copy constructor
56 AliTPCcalibDB &operator = (const AliTPCcalibDB & param);
c5bbaa2c 57 ClassDef(AliTPCcalibDB, 0)
58};
59
60
61#endif