]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/AliTPCcalibDB.h
Adding possibility to get the Reconstruction parameters from OCDB (Marian)
[u/mrichter/AliRoot.git] / TPC / AliTPCcalibDB.h
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
13 class AliTPCTransform;
14 class AliTPCExB;
15 #include "TObject.h"
16 class AliTPCCalPad;
17 class AliTPCSensorTempArray;
18 class AliDCSSensorArray;
19 class AliCDBEntry;
20 class AliTPCParam;
21 class AliTPCAltroMapping;
22 class AliTPCClusterParam;
23 class AliTPCRecoParam;
24 //class AliCDBStorage;
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   //
35   AliTPCTransform* GetTransform() {return fTransform;}
36   AliTPCExB* GetExB() {return fExB;}
37   AliTPCCalPad* GetPadGainFactor() {return fPadGainFactor;}
38   AliTPCCalPad* GetPadTime0() {return fPadTime0;}
39   AliTPCCalPad* GetPadNoise() {return fPadNoise;}
40   AliTPCCalPad* GetPedestals() {return fPedestals;}
41   AliTPCSensorTempArray* GetTemperature() {return fTemperature;}
42   AliTPCParam*  GetParameters(){return fParam;}
43   AliTPCAltroMapping ** GetMapping(){ return fMapping;}
44   AliTPCClusterParam *GetClusterParam(){ return fClusterParam;}
45   AliTPCRecoParam *   GetRecoParam(Int_t *eventtype);
46   //
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   
50   //
51 protected:
52   void         Update();  //update entries
53   AliCDBEntry* GetCDBEntry(const char* cdbPath);   
54   Long64_t        fRun;         // current run number
55   AliTPCTransform *fTransform;      // object responsible for spacial corrections
56   AliTPCExB *fExB;              // ExB correction factor
57 //  AliCDBStorage* fLocator;      // Storage locator retrieved from AliCDBManager
58   //
59   // calibration parameters per pad
60   //
61   AliTPCCalPad* fPadGainFactor;   // Gain calibration entry
62   AliTPCCalPad* fPadTime0;        // Time0 calibration entry
63   AliTPCCalPad* fPadNoise;        // Noise calibration entry
64   AliTPCCalPad* fPedestals;       // Pedestal calibration entry
65   AliTPCSensorTempArray* fTemperature; // Temperature calibration entry
66   AliTPCAltroMapping **fMapping;   // Altro mapping   
67   TObjArray * fRecoParamArray;     // reconstruction parameters
68   //
69   //
70   AliTPCParam * fParam;           // TPC parameters
71   AliTPCClusterParam * fClusterParam;  // TPC cluster error, shape and Q parameterization
72   //
73   static AliTPCcalibDB* fgInstance;  // singleton control
74   static Bool_t       fgTerminated;  // termination control 
75   ClassDef(AliTPCcalibDB, 0)
76  private:
77    AliTPCcalibDB (const AliTPCcalibDB& org);
78    AliTPCcalibDB& operator= (const AliTPCcalibDB& rhs);
79 };
80
81
82 #endif