Put back the two bellows in front of the absorber.
[u/mrichter/AliRoot.git] / TPC / AliTPCParamSR.h
CommitLineData
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 13class AliTPCRF1D;
14class AliTPCPRF2D;
15
cc80f89e 16class AliTPCParamSR : public AliTPCParam {
17public:
18 AliTPCParamSR();
19 virtual ~AliTPCParamSR();
20 Int_t CalcResponse(Float_t* x, Int_t * index, Int_t row);
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 void TransformTo8(Float_t *xyz, Int_t *index) const;
36 void TransformTo2(Float_t *xyz, Int_t *index) const;
37 Bool_t Update(); //recalculate and check geometric parameters
38 void SetDefault(); //set default parameters
39 void SetInnerPRF(AliTPCPRF2D * prf) {fInnerPRF = prf;}
40 void SetOuterPRF(AliTPCPRF2D * prf) {fOuterPRF = prf;}
41 void SetTimeRF(AliTPCRF1D * timerf) {fTimeRF = timerf;}
42
43 AliTPCPRF2D * GetInnerPRF() const {return fInnerPRF;}
44 AliTPCPRF2D * GetOuterPRF() const {return fOuterPRF;}
45 AliTPCRF1D * GetTimeRF() const {return fTimeRF;}
73042f01 46 void SetFacSigmaPadRow(Float_t fac=3.) {fFacSigmaPadRow=fac;}
47 void SetFacSigmaPad(Float_t fac=3.) {fFacSigmaPad=fac;}
48 void SetFacSigmaTime(Float_t fac=3.) {fFacSigmaTime=fac;}
cc80f89e 49
50 virtual Float_t GetPrimaryLoss(Float_t *x, Int_t *index, Float_t *angle);
51 virtual Float_t GetTotalLoss(Float_t *x, Int_t *index, Float_t *angle);
52
53 virtual void GetClusterSize(Float_t *x, Int_t *index, Float_t *angle, Int_t mode, Float_t *sigma);
54 virtual void GetSpaceResolution(Float_t *x, Int_t *index, Float_t *angle, Float_t amplitude, Int_t mode,Float_t *sigma);
55 virtual Float_t GetAmp(Float_t *x, Int_t *index, Float_t *angle);
56 virtual Float_t * GetAnglesAccMomentum(Float_t *x, Int_t * index, Float_t* momentum, Float_t *angle);
57
58protected:
59 AliTPCPRF2D * fInnerPRF; //pad response function object for inner sector
60 AliTPCPRF2D * fOuterPRF; //pad response function object for inner sector
61 AliTPCRF1D * fTimeRF; //time response function object
62 Float_t fFacSigmaPadRow; //factor-how many sigma of response I accept
63 Float_t fFacSigmaPad;
64 Float_t fFacSigmaTime;
65 ClassDef(AliTPCParamSR,1) //parameter object for set:TPC
66};
67
68#endif
69
70
71
72
73
74