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