Adding AliTPCTracklet to the repository (M.Mager)
[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
418bbcaf 13class AliTPCTransform;
14class AliTPCExB;
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;}
40 AliTPCParam* GetParameters(){return fParam;}
86df2b3a 41 static void CreateObjectList(const Char_t *filename, TObjArray *calibObjects);
42 static void MakeTree(const char * fileName, TObjArray * array, const char * mapFileName = 0, AliTPCCalPad* outlierPad = 0, Float_t ltmFraction = 0.9);
43
c5bbaa2c 44 //
45protected:
46 void Update(); //update entries
47 AliCDBEntry* GetCDBEntry(const char* cdbPath);
481f877b 48 Long64_t fRun; // current run number
418bbcaf 49 AliTPCTransform *fTrafo; // object responsible for spacial corrections
50 AliTPCExB *fExB; // ExB correction factor
68751c2c 51// AliCDBStorage* fLocator; // Storage locator retrieved from AliCDBManager
c5bbaa2c 52 //
53 // calibration parameters per pad
54 //
418bbcaf 55 AliTPCCalPad* fPadGainFactor; // Gain calibration entry
56 AliTPCCalPad* fPadTime0; // Time0 calibration entry
57 AliTPCCalPad* fPadPRFWidth; // Pad Response Function width
58 AliTPCCalPad* fPadNoise; // Noise calibration entry
59 AliTPCCalPad* fPedestals; // Pedestal calibration entry
60 AliTPCSensorTempArray* fTemperature; // Temperature calibration entry
61
8477f500 62 //
63 //
418bbcaf 64 AliTPCParam * fParam; // TPC parameters
c5bbaa2c 65 //
418bbcaf 66 static AliTPCcalibDB* fgInstance; // singleton control
67 static Bool_t fgTerminated; // termination control
c5bbaa2c 68 ClassDef(AliTPCcalibDB, 0)
e4dce695 69 private:
70 AliTPCcalibDB (const AliTPCcalibDB& org);
71 AliTPCcalibDB& operator= (const AliTPCcalibDB& rhs);
c5bbaa2c 72};
73
74
75#endif