]>
Commit | Line | Data |
---|---|---|
cc80f89e | 1 | #ifndef TPCParamSR_H |
2 | #define TPCParamSR_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | //////////////////////////////////////////////// | |
9 | // Manager class for TPC parameters // | |
10 | //////////////////////////////////////////////// | |
cc80f89e | 11 | #include "AliTPCParam.h" |
12 | ||
73042f01 | 13 | class AliTPCRF1D; |
14 | class AliTPCPRF2D; | |
15 | ||
cc80f89e | 16 | class AliTPCParamSR : public AliTPCParam { |
17 | public: | |
18 | AliTPCParamSR(); | |
19 | virtual ~AliTPCParamSR(); | |
de61d5d5 | 20 | |
cc80f89e | 21 | Int_t CalcResponse(Float_t* x, Int_t * index, Int_t row); |
de61d5d5 | 22 | Int_t CalcResponseFast(Float_t* x, Int_t * index, Int_t row); |
cc80f89e | 23 | //calculate bin response as function of the input position -x |
24 | //return number of valid response bin | |
de61d5d5 | 25 | |
cc80f89e | 26 | |
27 | void XYZtoCRXYZ(Float_t *xyz, | |
28 | Int_t §or, Int_t &padrow, Int_t option=3) const; | |
29 | //transform global position to the position relative to the sector padrow | |
30 | //if option=0 X calculate absolute calculate sector | |
31 | //if option=1 X absolute use input sector | |
32 | //if option=2 X relative to pad row calculate sector | |
33 | //if option=3 X relative use input sector | |
34 | ||
35 | void CRXYZtoXYZ(Float_t *xyz, | |
36 | const Int_t §or, const Int_t & padrow, Int_t option=3) const; | |
37 | //transform relative position to the gloabal position | |
38 | void TransformTo8(Float_t *xyz, Int_t *index) const; | |
39 | void TransformTo2(Float_t *xyz, Int_t *index) const; | |
40 | Bool_t Update(); //recalculate and check geometric parameters | |
41 | void SetDefault(); //set default parameters | |
42 | void SetInnerPRF(AliTPCPRF2D * prf) {fInnerPRF = prf;} | |
43 | void SetOuterPRF(AliTPCPRF2D * prf) {fOuterPRF = prf;} | |
44 | void SetTimeRF(AliTPCRF1D * timerf) {fTimeRF = timerf;} | |
45 | ||
46 | AliTPCPRF2D * GetInnerPRF() const {return fInnerPRF;} | |
47 | AliTPCPRF2D * GetOuterPRF() const {return fOuterPRF;} | |
48 | AliTPCRF1D * GetTimeRF() const {return fTimeRF;} | |
73042f01 | 49 | void SetFacSigmaPadRow(Float_t fac=3.) {fFacSigmaPadRow=fac;} |
50 | void SetFacSigmaPad(Float_t fac=3.) {fFacSigmaPad=fac;} | |
51 | void SetFacSigmaTime(Float_t fac=3.) {fFacSigmaTime=fac;} | |
cc80f89e | 52 | |
53 | virtual Float_t GetPrimaryLoss(Float_t *x, Int_t *index, Float_t *angle); | |
54 | virtual Float_t GetTotalLoss(Float_t *x, Int_t *index, Float_t *angle); | |
55 | ||
56 | virtual void GetClusterSize(Float_t *x, Int_t *index, Float_t *angle, Int_t mode, Float_t *sigma); | |
57 | virtual void GetSpaceResolution(Float_t *x, Int_t *index, Float_t *angle, Float_t amplitude, Int_t mode,Float_t *sigma); | |
58 | virtual Float_t GetAmp(Float_t *x, Int_t *index, Float_t *angle); | |
59 | virtual Float_t * GetAnglesAccMomentum(Float_t *x, Int_t * index, Float_t* momentum, Float_t *angle); | |
60 | ||
61 | protected: | |
62 | AliTPCPRF2D * fInnerPRF; //pad response function object for inner sector | |
63 | AliTPCPRF2D * fOuterPRF; //pad response function object for inner sector | |
64 | AliTPCRF1D * fTimeRF; //time response function object | |
65 | Float_t fFacSigmaPadRow; //factor-how many sigma of response I accept | |
c11cb93f | 66 | Float_t fFacSigmaPad; //factor-how many sigma of response I accept |
67 | Float_t fFacSigmaTime; //factor-how many sigma of response I accept | |
cc80f89e | 68 | ClassDef(AliTPCParamSR,1) //parameter object for set:TPC |
69 | }; | |
70 | ||
71 | #endif | |
72 | ||
73 | ||
74 | ||
75 | ||
76 | ||
77 |