]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSsegmentationSPD.h
New ITS code for new structure and simulations.
[u/mrichter/AliRoot.git] / ITS / AliITSsegmentationSPD.h
CommitLineData
b0f5e3fc 1#ifndef ALIITSSEGMENTATIONSPD_H
2#define ALIITSSEGMENTATIONSPD_H
3
4#include "AliITSsegmentation.h"
5
6// segmentation and response for SPD
7
8class AliITSsegmentationSPD :
9public AliITSsegmentation {
10 public:
11
12 AliITSsegmentationSPD();
13 AliITSsegmentationSPD(AliITSgeom *gm);
14 AliITSsegmentationSPD(AliITSsegmentationSPD &source);
15 virtual ~AliITSsegmentationSPD(){}
16 AliITSsegmentationSPD& operator=(AliITSsegmentationSPD &source);
17
18 // Set Detector Segmentation Parameters
19 //
20 // Detector size along x,z,y coordinates
21 virtual void SetDetSize(Float_t Dx, Float_t Dz, Float_t Dy);
22
23 // Maximum number of pixels along the two coordinates
24 virtual void SetNCells(Int_t p1, Int_t p2);
25
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) {}
36 //
37 // Initialisation
38 virtual void Init();
39 virtual void Init300();
40 //
41 // Get member data
42 //
43 // Detector Type geometry
44 virtual AliITSgeom* Geometry() {return fGeom;}
45 // Detector length
46 virtual Float_t Dx() {return fDx;}
47 // Detector width
48 virtual Float_t Dz() {return fDz;}
49 // Detector thickness
50 virtual Float_t Dy() {return fDy;}
51 // Pixel size in x
52 virtual Float_t Dpx(Int_t ix);
53 // Pixel size in z
54 virtual Float_t Dpz(Int_t iz);
55
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;}
60 //
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]);
64
65 protected:
66
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.
76
77 ClassDef(AliITSsegmentationSPD,1) //Segmentation class for SPD
78
79};
80
81#endif