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