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