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