]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/AliTPCParamCR.h
fWSN->Eval(0.001) to avoid fpe.
[u/mrichter/AliRoot.git] / TPC / AliTPCParamCR.h
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 "AliTPCParam.h"
12
13 class AliTPCRF1D;
14 class AliTPCPRF2D;
15
16 class AliTPCParamCR : public AliTPCParam {
17 public:
18   AliTPCParamCR();
19   virtual ~AliTPCParamCR();
20   Int_t  CalcResponse(Float_t* x, Int_t * index, Int_t dummy=0);
21   //calculate bin response as function of the input position -x 
22   //return number of valid response bin
23   
24   void XYZtoCRXYZ(Float_t *xyz, 
25                   Int_t &sector, Int_t &padrow, Int_t option=3) const;
26   //transform global position to the position relative to the sector padrow
27   //if option=0  X calculate absolute            calculate sector
28   //if option=1  X           absolute            use input sector
29   //if option=2  X           relative to pad row calculate sector
30   //if option=3  X           relative            use input sector
31
32   void CRXYZtoXYZ(Float_t *xyz,
33             const Int_t &sector, const Int_t & padrow, Int_t option=3) const;  
34   //transform relative position  to the gloabal position
35   Bool_t Update();            //recalculate and check geometric parameters 
36   void SetDefault();          //set default parameters
37   void   SetInnerPRF(AliTPCPRF2D * prf) {fInnerPRF = prf;}
38   void   SetOuter1PRF(AliTPCPRF2D * prf) {fOuter1PRF = prf;}
39   void   SetOuter2PRF(AliTPCPRF2D * prf) {fOuter2PRF = prf;}
40   void   SetTimeRF(AliTPCRF1D * timerf) {fTimeRF = timerf;}
41
42   AliTPCPRF2D * GetInnerPRF() const {return fInnerPRF;}
43   AliTPCPRF2D * GetOuter1PRF() const {return fOuter1PRF;}
44   AliTPCPRF2D * GetOuter2PRF() const {return fOuter2PRF;}
45   AliTPCRF1D  * GetTimeRF()   const {return fTimeRF;}
46 protected:
47   AliTPCPRF2D * fInnerPRF;         //!pad response function object for inner sector
48   AliTPCPRF2D * fOuter1PRF;         //!pad response function object for inner sector 
49   AliTPCPRF2D * fOuter2PRF;  
50   AliTPCRF1D  * fTimeRF;           //!time response function object
51   Float_t       fFacSigma;         //factor-how many sigma of response I accept
52   ClassDef(AliTPCParamCR,2)  //parameter  object for set:TPC
53 };
54
55 #endif