1 #ifndef ALIITSSEGMENTATIONSPD_H
2 #define ALIITSSEGMENTATIONSPD_H
4 #include "AliITSsegmentation.h"
6 // segmentation and response for SPD
8 class AliITSsegmentationSPD :
9 public AliITSsegmentation {
12 AliITSsegmentationSPD();
13 AliITSsegmentationSPD(AliITSgeom *gm);
14 AliITSsegmentationSPD(AliITSsegmentationSPD &source);
15 virtual ~AliITSsegmentationSPD(){}
16 AliITSsegmentationSPD& operator=(AliITSsegmentationSPD &source);
18 // Set Detector Segmentation Parameters
20 // Detector size along x,z,y coordinates
21 virtual void SetDetSize(Float_t Dx, Float_t Dz, Float_t Dy);
23 // Maximum number of pixels along the two coordinates
24 virtual void SetNPads(Int_t p1, Int_t p2);
26 // Transform from real to pixel coordinates
27 virtual void GetPadIxz
28 (Float_t x,Float_t z,Int_t &ix,Int_t &iz);
29 // Transform from pixel to real coordinates
30 virtual void GetPadCxz
31 (Int_t ix,Int_t iz,Float_t &x,Float_t &z);
32 // Transform from real global to local coordinates
33 virtual void GetLocal(Int_t module,Float_t *g ,Float_t *l) {}
34 // Transform from real local to global coordinates
35 virtual void GetGlobal(Int_t module,Float_t *l ,Float_t *g) {}
36 // Local transformation of real local coordinates -
37 virtual void GetPadTxz(Float_t &x ,Float_t &z);
41 virtual void Init300();
45 // Detector Type geometry
46 virtual AliITSgeom* Geometry() {return fGeom;}
48 virtual Float_t Dx() {return fDx;}
50 virtual Float_t Dz() {return fDz;}
52 virtual Float_t Dy() {return fDy;}
54 virtual Float_t Dpx(Int_t ix);
56 virtual Float_t Dpz(Int_t iz);
58 // Maximum number of Pixels in x
59 virtual Int_t Npx() {return fNpx;}
60 // Maximum number of Pixels in z
61 virtual Int_t Npz(){return fNpz;}
63 // Get next neighbours
64 virtual void Neighbours
65 (Int_t iX,Int_t iZ,Int_t* Nlist,Int_t Xlist[10],Int_t Zlist[10]);
69 Int_t fNpx; // Number of pixels in x
70 Int_t fNpz; // Number of pixels in z
71 Float_t fDx; // Full width of the detector (x axis)- microns
72 Float_t fDz; // Full length of the detector (z axis)- microns
73 Float_t fDy; // Full thickness of the detector (y axis) -um
74 Float_t fCellSizeX[256];// Size for each pixel in x -microns
75 Float_t fCellSizeZ[280];// Size for each pixel in z -microns
76 TF1* fCorr; // correction function
77 AliITSgeom *fGeom; //! local pointer to AliITSgeom.
79 ClassDef(AliITSsegmentationSPD,1) //Segmentation class for SPD