]>
Commit | Line | Data |
---|---|---|
1 | #ifndef AliTPCdEdxInfo_H | |
2 | #define AliTPCdEdxInfo_H | |
3 | ||
4 | class TGraphErrors; | |
5 | class TObjArray; | |
6 | #include <TObject.h> | |
7 | ||
8 | class AliTPCdEdxInfo : public TObject | |
9 | { | |
10 | public: | |
11 | AliTPCdEdxInfo(); | |
12 | AliTPCdEdxInfo(const AliTPCdEdxInfo& source); | |
13 | AliTPCdEdxInfo& operator=(const AliTPCdEdxInfo& source); | |
14 | Double_t GetWeightedMean(Int_t qType, Int_t wType, Double_t w0, Double_t w1, Double_t w2); | |
15 | // | |
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 | ||
31 | Double_t GetSignalTot(Int_t index){ return fTPCsignalRegion[index];} | |
32 | Double_t GetSignalMax(Int_t index){ return fTPCsignalRegionQmax[index];} | |
33 | // | |
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];} | |
43 | static void RegisterSectorCalibration(TGraphErrors* gainSector, Int_t regionID, Int_t calibID); | |
44 | private: | |
45 | ||
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 | |
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 | |
50 | // | |
51 | static TObjArray *fArraySectorCalibration; | |
52 | ||
53 | ClassDef(AliTPCdEdxInfo,3) | |
54 | }; | |
55 | ||
56 | #endif |