]>
Commit | Line | Data |
---|---|---|
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 | 13 | class AliTPCTransform; |
14 | class AliTPCExB; | |
c5bbaa2c | 15 | #include "TObject.h" |
16 | class AliTPCCalPad; | |
54472e4f | 17 | class AliTPCSensorTempArray; |
e7e39fb5 | 18 | class AliDCSSensorArray; |
c5bbaa2c | 19 | class AliCDBEntry; |
8477f500 | 20 | class AliTPCParam; |
d6834f5f | 21 | class AliTPCAltroMapping; |
96305e49 | 22 | class AliTPCClusterParam; |
68751c2c | 23 | //class AliCDBStorage; |
c5bbaa2c | 24 | |
25 | class AliTPCcalibDB : public TObject | |
26 | { | |
27 | public: | |
28 | static AliTPCcalibDB* Instance(); | |
29 | AliTPCcalibDB(); | |
30 | virtual ~AliTPCcalibDB(); | |
31 | static void Terminate(); | |
32 | void SetRun(Long64_t run); | |
33 | // | |
f5344549 | 34 | AliTPCTransform* GetTransform() {return fTransform;} |
3ac615eb | 35 | AliTPCExB* GetExB() {return fExB;} |
f4d5fd21 | 36 | void SetExBField(Float_t bz); |
3ac615eb | 37 | static AliTPCExB* GetExB(Float_t bz,Bool_t bdelete); |
54472e4f | 38 | AliTPCCalPad* GetPadGainFactor() {return fPadGainFactor;} |
9f6e9f81 | 39 | AliTPCCalPad* GetDedxGainFactor() {return fDedxGainFactor;} |
54472e4f | 40 | AliTPCCalPad* GetPadTime0() {return fPadTime0;} |
54472e4f | 41 | AliTPCCalPad* GetPadNoise() {return fPadNoise;} |
42 | AliTPCCalPad* GetPedestals() {return fPedestals;} | |
43 | AliTPCSensorTempArray* GetTemperature() {return fTemperature;} | |
44 | AliTPCParam* GetParameters(){return fParam;} | |
d6834f5f | 45 | AliTPCAltroMapping ** GetMapping(){ return fMapping;} |
96305e49 | 46 | AliTPCClusterParam *GetClusterParam(){ return fClusterParam;} |
d6834f5f | 47 | // |
86df2b3a | 48 | static void CreateObjectList(const Char_t *filename, TObjArray *calibObjects); |
49 | static void MakeTree(const char * fileName, TObjArray * array, const char * mapFileName = 0, AliTPCCalPad* outlierPad = 0, Float_t ltmFraction = 0.9); | |
3ac615eb | 50 | static void RegisterExB(Int_t index, Float_t bz, Bool_t bdelete); |
c5bbaa2c | 51 | // |
52 | protected: | |
53 | void Update(); //update entries | |
54 | AliCDBEntry* GetCDBEntry(const char* cdbPath); | |
481f877b | 55 | Long64_t fRun; // current run number |
f5344549 | 56 | AliTPCTransform *fTransform; // object responsible for spacial corrections |
418bbcaf | 57 | AliTPCExB *fExB; // ExB correction factor |
68751c2c | 58 | // AliCDBStorage* fLocator; // Storage locator retrieved from AliCDBManager |
c5bbaa2c | 59 | // |
60 | // calibration parameters per pad | |
61 | // | |
418bbcaf | 62 | AliTPCCalPad* fPadGainFactor; // Gain calibration entry |
9f6e9f81 | 63 | AliTPCCalPad* fDedxGainFactor; // Gain calibration entry - for dEdx |
418bbcaf | 64 | AliTPCCalPad* fPadTime0; // Time0 calibration entry |
418bbcaf | 65 | AliTPCCalPad* fPadNoise; // Noise calibration entry |
66 | AliTPCCalPad* fPedestals; // Pedestal calibration entry | |
67 | AliTPCSensorTempArray* fTemperature; // Temperature calibration entry | |
d6834f5f | 68 | AliTPCAltroMapping **fMapping; // Altro mapping |
8477f500 | 69 | // |
70 | // | |
418bbcaf | 71 | AliTPCParam * fParam; // TPC parameters |
96305e49 | 72 | AliTPCClusterParam * fClusterParam; // TPC cluster error, shape and Q parameterization |
c5bbaa2c | 73 | // |
418bbcaf | 74 | static AliTPCcalibDB* fgInstance; // singleton control |
75 | static Bool_t fgTerminated; // termination control | |
3ac615eb | 76 | static TObjArray fgExBArray; // array of ExB corrections |
c5bbaa2c | 77 | ClassDef(AliTPCcalibDB, 0) |
e4dce695 | 78 | private: |
f4a89669 | 79 | AliTPCcalibDB (const AliTPCcalibDB& ); |
80 | AliTPCcalibDB& operator= (const AliTPCcalibDB& ); | |
c5bbaa2c | 81 | }; |
82 | ||
83 | ||
84 | #endif |