]>
Commit | Line | Data |
---|---|---|
b0f5e3fc | 1 | #ifndef ALIITSSEGMENTATIONSPD_H |
2 | #define ALIITSSEGMENTATIONSPD_H | |
3 | ||
4 | #include "AliITSsegmentation.h" | |
5 | ||
1ca7869b | 6 | |
7 | class AliITSgeom; | |
8 | ||
b0f5e3fc | 9 | // segmentation and response for SPD |
10 | ||
11 | class AliITSsegmentationSPD : | |
12 | public AliITSsegmentation { | |
13 | public: | |
14 | ||
15 | AliITSsegmentationSPD(); | |
16 | AliITSsegmentationSPD(AliITSgeom *gm); | |
55d2c544 | 17 | AliITSsegmentationSPD(const AliITSsegmentationSPD &source); |
b0f5e3fc | 18 | virtual ~AliITSsegmentationSPD(){} |
55d2c544 | 19 | AliITSsegmentationSPD& operator=(const AliITSsegmentationSPD &source); |
b0f5e3fc | 20 | |
21 | // Set Detector Segmentation Parameters | |
b0f5e3fc | 22 | |
23 | // Maximum number of pixels along the two coordinates | |
e8189707 | 24 | virtual void SetNPads(Int_t p1, Int_t p2); |
5752a110 | 25 | // Returns the maximum number of cells (digits) posible |
55d2c544 | 26 | virtual Int_t GetNPads() const {return fNpx*fNpz;} |
91378d45 | 27 | // Set Pixel Size Array in x and z, microns. |
28 | virtual void SetBinSize(Float_t *x,Float_t *z); | |
b0f5e3fc | 29 | |
30 | // Transform from real to pixel coordinates | |
55d2c544 | 31 | virtual void GetPadIxz(Float_t x,Float_t z,Int_t &ix,Int_t &iz) const; |
b0f5e3fc | 32 | // Transform from pixel to real coordinates |
55d2c544 | 33 | virtual void GetPadCxz(Int_t ix,Int_t iz,Float_t &x,Float_t &z) const; |
b0f5e3fc | 34 | // Transform from real local to global coordinates |
ac74f489 | 35 | //virtual void GetGlobal(Int_t module,Float_t *l ,Float_t *g) {} |
e8189707 | 36 | // Local transformation of real local coordinates - |
55d2c544 | 37 | virtual void GetPadTxz(Float_t &x ,Float_t &z) const; |
5752a110 | 38 | // Transformation from Geant cm detector center local coordinates |
39 | // to detector segmentation/cell coordiantes starting from (0,0). | |
aacedc3e | 40 | virtual Bool_t LocalToDet(Float_t x,Float_t z,Int_t &ix,Int_t &iz) const; |
5752a110 | 41 | // Transformation from detector segmentation/cell coordiantes starting |
42 | // from (0,0) to Geant cm detector center local coordinates. | |
55d2c544 | 43 | virtual void DetToLocal(Int_t ix,Int_t iz,Float_t &x,Float_t &z) const; |
bd8ff387 | 44 | // Returns the Cell upper and lower boundries in x and y. cell indexes |
45 | // starting from (0,0) and return Geant cm detector centered local | |
46 | // coordinates, consistant with DetToLocal and LocalToDet functions above. | |
47 | virtual void CellBoundries(Int_t ix,Int_t iz,Double_t &xl,Double_t &xu, | |
55d2c544 | 48 | Double_t &zl,Double_t &zu) const; |
b0f5e3fc | 49 | // |
50 | // Initialisation | |
51 | virtual void Init(); | |
52 | virtual void Init300(); | |
53 | // | |
54 | // Get member data | |
55 | // | |
b0f5e3fc | 56 | // Pixel size in x |
55d2c544 | 57 | virtual Float_t Dpx(Int_t ix) const; |
b0f5e3fc | 58 | // Pixel size in z |
55d2c544 | 59 | virtual Float_t Dpz(Int_t iz) const; |
b0f5e3fc | 60 | |
61 | // Maximum number of Pixels in x | |
55d2c544 | 62 | virtual Int_t Npx() const {return fNpx;} |
b0f5e3fc | 63 | // Maximum number of Pixels in z |
55d2c544 | 64 | virtual Int_t Npz() const {return fNpz;} |
b0f5e3fc | 65 | // |
91378d45 | 66 | // Get next neighbours |
b0f5e3fc | 67 | virtual void Neighbours |
55d2c544 | 68 | (Int_t iX,Int_t iZ,Int_t* Nlist,Int_t Xlist[10],Int_t Zlist[10]) const; |
69 | // Print default parameters (static const data members, if any) | |
70 | virtual void PrintDefaultParameters() const | |
71 | {Warning("PrintDefaultParameters","No def. parameters defined as const static data members\n");} | |
5752a110 | 72 | |
55d2c544 | 73 | protected: |
b0f5e3fc | 74 | |
55d2c544 | 75 | virtual void Copy(TObject &obj) const; |
b0f5e3fc | 76 | Int_t fNpx; // Number of pixels in x |
77 | Int_t fNpz; // Number of pixels in z | |
b0f5e3fc | 78 | Float_t fCellSizeX[256];// Size for each pixel in x -microns |
79 | Float_t fCellSizeZ[280];// Size for each pixel in z -microns | |
b0f5e3fc | 80 | |
55d2c544 | 81 | private: |
82 | ||
83 | Float_t ColFromZ300(Float_t z) const; | |
84 | Float_t ZFromCol300(Int_t col) const; | |
85 | Float_t ZpitchFromCol300(Int_t col) const; | |
86 | Float_t ColFromZ(Float_t z) const; | |
87 | Float_t ZFromCol(Int_t col) const; | |
88 | Float_t ZpitchFromCol(Int_t col) const; | |
89 | ||
90 | ClassDef(AliITSsegmentationSPD,2) //Segmentation class for SPD | |
b0f5e3fc | 91 | |
92 | }; | |
93 | ||
94 | #endif |