]>
Commit | Line | Data |
---|---|---|
237c933d | 1 | #ifndef ALIRICHSEGMENTATIONV0_H |
2 | #define ALIRICHSEGMENTATIONV0_H | |
3 | ||
4 | ||
5 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
6 | * See cxx source for full Copyright notice */ | |
7 | ||
8 | /* $Id$ */ | |
9 | ||
a2f7eaf6 | 10 | #include "AliSegmentation.h" |
237c933d | 11 | |
12 | class AliRICHSegmentationV0 : | |
a2f7eaf6 | 13 | public AliSegmentation { |
237c933d | 14 | public: |
33556896 | 15 | AliRICHSegmentationV0(); |
237c933d | 16 | virtual ~AliRICHSegmentationV0(){} |
17 | // | |
18 | // Set Chamber Segmentation Parameters | |
19 | // | |
20 | // Pad size Dx*Dy | |
21 | virtual void SetPadSize(Float_t p1, Float_t p2); | |
22 | // Anod Pitch | |
23 | virtual void SetDAnod(Float_t D) {fWireD = D;}; | |
24 | ||
25 | // | |
26 | // Transform from pad (wire) to real coordinates and vice versa | |
27 | // | |
28 | // Anod wire coordinate closest to xhit | |
a2f7eaf6 | 29 | virtual Float_t GetAnod(Float_t xhit) const; |
237c933d | 30 | // Transform from pad to real coordinates |
a2f7eaf6 | 31 | virtual void GetPadI(Float_t x, Float_t y , Int_t &ix, Int_t &iy); |
cc23c5c6 | 32 | virtual void GetPadI(Float_t x, Float_t y , Float_t /*z*/, Int_t &ix, Int_t &iy) {GetPadI(x, y, ix, iy);} |
237c933d | 33 | // Transform from real to pad coordinates |
a2f7eaf6 | 34 | virtual void GetPadC(Int_t ix, Int_t iy, Float_t &x, Float_t &y); |
35 | virtual void GetPadC(Int_t ix, Int_t iy, Float_t &x, Float_t &y, Float_t &z) | |
36 | {z=0; GetPadC(ix, iy, x , y);} | |
237c933d | 37 | // |
38 | // Initialisation | |
942194a4 | 39 | virtual void Init(Int_t i); |
237c933d | 40 | // |
41 | // Get member data | |
42 | // | |
43 | // Pad size in x | |
a2f7eaf6 | 44 | virtual Float_t Dpx() const {return fDpx;} |
237c933d | 45 | // |
46 | // Pad size in y | |
a2f7eaf6 | 47 | virtual Float_t Dpy() const {return fDpy;} |
237c933d | 48 | // Pad size in x by Sector |
a2f7eaf6 | 49 | virtual Float_t Dpx(Int_t) const {return fDpx;} |
237c933d | 50 | // Pad size in y by Sector |
a2f7eaf6 | 51 | virtual Float_t Dpy(Int_t) const {return fDpy;} |
237c933d | 52 | // Max number of Pads in x |
a2f7eaf6 | 53 | virtual Int_t Npx() const {return fNpx;} |
237c933d | 54 | // Max number of Pads in y |
a2f7eaf6 | 55 | virtual Int_t Npy() const {return fNpy;} |
03024e1e | 56 | // Dead zone width |
57 | virtual Float_t DeadZone() const {return fDeadZone;} | |
58 | ||
59 | // Getters for padplane dimensions | |
60 | virtual Float_t GetPadPlaneWidth() const {return fPadPlane_Width;} | |
61 | virtual Float_t GetPadPlaneLength() const {return fPadPlane_Length;} | |
237c933d | 62 | |
63 | ||
64 | // set pad position | |
65 | virtual void SetPad(Int_t ix, Int_t iy); | |
66 | // set hit position | |
67 | virtual void SetHit(Float_t xhit , Float_t yhit); | |
cc23c5c6 | 68 | virtual void SetHit(Float_t xhit, Float_t yhit, Float_t /*zhit*/){SetHit(xhit, yhit);} |
237c933d | 69 | // |
70 | // Iterate over pads | |
71 | // Initialiser | |
72 | virtual void FirstPad(Float_t xhit, Float_t yhit, Float_t dx, Float_t dy); | |
cc23c5c6 | 73 | virtual void FirstPad(Float_t xhit, Float_t yhit, Float_t /*zhit*/, Float_t dx, Float_t dy){FirstPad(xhit, yhit, dx, dy);} |
237c933d | 74 | // Stepper |
75 | virtual void NextPad(); | |
76 | // Condition | |
77 | virtual Int_t MorePads(); | |
78 | // | |
79 | // Distance between 1 pad and a position | |
80 | virtual Float_t Distance2AndOffset(Int_t iX, Int_t iY, Float_t X, Float_t Y, Int_t * | |
81 | dummy); | |
82 | // Number of pads read in parallel and offset to add to x | |
83 | // (specific to LYON, but mandatory for display) | |
cc23c5c6 | 84 | virtual void GetNParallelAndOffset(Int_t /*iX*/, Int_t /*iY*/,Int_t *Nparallel, Int_t *Offset) {*Nparallel=1;*Offset=0;} |
237c933d | 85 | // Get next neighbours |
cc23c5c6 | 86 | virtual void Neighbours (Int_t iX, Int_t iY, Int_t* Nlist, Int_t Xlist[10], Int_t Ylist[10]); |
237c933d | 87 | // |
88 | // Current Pad during Integration | |
89 | // x-coordinate | |
a2f7eaf6 | 90 | virtual Int_t Ix() {return fIx;} |
237c933d | 91 | // y-coordinate |
a2f7eaf6 | 92 | virtual Int_t Iy() {return fIy;} |
237c933d | 93 | // current sector |
a2f7eaf6 | 94 | virtual Int_t ISector() {return 1;} |
237c933d | 95 | // calculate sector from x-y coordinates |
cc23c5c6 | 96 | virtual Int_t Sector(Int_t,Int_t) {return 1;} |
97 | virtual Int_t Sector(Float_t,Float_t) {return 1;} | |
237c933d | 98 | // |
99 | // Signal Generation Condition during Stepping | |
100 | virtual Int_t SigGenCond(Float_t x, Float_t y, Float_t z); | |
101 | // Initialise signal gneration at coord (x,y,z) | |
102 | virtual void SigGenInit(Float_t x, Float_t y, Float_t z); | |
103 | // Current integration limits | |
104 | virtual void IntegrationLimits | |
105 | (Float_t& x1, Float_t& x2, Float_t& y1, Float_t& y2); | |
106 | // Test points for auto calibration | |
a2f7eaf6 | 107 | virtual void GiveTestPoints(Int_t &n, Float_t *x, Float_t *y) const; |
237c933d | 108 | // Debugging utilities |
a2f7eaf6 | 109 | virtual void Draw(const char* = "") const; |
237c933d | 110 | // Function for systematic corrections |
cc23c5c6 | 111 | virtual void SetCorrFunc(Int_t /*dum*/, TF1* func) {fCorr=func;} |
bf88e9dd | 112 | |
a2f7eaf6 | 113 | virtual TF1* CorrFunc(Int_t) const {return fCorr;} |
237c933d | 114 | ClassDef(AliRICHSegmentationV0,1) |
115 | protected: | |
116 | // | |
117 | // Implementation of the segmentation data | |
118 | // Version 0 models rectangular pads with the same dimensions all | |
119 | // over the cathode plane | |
120 | // | |
121 | // geometry | |
122 | // | |
123 | Float_t fDpx; // x pad width per sector | |
124 | Float_t fDpy; // y pad base width | |
125 | Int_t fNpx; // Number of pads in x | |
126 | Int_t fNpy; // Number of pads in y | |
127 | Int_t fSector; // Current padplane | |
128 | Float_t fWireD; // wire pitch | |
129 | ||
03024e1e | 130 | Float_t fDeadZone; //width of deadzones beteween CsI padplanes |
bf88e9dd | 131 | Float_t fPadPlane_Width; //width of CsI padplanes |
132 | Float_t fPadPlane_Length; //length of CsI padplanes | |
237c933d | 133 | |
134 | ||
135 | // Chamber region consideres during disintegration (lower left and upper right corner) | |
136 | // | |
72e468a5 | 137 | Int_t fIxmin; // lower left x |
138 | Int_t fIxmax; // lower left y | |
139 | Int_t fIymin; // upper right x | |
140 | Int_t fIymax; // upper right y | |
237c933d | 141 | // |
142 | // Current pad during integration (cursor for disintegration) | |
72e468a5 | 143 | Int_t fIx; // pad coord. x |
144 | Int_t fIy; // pad coord. y | |
145 | Float_t fX; // x | |
146 | Float_t fY; // y | |
237c933d | 147 | // |
148 | // Current pad and wire during tracking (cursor at hit centre) | |
72e468a5 | 149 | Float_t fXhit; //x position |
150 | Float_t fYhit; //y position | |
237c933d | 151 | // Reference point to define signal generation condition |
72e468a5 | 152 | Int_t fIxt; // pad coord. x |
153 | Int_t fIyt; // pad coord. y | |
154 | Int_t fIwt; // wire number | |
155 | Float_t fXt; // x | |
156 | Float_t fYt; // y | |
237c933d | 157 | TF1* fCorr; // correction function |
158 | }; | |
159 | #endif | |
72e468a5 | 160 | |
161 |