AliTPCcalibDB.cxx.diff Use DCS graph for HighVoltage information whenever available...
[u/mrichter/AliRoot.git] / TPC / AliTPCcalibDButil.h
CommitLineData
892226be 1#ifndef AliTPCcalibDButil_H
2#define AliTPCcalibDButil_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7///////////////////////////////////////////////////////////////////////////////
8// //
9// Class providing the calculation of derived quantities (mean,rms,fits,...) //
10// of calibration entries //
11// //
12///////////////////////////////////////////////////////////////////////////////
13
14#include <TObject.h>
15
16class AliDCSSensorArray;
17class AliTPCcalibDB;
18class AliTPCCalPad;
19class AliTPCmapper;
20
21class AliTPCcalibDButil : public TObject
22{
23public:
24 AliTPCcalibDButil();
25 virtual ~AliTPCcalibDButil();
26
27 void UpdateFromCalibDB();
28 //data processing functions
29 void ProcessCEdata(const char* fitFormula, TVectorD &fitResultsA, TVectorD &fitResultsC, Int_t &noutliersCE);
30 void ProcessCEgraphs(TVectorD &vecTEntries, TVectorD &vecTMean, TVectorD &vecTRMS, TVectorD &vecTMedian,
31 TVectorD &vecQEntries, TVectorD &vecQMean, TVectorD &vecQRMS, TVectorD &vecQMedian,
32 Float_t &driftTimeA, Float_t &driftTimeC );
33 void ProcessNoiseData(TVectorD &vNoiseMean, TVectorD &vNoiseMeanSenRegions,
34 TVectorD &vNoiseRMS, TVectorD &vNoiseRMSSenRegions,
35 Int_t &nonMaskedZero);
36 void ProcessPulser(TVectorD &vMeanTime);
37 void ProcessALTROConfig(Int_t &nMasked);
38 void ProcessGoofie(TVectorD & vecEntries, TVectorD & vecMedian, TVectorD &vecMean, TVectorD &vecRMS);
39 //getter preprocess information
40 Int_t GetNPulserOutliers() const {return fNpulserOutliers;}
41 Float_t GetMeanAltro(const AliTPCCalROC *roc, const Int_t row, const Int_t pad, AliTPCCalROC *rocOut=0x0);
42 AliTPCCalPad *GetPulserOutlierMap() const {return fPulserOutlier;}
43 //setters for pad by pad information
44 void SetPulserData(AliTPCCalPad *tmean, AliTPCCalPad *trms=0x0, AliTPCCalPad *qmean=0x0)
45 {fPulserTmean=tmean; fPulserTrms=trms; fPulserQmean=qmean;}
46 void SetCEData(AliTPCCalPad *tmean, AliTPCCalPad *trms=0x0, AliTPCCalPad *qmean=0x0)
47 {fCETmean=tmean; fCETrms=trms; fCEQmean=qmean;}
48 void SetNoisePedestal(AliTPCCalPad *noise, AliTPCCalPad *pedestal=0x0)
49 {fPadNoise=noise; fPedestals=pedestal;}
50 void SetALTROData(AliTPCCalPad *masked)
51 {fALTROMasked=masked;}
52 void SetGoofieArray(AliDCSSensorArray *arr) {fGoofieArray=arr;}
53 //creation of derived pad by pad calibration data
54 AliTPCCalPad *CreatePadTime0(Int_t model=0);
55 //
56 void UpdatePulserOutlierMap();
57private:
58 AliTPCcalibDB *fCalibDB; //pointer to calibDB object
59 AliTPCCalPad *fPadNoise; //noise information
60 AliTPCCalPad *fPedestals; //pedestal information
61 AliTPCCalPad *fPulserTmean; //pulser mean time information
62 AliTPCCalPad *fPulserTrms; //pulser rms time information
63 AliTPCCalPad *fPulserQmean; //pulser mean q information
64 AliTPCCalPad *fPulserOutlier; //pulser outlier map
65 AliTPCCalPad *fCETmean; //central electrode mean time information
66 AliTPCCalPad *fCETrms; //central electrode rms time information
67 AliTPCCalPad *fCEQmean; //central electrode mean q information
68 AliTPCCalPad *fALTROMasked; //ALTRO masked channels information
69 //
70 AliDCSSensorArray* fGoofieArray; //Goofie Data
71 //
72 AliTPCmapper *fMapper; //TPC mapping handler
73 Int_t fNpulserOutliers; //number of outliers from Pulser calibration
74
75 Float_t fIrocTimeOffset; //timing offset between IROC and OROC in timebins
76 Float_t fCETmaxLimitAbs; //maximum variation in CE data before pads will be treated as outliers
77 Float_t fPulTmaxLimitAbs; //maximum variation of Pulser Signals (time) before pads will be treated as outliers
78 Float_t fPulQmaxLimitAbs; //maximum variation of Pulser Signals (charge) before pads will be treated as outliers
79 Float_t fPulQminLimit; //minimum charge value for Pulser Signals before pads will be treated as outliers
80
81 AliTPCcalibDButil (const AliTPCcalibDButil& );
82 AliTPCcalibDButil& operator= (const AliTPCcalibDButil& );
83
84
85 ClassDef(AliTPCcalibDButil,0)
86};
87
88
89#endif