]>
Commit | Line | Data |
---|---|---|
cc80f89e | 1 | #ifndef TPCParamCR_H |
2 | #define TPCParamCR_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 | //////////////////////////////////////////////// | |
11 | #include "AliTPCPRF2D.h" | |
12 | #include "AliTPCRF1D.h" | |
13 | #include "AliTPCParam.h" | |
14 | ||
15 | class AliTPCParamCR : public AliTPCParam { | |
16 | public: | |
17 | AliTPCParamCR(); | |
18 | virtual ~AliTPCParamCR(); | |
19 | Int_t CalcResponse(Float_t* x, Int_t * index); | |
20 | //calculate bin response as function of the input position -x | |
21 | //return number of valid response bin | |
22 | ||
23 | void XYZtoCRXYZ(Float_t *xyz, | |
24 | Int_t §or, Int_t &padrow, Int_t option=3) const; | |
25 | //transform global position to the position relative to the sector padrow | |
26 | //if option=0 X calculate absolute calculate sector | |
27 | //if option=1 X absolute use input sector | |
28 | //if option=2 X relative to pad row calculate sector | |
29 | //if option=3 X relative use input sector | |
30 | ||
31 | void CRXYZtoXYZ(Float_t *xyz, | |
32 | const Int_t §or, const Int_t & padrow, Int_t option=3) const; | |
33 | //transform relative position to the gloabal position | |
34 | Bool_t Update(); //recalculate and check geometric parameters | |
35 | void SetDefault(); //set default parameters | |
36 | void SetInnerPRF(AliTPCPRF2D * prf) {fInnerPRF = prf;} | |
37 | void SetOuterPRF(AliTPCPRF2D * prf) {fOuterPRF = prf;} | |
38 | void SetTimeRF(AliTPCRF1D * timerf) {fTimeRF = timerf;} | |
39 | ||
40 | AliTPCPRF2D * GetInnerPRF() const {return fInnerPRF;} | |
41 | AliTPCPRF2D * GetOuterPRF() const {return fOuterPRF;} | |
42 | AliTPCRF1D * GetTimeRF() const {return fTimeRF;} | |
43 | protected: | |
44 | AliTPCPRF2D * fInnerPRF; //pad response function object for inner sector | |
45 | AliTPCPRF2D * fOuterPRF; //pad response function object for inner sector | |
46 | AliTPCRF1D * fTimeRF; //time response function object | |
47 | Float_t fFacSigma; //factor-how many sigma of response I accept | |
48 | ClassDef(AliTPCParamCR,1) //parameter object for set:TPC | |
49 | }; | |
50 | ||
51 | #endif |