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