]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSsegmentation.h
First version of combined PID (Yu.Belikov)
[u/mrichter/AliRoot.git] / ITS / AliITSsegmentation.h
CommitLineData
b0f5e3fc 1#ifndef ALIITSSEGMENTATION_H
2#define ALIITSSEGMENTATION_H
3
b0f5e3fc 4#include <TObject.h>
b0f5e3fc 5
1ca7869b 6class TF1;
b0f5e3fc 7class AliITSgeom;
b0f5e3fc 8//----------------------------------------------
9//
10// ITS segmentation virtual base class
11//
12class AliITSsegmentation :
13public TObject {
14 public:
e8189707 15 virtual ~AliITSsegmentation() {}
b0f5e3fc 16 // Set Detector Segmentation Parameters
17 //
18 // Detector size
19 virtual void SetDetSize(Float_t Dx, Float_t Dz, Float_t Dy) {}
b0f5e3fc 20 // Cell size
e8189707 21 virtual void SetPadSize(Float_t p1, Float_t p2) {}
b0f5e3fc 22 // Maximum number of cells along the two coordinates
e8189707 23 virtual void SetNPads(Int_t p1, Int_t p2) {}
5752a110 24 // Returns the maximum number of cells (digits) posible
25 virtual Int_t GetNPads(){return 0;}
b0f5e3fc 26 // Set angles - find a generic name fit for other detectors as well
27 // might be useful for beam test setups (3 angles ?)
28 virtual void SetAngles(Float_t p1, Float_t p2) {}
a244dbf6 29 // Set layer
30 virtual void SetLayer(Int_t l) {}
b0f5e3fc 31 // Transform from real to cell coordinates
e8189707 32 virtual void GetPadIxz(Float_t x ,Float_t z ,Int_t &ix,Int_t &iz) {}
b0f5e3fc 33 // Transform from cell to real coordinates
e8189707 34 virtual void GetPadCxz(Int_t ix, Int_t iz, Float_t &x ,Float_t &z ) {}
b0f5e3fc 35 // Transform from real global to local coordinates
e8189707 36 virtual void GetLocal(Int_t module,Float_t *g ,Float_t *l) {}
b0f5e3fc 37 // Transform from real local to global coordinates
e8189707 38 virtual void GetGlobal(Int_t module,Float_t *l ,Float_t *g) {}
39 // Local transformation of real local coordinates -
40 virtual void GetPadTxz(Float_t &x ,Float_t &z) {}
5752a110 41 // Transformation from Geant cm detector center local coordinates
42 // to detector segmentation/cell coordiantes starting from (0,0).
43 virtual void LocalToDet(Float_t x,Float_t z,Int_t &ix,Int_t &iz){}
44 // Transformation from detector segmentation/cell coordiantes starting
45 // from (0,0) to Geant cm detector center local coordinates.
46 virtual void DetToLocal(Int_t ix,Int_t iz,Float_t &x,Float_t &z){}
b0f5e3fc 47 // Initialisation
48 virtual void Init() {}
49 //
50 // Get member data
51 //
52 // Detector type geometry
53 virtual AliITSgeom* Geometry() {return 0;}
54 // Detector length
e8189707 55 virtual Float_t Dx() {return 0.;}
b0f5e3fc 56 // Detector width
e8189707 57 virtual Float_t Dz() {return 0.;}
b0f5e3fc 58 // Detector thickness
e8189707 59 virtual Float_t Dy() {return 0.;}
b0f5e3fc 60 // Cell size in x
e8189707 61 virtual Float_t Dpx(Int_t) {return 0.;}
b0f5e3fc 62 // Cell size in z
e8189707 63 virtual Float_t Dpz(Int_t) {return 0.;}
b0f5e3fc 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;}
a244dbf6 68 // Layer
db93954b 69 virtual Int_t GetLayer() const {return 0;}
b0f5e3fc 70 // Angles
71 virtual void Angles(Float_t &, Float_t&) {}
b0f5e3fc 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
db93954b 88 virtual void Neighbours(Int_t iX, Int_t iZ, Int_t* Nlist,
89 Int_t Xlist[10], Int_t Zlist[10]) {}
b0f5e3fc 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};
b0f5e3fc 114#endif
115
116
117
118
119