Error message, consistent return value (Zubayer)
[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;
54472e4f 15class AliTPCSensorTempArray;
c5bbaa2c 16class AliCDBEntry;
8477f500 17class AliTPCParam;
68751c2c 18//class AliCDBStorage;
c5bbaa2c 19
20class AliTPCcalibDB : public TObject
21{
22 public:
23 static AliTPCcalibDB* Instance();
24 AliTPCcalibDB();
25 virtual ~AliTPCcalibDB();
26 static void Terminate();
27 void SetRun(Long64_t run);
28 //
54472e4f 29 AliTPCCalPad* GetPadGainFactor() {return fPadGainFactor;}
30 AliTPCCalPad* GetPadTime0() {return fPadTime0;}
31 AliTPCCalPad* GetPadPRFWidth() {return fPadPRFWidth;}
32 AliTPCCalPad* GetPadNoise() {return fPadNoise;}
33 AliTPCCalPad* GetPedestals() {return fPedestals;}
34 AliTPCSensorTempArray* GetTemperature() {return fTemperature;}
35 AliTPCParam* GetParameters(){return fParam;}
c5bbaa2c 36 //
37protected:
38 void Update(); //update entries
39 AliCDBEntry* GetCDBEntry(const char* cdbPath);
40 Long64_t fRun; // current run number
68751c2c 41// AliCDBStorage* fLocator; // Storage locator retrieved from AliCDBManager
c5bbaa2c 42 //
43 // calibration parameters per pad
44 //
45 AliTPCCalPad* fPadGainFactor;
46 AliTPCCalPad* fPadTime0;
47 AliTPCCalPad* fPadPRFWidth;
48 AliTPCCalPad* fPadNoise;
8477f500 49 AliTPCCalPad* fPedestals;
54472e4f 50 AliTPCSensorTempArray* fTemperature;
8477f500 51 //
52 //
53 AliTPCParam * fParam;
c5bbaa2c 54 //
55 static AliTPCcalibDB* fgInstance;
56 static Bool_t fgTerminated;
57 ClassDef(AliTPCcalibDB, 0)
58};
59
60
61#endif