]>
Commit | Line | Data |
---|---|---|
40b4e5ea | 1 | #ifndef AliTPCdEdxInfo_H |
2 | #define AliTPCdEdxInfo_H | |
3 | ||
1445f03c | 4 | class TGraphErrors; |
5 | class TObjArray; | |
40b4e5ea | 6 | #include <TObject.h> |
7 | ||
8 | class AliTPCdEdxInfo : public TObject | |
9 | { | |
10 | public: | |
11 | AliTPCdEdxInfo(); | |
12 | AliTPCdEdxInfo(const AliTPCdEdxInfo& source); | |
08c24516 | 13 | AliTPCdEdxInfo& operator=(const AliTPCdEdxInfo& source); |
f3bfdf9d | 14 | Double_t GetWeightedMean(Int_t qType, Int_t wType, Double_t w0, Double_t w1, Double_t w2); |
40b4e5ea | 15 | // |
ca6b3353 | 16 | // qTot info |
17 | void GetTPCSignalRegionInfo(Double_t signal[4], Char_t ncl[3], Char_t nrows[3]) const; | |
18 | void GetTPCSignals(Double_t signal[4]) const; | |
19 | ||
20 | void SetTPCSignalRegionInfo(Double_t signal[4], Char_t ncl[3], Char_t nrows[3]); | |
21 | void SetTPCSignals(Double_t signal[4]); | |
22 | ||
23 | ||
24 | // qMax info | |
25 | void GetTPCSignalRegionInfoQmax(Double_t signal[4], Char_t ncl[3], Char_t nrows[3]) const; | |
26 | void GetTPCSignalsQmax(Double_t signal[4]) const; | |
27 | ||
28 | void SetTPCSignalRegionInfoQmax(Double_t signal[4], Char_t ncl[3], Char_t nrows[3]); | |
29 | void SetTPCSignalsQmax(Double_t signal[4]); | |
30 | ||
f3bfdf9d | 31 | Double_t GetSignalTot(Int_t index){ return fTPCsignalRegion[index];} |
32 | Double_t GetSignalMax(Int_t index){ return fTPCsignalRegionQmax[index];} | |
ea6e6480 | 33 | // |
ca6b3353 | 34 | Double_t GetTPCsignalShortPad() const {return fTPCsignalRegion[0];} |
35 | Double_t GetTPCsignalMediumPad() const {return fTPCsignalRegion[1];} | |
36 | Double_t GetTPCsignalLongPad() const {return fTPCsignalRegion[2];} | |
37 | Double_t GetTPCsignalOROC() const {return fTPCsignalRegion[3];} | |
38 | ||
39 | Double_t GetTPCsignalShortPadQmax() const {return fTPCsignalRegionQmax[0];} | |
40 | Double_t GetTPCsignalMediumPadQmax() const {return fTPCsignalRegionQmax[1];} | |
41 | Double_t GetTPCsignalLongPadQmax() const {return fTPCsignalRegionQmax[2];} | |
42 | Double_t GetTPCsignalOROCQmax() const {return fTPCsignalRegionQmax[3];} | |
1445f03c | 43 | static void RegisterSectorCalibration(TGraphErrors* gainSector, Int_t regionID, Int_t calibID); |
44 | private: | |
40b4e5ea | 45 | |
ca6b3353 | 46 | Double32_t fTPCsignalRegion[4]; //[0.,0.,10] TPC dEdx signal in 4 different regions - 0 - IROC, 1- OROC medium, 2 - OROC long, 3- OROC all, (default truncation used) - for qTot |
47 | Double32_t fTPCsignalRegionQmax[4]; //[0.,0.,10] TPC dEdx signal in 4 different regions - 0 - IROC, 1- OROC medium, 2 - OROC long, 3- OROC all, (default truncation used) - for qMax | |
40b4e5ea | 48 | Char_t fTPCsignalNRegion[3]; // number of clusters above threshold used in the dEdx calculation |
49 | Char_t fTPCsignalNRowRegion[3]; // number of crosed rows used in the dEdx calculation - signal below threshold included | |
1445f03c | 50 | // |
51 | static TObjArray *fArraySectorCalibration; | |
40b4e5ea | 52 | |
ca6b3353 | 53 | ClassDef(AliTPCdEdxInfo,3) |
40b4e5ea | 54 | }; |
55 | ||
56 | #endif |