]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSsegmentationSPD.h
Code and bug fixes.
[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
e8189707 24 virtual void SetNPads(Int_t p1, Int_t p2);
b0f5e3fc 25
26 // Transform from real to pixel coordinates
e8189707 27 virtual void GetPadIxz
28 (Float_t x,Float_t z,Int_t &ix,Int_t &iz);
b0f5e3fc 29 // Transform from pixel to real coordinates
e8189707 30 virtual void GetPadCxz
b0f5e3fc 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) {}
e8189707 36 // Local transformation of real local coordinates -
37 virtual void GetPadTxz(Float_t &x ,Float_t &z);
b0f5e3fc 38 //
39 // Initialisation
40 virtual void Init();
41 virtual void Init300();
42 //
43 // Get member data
44 //
45 // Detector Type geometry
46 virtual AliITSgeom* Geometry() {return fGeom;}
47 // Detector length
48 virtual Float_t Dx() {return fDx;}
49 // Detector width
50 virtual Float_t Dz() {return fDz;}
51 // Detector thickness
52 virtual Float_t Dy() {return fDy;}
53 // Pixel size in x
54 virtual Float_t Dpx(Int_t ix);
55 // Pixel size in z
56 virtual Float_t Dpz(Int_t iz);
57
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;}
62 //
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]);
66
67 protected:
68
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
e8189707 77 AliITSgeom *fGeom; //! local pointer to AliITSgeom.
b0f5e3fc 78
79 ClassDef(AliITSsegmentationSPD,1) //Segmentation class for SPD
80
81};
82
83#endif