]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSsegmentation.h
New version with the use of SetLayer for SSD. From M. Masera
[u/mrichter/AliRoot.git] / ITS / AliITSsegmentation.h
CommitLineData
b0f5e3fc 1#ifndef ALIITSSEGMENTATION_H
2#define ALIITSSEGMENTATION_H
3
4
5#include <TObject.h>
b0f5e3fc 6
1ca7869b 7
8class TF1;
b0f5e3fc 9class AliITSgeom;
10
11//----------------------------------------------
12//
13// ITS segmentation virtual base class
14//
15class AliITSsegmentation :
16public TObject {
17 public:
e8189707 18
19 virtual ~AliITSsegmentation() {}
b0f5e3fc 20 // Set Detector Segmentation Parameters
21 //
22 // Detector size
23 virtual void SetDetSize(Float_t Dx, Float_t Dz, Float_t Dy) {}
24
25 // Cell size
e8189707 26 virtual void SetPadSize(Float_t p1, Float_t p2) {}
b0f5e3fc 27
28 // Maximum number of cells along the two coordinates
e8189707 29 virtual void SetNPads(Int_t p1, Int_t p2) {}
5752a110 30 // Returns the maximum number of cells (digits) posible
31 virtual Int_t GetNPads(){return 0;}
b0f5e3fc 32
33 // Set angles - find a generic name fit for other detectors as well
34 // might be useful for beam test setups (3 angles ?)
35 virtual void SetAngles(Float_t p1, Float_t p2) {}
36
37 // Transform from real to cell coordinates
e8189707 38 virtual void GetPadIxz(Float_t x ,Float_t z ,Int_t &ix,Int_t &iz) {}
b0f5e3fc 39 // Transform from cell to real coordinates
e8189707 40 virtual void GetPadCxz(Int_t ix, Int_t iz, Float_t &x ,Float_t &z ) {}
b0f5e3fc 41 // Transform from real global to local coordinates
e8189707 42 virtual void GetLocal(Int_t module,Float_t *g ,Float_t *l) {}
b0f5e3fc 43 // Transform from real local to global coordinates
e8189707 44 virtual void GetGlobal(Int_t module,Float_t *l ,Float_t *g) {}
45 // Local transformation of real local coordinates -
46 virtual void GetPadTxz(Float_t &x ,Float_t &z) {}
5752a110 47 // Transformation from Geant cm detector center local coordinates
48 // to detector segmentation/cell coordiantes starting from (0,0).
49 virtual void LocalToDet(Float_t x,Float_t z,Int_t &ix,Int_t &iz){}
50 // Transformation from detector segmentation/cell coordiantes starting
51 // from (0,0) to Geant cm detector center local coordinates.
52 virtual void DetToLocal(Int_t ix,Int_t iz,Float_t &x,Float_t &z){}
b0f5e3fc 53 // Initialisation
54 virtual void Init() {}
55 //
56 // Get member data
57 //
58 // Detector type geometry
59 virtual AliITSgeom* Geometry() {return 0;}
60 // Detector length
e8189707 61 virtual Float_t Dx() {return 0.;}
b0f5e3fc 62 // Detector width
e8189707 63 virtual Float_t Dz() {return 0.;}
b0f5e3fc 64 // Detector thickness
e8189707 65 virtual Float_t Dy() {return 0.;}
b0f5e3fc 66 // Cell size in x
e8189707 67 virtual Float_t Dpx(Int_t) {return 0.;}
b0f5e3fc 68 // Cell size in z
e8189707 69 virtual Float_t Dpz(Int_t) {return 0.;}
b0f5e3fc 70
71 // Maximum number of Cells in x
e8189707 72 virtual Int_t Npx() {return 0;}
b0f5e3fc 73 // Maximum number of Cells in z
e8189707 74 virtual Int_t Npz() {return 0;}
b0f5e3fc 75
76 // Angles
77 virtual void Angles(Float_t &, Float_t&) {}
78
79 // Set cell position
80 virtual void SetPad(Int_t, Int_t) {}
81 // Set hit position
82 virtual void SetHit(Float_t, Float_t) {}
83
84 //
85 // Iterate over cells
86 // Initialiser
e8189707 87 virtual void FirstPad
b0f5e3fc 88 (Float_t xhit, Float_t zhit, Float_t dx, Float_t dz) {}
89 // Stepper
e8189707 90 virtual void NextPad() {}
b0f5e3fc 91 // Condition
e8189707 92 virtual Int_t MorePads() {return 0;}
b0f5e3fc 93 //
94 // Get next neighbours
95 virtual void Neighbours
96 (Int_t iX, Int_t iZ, Int_t* Nlist, Int_t Xlist[10], Int_t Zlist[10]) {}
97 //
98 // Current cell cursor during disintegration
99 // x-coordinate
100 virtual Int_t Ix() {return 0;}
101 // z-coordinate
102 virtual Int_t Iz() {return 0;}
103 //
104 // Signal Generation Condition during Stepping
105 virtual Int_t SigGenCond(Float_t x, Float_t y, Float_t z) {return 0;}
106 // Initialise signal generation at coord (x,y,z)
107 virtual void SigGenInit(Float_t x, Float_t y, Float_t z) {}
108 // Current integration limits
109 virtual void IntegrationLimits
110 (Float_t& x1, Float_t& x2, Float_t& z1, Float_t& z2) {}
111 // Test points for auto calibration
112 virtual void GiveTestPoints(Int_t &n, Float_t *x, Float_t *z) {}
113 // Function for systematic corrections
114 // Set the correction function
115 virtual void SetCorrFunc(Int_t, TF1*) {}
116 // Get the correction Function
117 virtual TF1* CorrFunc(Int_t) {return 0;}
118
119 ClassDef(AliITSsegmentation,1) //Segmentation virtual base class
120};
121
122#endif
123
124
125
126
127
128
129