Partical update of SetDefault.
[u/mrichter/AliRoot.git] / ITS / AliITSsegmentationSSD.h
CommitLineData
b0f5e3fc 1#ifndef ALIITSSEGMENTATIONSSD_H
2#define ALIITSSEGMENTATIONSSD_H
3
4#include "AliITSsegmentation.h"
5
6// segmentation for SSD
7
8class AliITSsegmentationSSD :
9public AliITSsegmentation {
10 public:
11
12 AliITSsegmentationSSD();
13 AliITSsegmentationSSD(AliITSgeom *gm);
14 AliITSsegmentationSSD(AliITSsegmentationSSD &source);
15 virtual ~AliITSsegmentationSSD(){}
16 AliITSsegmentationSSD& operator=(AliITSsegmentationSSD &source);
17
18
19 // Detector size: x,z,y
5752a110 20 virtual void SetDetSize(Float_t p1=72960.,Float_t p2=40000.,
21 Float_t p3= 300.)
b0f5e3fc 22 {fDx=p1; fDz=p2; fDy=p3;}
23
24 // Strip size
e8189707 25 virtual void SetPadSize(Float_t pitch=95., Float_t dummy=1.)
b0f5e3fc 26 {fPitch=pitch;}
27
28 // Maximum number of strips along the two coordinates
e8189707 29 virtual void SetNPads(Int_t p1=768, Int_t dummy=1)
b0f5e3fc 30 {fNstrips=p1;}
5752a110 31 // Returns the maximum number of cells (digits) posible
32 virtual Int_t GetNPads(){return 2*fNstrips;}
b0f5e3fc 33
34
35 // Set stereo angles Pside-Nside
5752a110 36 virtual void SetAngles(Float_t pa=0.0175, Float_t na=0.0175)
37 {fStereoP=pa; fStereoN=na;}
fd61217e 38
39 // Set stereo angles Pside-Nside
b0f5e3fc 40 // Transform from real coordinates to strips
5752a110 41 virtual void GetPadIxz(Float_t x ,Float_t z ,Int_t &iP,Int_t &iN);
b0f5e3fc 42 // Transform from strips to real coordinates
5752a110 43 virtual void GetPadCxz(Int_t iP, Int_t iN, Float_t &x , Float_t &z);
44 virtual void GetPadTxz(Float_t &x , Float_t &z);
b0f5e3fc 45
46 // Transform from real global to local coordinates
47 virtual void GetLocal(Int_t module,Float_t *g ,Float_t *l) {}
48 // Transform from real local to global coordinates
49 virtual void GetGlobal(Int_t module,Float_t *l ,Float_t *g) {}
5752a110 50 // Transformation from Geant cm detector center local coordinates
51 // to detector P and N side strip numbers..
52 virtual void LocalToDet(Float_t x,Float_t z,Int_t &iP,Int_t &iN);
53 // Transformation from detector segmentation/cell coordiantes starting
54 // from 0. iPN=0 for P side and 1 for N side strip. Returned is z=0.0
55 // and the corresponding x value..
56 virtual void DetToLocal(Int_t ix,Int_t iPN,Float_t &x,Float_t &z);
57 // Given one P side strip and one N side strip, Returns kTRUE if they
58 // cross each other and the location of the two crossing strips and
59 // their correxlation matrix c[2][2].
60 virtual Bool_t GetCrossing(Int_t iP,Int_t iN,Float_t &x,Float_t &z,
61 Float_t c[2][2]);
62 //
b0f5e3fc 63 virtual void Init();
64
65 // Detector type geometry
66 virtual AliITSgeom* Geometry() {return 0;}
67 // Detector length
68 virtual Float_t Dx() {return fDx;}
69 // Detector width
70 virtual Float_t Dz() {return fDz;}
71 // Detector thickness
72 virtual Float_t Dy() {return fDy;}
73 // Strip size in x
74 virtual Float_t Dpx(Int_t) {return fPitch;}
75 // Strip size in z
76 virtual Float_t Dpz(Int_t) {return fDz;}
77 // Maximum number of Strips in x
78 virtual Int_t Npx() {return fNstrips;}
79 // Maximum number of Strips in z
80 virtual Int_t Npz(){return 1;}
81
b0f5e3fc 82 protected:
83
84 Int_t fNstrips; // Number of strips in x
5752a110 85 Float_t fStereoP; // Stereo angle for Pside (rad)
86 Float_t fStereoN; // Stereo angle for Nside (rad)
87 Float_t fPitch; // Pitch of the strips (microns)
b0f5e3fc 88 Float_t fDz; // Full width of the detector (z axis)- microns
89 Float_t fDx; // Full length of the detector (x axis)- microns
5752a110 90 Float_t fDy; // Full thickness of the detector (y axis) -um
fd61217e 91
e8189707 92 AliITSgeom *fGeom; //! pointer to the geometry class
b0f5e3fc 93 TF1* fCorr; // correction function
94
95 ClassDef(AliITSsegmentationSSD,1) //Segmentation class for SSD
96};
97
98#endif