New functionalityto calculate derived dEdx: GetWeightedMean, GetSignalTot, GetSignalMax
[u/mrichter/AliRoot.git] / STEER / STEERBase / AliTPCdEdxInfo.h
CommitLineData
40b4e5ea 1#ifndef AliTPCdEdxInfo_H
2#define AliTPCdEdxInfo_H
3
4#include <TObject.h>
5
6class AliTPCdEdxInfo : public TObject
7{
8public:
9 AliTPCdEdxInfo();
10 AliTPCdEdxInfo(const AliTPCdEdxInfo& source);
08c24516 11 AliTPCdEdxInfo& operator=(const AliTPCdEdxInfo& source);
f3bfdf9d 12 Double_t GetWeightedMean(Int_t qType, Int_t wType, Double_t w0, Double_t w1, Double_t w2);
40b4e5ea 13 //
ca6b3353 14 // qTot info
15 void GetTPCSignalRegionInfo(Double_t signal[4], Char_t ncl[3], Char_t nrows[3]) const;
16 void GetTPCSignals(Double_t signal[4]) const;
17
18 void SetTPCSignalRegionInfo(Double_t signal[4], Char_t ncl[3], Char_t nrows[3]);
19 void SetTPCSignals(Double_t signal[4]);
20
21
22 // qMax info
23 void GetTPCSignalRegionInfoQmax(Double_t signal[4], Char_t ncl[3], Char_t nrows[3]) const;
24 void GetTPCSignalsQmax(Double_t signal[4]) const;
25
26 void SetTPCSignalRegionInfoQmax(Double_t signal[4], Char_t ncl[3], Char_t nrows[3]);
27 void SetTPCSignalsQmax(Double_t signal[4]);
28
f3bfdf9d 29 Double_t GetSignalTot(Int_t index){ return fTPCsignalRegion[index];}
30 Double_t GetSignalMax(Int_t index){ return fTPCsignalRegionQmax[index];}
ea6e6480 31 //
ca6b3353 32 Double_t GetTPCsignalShortPad() const {return fTPCsignalRegion[0];}
33 Double_t GetTPCsignalMediumPad() const {return fTPCsignalRegion[1];}
34 Double_t GetTPCsignalLongPad() const {return fTPCsignalRegion[2];}
35 Double_t GetTPCsignalOROC() const {return fTPCsignalRegion[3];}
36
37 Double_t GetTPCsignalShortPadQmax() const {return fTPCsignalRegionQmax[0];}
38 Double_t GetTPCsignalMediumPadQmax() const {return fTPCsignalRegionQmax[1];}
39 Double_t GetTPCsignalLongPadQmax() const {return fTPCsignalRegionQmax[2];}
40 Double_t GetTPCsignalOROCQmax() const {return fTPCsignalRegionQmax[3];}
40b4e5ea 41
42private:
43
ca6b3353 44 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
45 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 46 Char_t fTPCsignalNRegion[3]; // number of clusters above threshold used in the dEdx calculation
47 Char_t fTPCsignalNRowRegion[3]; // number of crosed rows used in the dEdx calculation - signal below threshold included
48
49
ca6b3353 50 ClassDef(AliTPCdEdxInfo,3)
40b4e5ea 51};
52
53#endif