Double_t version of SetCerenkov.
[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
481f877b 13#include "AliTPCTransform.h"
14#include "AliTPCExB.h"
c5bbaa2c 15#include "TObject.h"
16class AliTPCCalPad;
54472e4f 17class AliTPCSensorTempArray;
e7e39fb5 18class AliDCSSensorArray;
c5bbaa2c 19class AliCDBEntry;
8477f500 20class AliTPCParam;
68751c2c 21//class AliCDBStorage;
c5bbaa2c 22
23class AliTPCcalibDB : public TObject
24{
25 public:
26 static AliTPCcalibDB* Instance();
27 AliTPCcalibDB();
28 virtual ~AliTPCcalibDB();
29 static void Terminate();
30 void SetRun(Long64_t run);
31 //
481f877b 32 AliTPCTransform* GetTransform() {return fTrafo;}
33 AliTPCExB* GetExB() {return fExB;}
54472e4f 34 AliTPCCalPad* GetPadGainFactor() {return fPadGainFactor;}
35 AliTPCCalPad* GetPadTime0() {return fPadTime0;}
36 AliTPCCalPad* GetPadPRFWidth() {return fPadPRFWidth;}
37 AliTPCCalPad* GetPadNoise() {return fPadNoise;}
38 AliTPCCalPad* GetPedestals() {return fPedestals;}
39 AliTPCSensorTempArray* GetTemperature() {return fTemperature;}
e7e39fb5 40 AliDCSSensorArray* GetPressure() {return fPressure;}
54472e4f 41 AliTPCParam* GetParameters(){return fParam;}
86df2b3a 42 static void CreateObjectList(const Char_t *filename, TObjArray *calibObjects);
43 static void MakeTree(const char * fileName, TObjArray * array, const char * mapFileName = 0, AliTPCCalPad* outlierPad = 0, Float_t ltmFraction = 0.9);
44
c5bbaa2c 45 //
46protected:
47 void Update(); //update entries
48 AliCDBEntry* GetCDBEntry(const char* cdbPath);
481f877b 49 Long64_t fRun; // current run number
50 AliTPCTransform *fTrafo; // object responsible for spacial corrections
51 AliTPCExB *fExB;
68751c2c 52// AliCDBStorage* fLocator; // Storage locator retrieved from AliCDBManager
c5bbaa2c 53 //
54 // calibration parameters per pad
55 //
56 AliTPCCalPad* fPadGainFactor;
57 AliTPCCalPad* fPadTime0;
58 AliTPCCalPad* fPadPRFWidth;
59 AliTPCCalPad* fPadNoise;
8477f500 60 AliTPCCalPad* fPedestals;
54472e4f 61 AliTPCSensorTempArray* fTemperature;
e7e39fb5 62 AliDCSSensorArray *fPressure;
8477f500 63 //
64 //
65 AliTPCParam * fParam;
c5bbaa2c 66 //
67 static AliTPCcalibDB* fgInstance;
68 static Bool_t fgTerminated;
69 ClassDef(AliTPCcalibDB, 0)
e4dce695 70 private:
71 AliTPCcalibDB (const AliTPCcalibDB& org);
72 AliTPCcalibDB& operator= (const AliTPCcalibDB& rhs);
c5bbaa2c 73};
74
75
76#endif