108615fc |
1 | #ifndef ALIL3TRANSFORM_H |
2 | #define ALIL3TRANSFORM_H |
3 | |
108615fc |
4 | #include "AliL3RootTypes.h" |
108615fc |
5 | |
6 | class AliL3Transform { |
494fad94 |
7 | |
108615fc |
8 | private: |
494fad94 |
9 | |
10 | static Int_t fNTimeBins; |
11 | static Int_t fNRowLow; |
12 | static Int_t fNRowUp; |
13 | static Int_t fNSectorLow; |
14 | static Int_t fNSectorUp; |
15 | static Double_t fPadPitchWidthLow; |
16 | static Double_t fPadPitchWidthUp; |
17 | static Double_t fZWidth; |
18 | static Double_t fZSigma; |
19 | static Int_t fNSector; |
20 | static Int_t fNSlice; |
21 | static Int_t fNRow; |
22 | static Double_t fPi; |
23 | static Double_t fNRotShift; |
24 | static Double_t fZLength; |
25 | static Double_t fZOffset; |
26 | static Int_t fNPads[176]; //fill this following Init |
27 | static Double_t fX[176]; //fill this following Init |
28 | static Int_t fVersion; //flags which version one is using |
108615fc |
29 | |
494fad94 |
30 | public: |
31 | |
32 | static void Init(const Char_t* path); //new init for all AliRoot versions |
33 | |
34 | static Int_t GetVersion(){return fVersion;} |
35 | static Double_t GetPadPitchWidthLow() {return fPadPitchWidthLow;} |
36 | static Double_t GetPadPitchWidthUp() {return fPadPitchWidthUp;} |
37 | static Double_t GetPadPitchWidth(Int_t patch) {if(patch<=2) return fPadPitchWidthLow; else return fPadPitchWidthUp;} |
38 | static Double_t GetZWidth() {return fZWidth;} |
39 | static Double_t GetZLength() {return fZLength;} |
40 | static Double_t GetZOffset() {return fZOffset;} |
41 | static Int_t GetNSectorLow() {return fNSectorLow;} |
42 | static Int_t GetNSectorUp() {return fNSectorUp;} |
95a00d93 |
43 | |
494fad94 |
44 | static Bool_t Slice2Sector(Int_t slice, Int_t slicerow, Int_t §or, Int_t &row); |
45 | static Bool_t Sector2Slice(Int_t &slice, Int_t sector); |
46 | static Bool_t Sector2Slice(Int_t &slice, Int_t &slicerow, Int_t sector, Int_t row); |
1727f1c9 |
47 | |
494fad94 |
48 | static Int_t GetNPads(Int_t row){return (row<fNRow)?fNPads[row]:0;} |
49 | static Int_t GetNTimeBins(){return fNTimeBins;} |
50 | static Double_t Row2X(Int_t slicerow); |
51 | static Double_t GetMaxY(Int_t slicerow); |
52 | static Double_t GetEta(Float_t *xyz); |
53 | static Double_t GetEta(Int_t row, Int_t pad, Int_t time); |
54 | static Double_t GetPhi(Float_t *xyz); |
1727f1c9 |
55 | |
494fad94 |
56 | static void XYZtoRPhiEta(Float_t *rpe, Float_t *xyz); |
57 | static void Local2Global(Float_t *xyz, Int_t slice); |
58 | static void Local2GlobalAngle(Float_t *angle, Int_t slice); |
59 | static void Global2LocalAngle(Float_t *angle, Int_t slice); |
108615fc |
60 | |
494fad94 |
61 | static void Raw2Local(Float_t *xyz, Int_t sector, Int_t row, Float_t pad, Float_t time); |
62 | static void Local2Global(Float_t *xyz, Int_t sector, Int_t row); |
63 | static void Global2Local(Float_t *xyz, Int_t sector, Bool_t isSlice=kFALSE); |
64 | static void Raw2Global(Float_t *xyz, Int_t sector, Int_t row, Float_t pad, Float_t time); |
65 | static void Local2Raw(Float_t *xyz, Int_t sector, Int_t row); |
66 | static void Global2Raw(Float_t *xyz, Int_t sector, Int_t row); |
108615fc |
67 | |
b661165c |
68 | ClassDef(AliL3Transform,1) //Transformation class for ALICE TPC |
108615fc |
69 | }; |
108615fc |
70 | #endif |
a4e75a99 |
71 | |
89693986 |
72 | |
73 | |
74 | |
75 | |