1 #ifndef ALIL3TRANSFORM_H
2 #define ALIL3TRANSFORM_H
4 #include "AliL3RootTypes.h"
14 Double_t fPadPitchWidthLow;
15 Double_t fPadPitchWidthUp;
23 Double_t fCos[36]; //fill this following Init
24 Double_t fSin[36]; //fill this following Init
25 Double_t fX[176]; //fill this following Init
26 Int_t fNPads[176]; //fill this following Init
27 Int_t fVersion; //flags which version one is using
28 void Init(); //old init used by Anders for AliRoot <= 3.06
31 AliL3Transform(const char *pathname);
32 virtual ~AliL3Transform();
33 Int_t getVersion(){return fVersion;}
34 void Init(const Char_t* path); //new init for all AliRoot versions
36 Double_t GetPadPitchWidthLow() {return fPadPitchWidthLow;}
37 Double_t GetPadPitchWidthUp() {return fPadPitchWidthUp;}
38 Double_t GetPadPitchWidth(Int_t patch) {if(patch<=2) return fPadPitchWidthLow; else return fPadPitchWidthUp;}
39 Double_t GetZWidth() {return fZWidth;}
41 Bool_t Slice2Sector(Int_t slice, Int_t slicerow, Int_t §or, Int_t &row) const;
43 Bool_t Sector2Slice(Int_t &slice, Int_t sector) const;
44 Bool_t Sector2Slice(Int_t &slice, Int_t &slicerow, Int_t sector, Int_t row) const;
46 Double_t Row2X(Int_t slicerow);
47 Int_t GetNPads(Int_t row){return (row<fNRow)?fNPads[row]:0;}
48 Int_t GetNTimeBins(){return fNTimeBins;}
50 Double_t GetEta(Float_t *xyz);
51 Double_t GetEta(Int_t row, Int_t pad, Int_t time);
52 Double_t GetPhi(Float_t *xyz);
53 Double_t GetMaxY(Int_t slicerow);
54 void Local2Global(Float_t *xyz, Int_t slice);
55 void Local2GlobalAngle(Float_t *angle, Int_t slice);
56 void Global2LocalAngle(Float_t *angle, Int_t slice);
58 void Raw2Local(Float_t *xyz, Int_t sector, Int_t row, Float_t pad, Float_t time);
59 void Local2Global(Float_t *xyz, Int_t sector, Int_t row);
60 void Global2Local(Float_t *xyz, Int_t sector, Bool_t isSlice=kFALSE);
61 void Raw2Global(Float_t *xyz, Int_t sector, Int_t row, Float_t pad, Float_t time);
62 void Local2Raw(Float_t *xyz, Int_t sector, Int_t row);
63 void Global2Raw(Float_t *xyz, Int_t sector, Int_t row);
65 ClassDef(AliL3Transform,1) //Transformation class for ALICE TPC