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 SetNCells(Int_t p1, Int_t p2);
26 // Transform from real to pixel coordinates
27 virtual void GetCellIxz
28 (Float_t &x,Float_t &z,Int_t &ix,Int_t &iz);
29 // Transform from pixel to real coordinates
30 virtual void GetCellCxz
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) {}
39 virtual void Init300();
43 // Detector Type geometry
44 virtual AliITSgeom* Geometry() {return fGeom;}
46 virtual Float_t Dx() {return fDx;}
48 virtual Float_t Dz() {return fDz;}
50 virtual Float_t Dy() {return fDy;}
52 virtual Float_t Dpx(Int_t ix);
54 virtual Float_t Dpz(Int_t iz);
56 // Maximum number of Pixels in x
57 virtual Int_t Npx() {return fNpx;}
58 // Maximum number of Pixels in z
59 virtual Int_t Npz(){return fNpz;}
61 // Get next neighbours
62 virtual void Neighbours
63 (Int_t iX,Int_t iZ,Int_t* Nlist,Int_t Xlist[10],Int_t Zlist[10]);
67 Int_t fNpx; // Number of pixels in x
68 Int_t fNpz; // Number of pixels in z
69 Float_t fDx; // Full width of the detector (x axis)- microns
70 Float_t fDz; // Full length of the detector (z axis)- microns
71 Float_t fDy; // Full thickness of the detector (y axis) -um
72 Float_t fCellSizeX[256];// Size for each pixel in x -microns
73 Float_t fCellSizeZ[280];// Size for each pixel in z -microns
74 TF1* fCorr; // correction function
75 AliITSgeom *fGeom; // local pointer to AliITSgeom.
77 ClassDef(AliITSsegmentationSPD,1) //Segmentation class for SPD