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