Adding more commnens
[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 //
f5344549 32 AliTPCTransform* GetTransform() {return fTransform;}
481f877b 33 AliTPCExB* GetExB() {return fExB;}
54472e4f 34 AliTPCCalPad* GetPadGainFactor() {return fPadGainFactor;}
35 AliTPCCalPad* GetPadTime0() {return fPadTime0;}
54472e4f 36 AliTPCCalPad* GetPadNoise() {return fPadNoise;}
37 AliTPCCalPad* GetPedestals() {return fPedestals;}
38 AliTPCSensorTempArray* GetTemperature() {return fTemperature;}
39 AliTPCParam* GetParameters(){return fParam;}
86df2b3a 40 static void CreateObjectList(const Char_t *filename, TObjArray *calibObjects);
41 static void MakeTree(const char * fileName, TObjArray * array, const char * mapFileName = 0, AliTPCCalPad* outlierPad = 0, Float_t ltmFraction = 0.9);
42
c5bbaa2c 43 //
44protected:
45 void Update(); //update entries
46 AliCDBEntry* GetCDBEntry(const char* cdbPath);
481f877b 47 Long64_t fRun; // current run number
f5344549 48 AliTPCTransform *fTransform; // object responsible for spacial corrections
418bbcaf 49 AliTPCExB *fExB; // ExB correction factor
68751c2c 50// AliCDBStorage* fLocator; // Storage locator retrieved from AliCDBManager
c5bbaa2c 51 //
52 // calibration parameters per pad
53 //
418bbcaf 54 AliTPCCalPad* fPadGainFactor; // Gain calibration entry
55 AliTPCCalPad* fPadTime0; // Time0 calibration entry
418bbcaf 56 AliTPCCalPad* fPadNoise; // Noise calibration entry
57 AliTPCCalPad* fPedestals; // Pedestal calibration entry
58 AliTPCSensorTempArray* fTemperature; // Temperature calibration entry
59
8477f500 60 //
61 //
418bbcaf 62 AliTPCParam * fParam; // TPC parameters
c5bbaa2c 63 //
418bbcaf 64 static AliTPCcalibDB* fgInstance; // singleton control
65 static Bool_t fgTerminated; // termination control
c5bbaa2c 66 ClassDef(AliTPCcalibDB, 0)
e4dce695 67 private:
68 AliTPCcalibDB (const AliTPCcalibDB& org);
69 AliTPCcalibDB& operator= (const AliTPCcalibDB& rhs);
c5bbaa2c 70};
71
72
73#endif