Bug fix.
[u/mrichter/AliRoot.git] / ITS / AliITSsegmentationSPD.h
CommitLineData
b0f5e3fc 1#ifndef ALIITSSEGMENTATIONSPD_H
2#define ALIITSSEGMENTATIONSPD_H
3
4#include "AliITSsegmentation.h"
5
1ca7869b 6#include <TF1.h>
7
8class AliITSgeom;
9
b0f5e3fc 10// segmentation and response for SPD
11
12class AliITSsegmentationSPD :
13public AliITSsegmentation {
14 public:
15
16 AliITSsegmentationSPD();
17 AliITSsegmentationSPD(AliITSgeom *gm);
18 AliITSsegmentationSPD(AliITSsegmentationSPD &source);
19 virtual ~AliITSsegmentationSPD(){}
20 AliITSsegmentationSPD& operator=(AliITSsegmentationSPD &source);
21
22 // Set Detector Segmentation Parameters
23 //
24 // Detector size along x,z,y coordinates
25 virtual void SetDetSize(Float_t Dx, Float_t Dz, Float_t Dy);
26
27 // Maximum number of pixels along the two coordinates
e8189707 28 virtual void SetNPads(Int_t p1, Int_t p2);
b0f5e3fc 29
30 // Transform from real to pixel coordinates
e8189707 31 virtual void GetPadIxz
32 (Float_t x,Float_t z,Int_t &ix,Int_t &iz);
b0f5e3fc 33 // Transform from pixel to real coordinates
e8189707 34 virtual void GetPadCxz
b0f5e3fc 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) {}
e8189707 40 // Local transformation of real local coordinates -
41 virtual void GetPadTxz(Float_t &x ,Float_t &z);
b0f5e3fc 42 //
43 // Initialisation
44 virtual void Init();
45 virtual void Init300();
46 //
47 // Get member data
48 //
49 // Detector Type geometry
50 virtual AliITSgeom* Geometry() {return fGeom;}
51 // Detector length
52 virtual Float_t Dx() {return fDx;}
53 // Detector width
54 virtual Float_t Dz() {return fDz;}
55 // Detector thickness
56 virtual Float_t Dy() {return fDy;}
57 // Pixel size in x
58 virtual Float_t Dpx(Int_t ix);
59 // Pixel size in z
60 virtual Float_t Dpz(Int_t iz);
61
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;}
66 //
67 // Get next neighbours
68 virtual void Neighbours
7c0e9d1f 69 (Int_t iX,Int_t iZ,Int_t* Nlist,Int_t Xlist[10],Int_t Zlist[10]);
b0f5e3fc 70
71 protected:
72
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
e8189707 81 AliITSgeom *fGeom; //! local pointer to AliITSgeom.
b0f5e3fc 82
83 ClassDef(AliITSsegmentationSPD,1) //Segmentation class for SPD
84
85};
86
87#endif