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