Take TPC parameters from CDB as default (Marian)
[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;
68751c2c 16//class AliCDBStorage;
c5bbaa2c 17
18class AliTPCcalibDB : public TObject
19{
20 public:
21 static AliTPCcalibDB* Instance();
22 AliTPCcalibDB();
23 virtual ~AliTPCcalibDB();
24 static void Terminate();
25 void SetRun(Long64_t run);
26 //
27 AliTPCCalPad* GetPadGainFactor() {return fPadGainFactor;}
28 AliTPCCalPad* GetPadTime0() {return fPadTime0;}
29 AliTPCCalPad* GetPadPRFWidth() {return fPadPRFWidth;}
30 AliTPCCalPad* GetPadNoise() {return fPadNoise;}
31 //
32protected:
33 void Update(); //update entries
34 AliCDBEntry* GetCDBEntry(const char* cdbPath);
35 Long64_t fRun; // current run number
68751c2c 36// AliCDBStorage* fLocator; // Storage locator retrieved from AliCDBManager
c5bbaa2c 37 //
38 // calibration parameters per pad
39 //
40 AliTPCCalPad* fPadGainFactor;
41 AliTPCCalPad* fPadTime0;
42 AliTPCCalPad* fPadPRFWidth;
43 AliTPCCalPad* fPadNoise;
44 //
45 static AliTPCcalibDB* fgInstance;
46 static Bool_t fgTerminated;
47 ClassDef(AliTPCcalibDB, 0)
48};
49
50
51#endif