]>
Commit | Line | Data |
---|---|---|
a9e2aefa | 1 | #ifndef ALIMUONSEGMENTATIONV01_H |
2 | #define ALIMUONSEGMENTATIONV01_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | /* $Id$ */ | |
8 | ||
9 | ///////////////////////////////////////////////////// | |
10 | // Segmentation and Response classes version 01 // | |
11 | ///////////////////////////////////////////////////// | |
12 | class AliMUON; | |
a9e2aefa | 13 | class TObjArray; |
14 | ||
a9e2aefa | 15 | #include "AliMUONSegmentationV0.h" |
c1a185bf | 16 | #include "TArrayI.h" // because the object, and not the pointer, |
17 | #include "TArrayF.h" // belongs to the class | |
18 | ||
a9e2aefa | 19 | |
20 | class AliMUONSegmentationV01 : | |
21 | public AliMUONSegmentationV0 { | |
22 | public: | |
23 | AliMUONSegmentationV01(); | |
24 | AliMUONSegmentationV01(const AliMUONSegmentationV01 & segmentation); | |
25 | ||
26 | virtual ~AliMUONSegmentationV01(){} | |
27 | // | |
28 | // Set Chamber Segmentation Parameters | |
29 | // | |
30 | virtual void SetPadDivision(Int_t ndiv[4]); | |
31 | // Radii | |
32 | virtual void SetSegRadii(Float_t r[4]); | |
e80ad807 | 33 | virtual void SetOffsetY(Float_t off) {fOffsetY = off;} |
a9e2aefa | 34 | // |
35 | // Transform from pad (wire) to real coordinates and vice versa | |
36 | // | |
37 | // Transform from pad to real coordinates | |
a30a000f | 38 | virtual void GetPadI(Float_t x ,Float_t y ,Int_t &ix,Int_t &iy); |
c3eff6ad | 39 | virtual void GetPadI(Float_t x, Float_t y , Float_t z, Int_t &ix, Int_t &iy) |
a30a000f | 40 | {GetPadI(x, y, ix, iy);} |
a9e2aefa | 41 | // Transform from real to pad coordinates |
a30a000f | 42 | virtual void GetPadC(Int_t ix,Int_t iy,Float_t &x ,Float_t &y ); |
c3eff6ad | 43 | virtual void GetPadC(Int_t ix, Int_t iy, Float_t &x, Float_t &y, Float_t &z) |
3e1872ed | 44 | {z=fZ; GetPadC(ix, iy, x , y);} |
a9e2aefa | 45 | // |
46 | // Initialisation | |
d81db581 | 47 | virtual void Init(Int_t chamber); |
a9e2aefa | 48 | // |
49 | // Get member data | |
50 | // | |
51 | // Pad size in x by Sector | |
94de3818 | 52 | virtual Float_t Dpx(Int_t isec) const; |
a9e2aefa | 53 | // Pad size in y by Sector |
94de3818 | 54 | virtual Float_t Dpy(Int_t isec) const; |
a9e2aefa | 55 | // Max number of Pads in x |
94de3818 | 56 | virtual Int_t Npx() const {return fNpxS[fNsec-1][1]+1;} |
a9e2aefa | 57 | // |
58 | virtual void SetPad(Int_t ix,Int_t iy); | |
59 | // | |
60 | // Iterate over pads | |
61 | // Initialiser | |
62 | virtual void FirstPad(Float_t xhit, Float_t yhit, Float_t dx, Float_t dy); | |
24b005db | 63 | virtual void FirstPad(Float_t xhit, Float_t yhit, Float_t zhit, Float_t dx, Float_t dy) |
64 | {FirstPad(xhit, yhit, dx, dy);} | |
a9e2aefa | 65 | // Stepper |
66 | virtual void NextPad(); | |
67 | // Condition | |
68 | virtual Int_t MorePads(); | |
69 | // Get next neighbours | |
70 | virtual void Neighbours | |
71 | (Int_t iX, Int_t iY, Int_t* Nlist, Int_t Xlist[10], Int_t Ylist[10]); | |
72 | // | |
73 | // Current Pad during Integration | |
74 | // current sector | |
75 | virtual Int_t ISector() {return fSector;} | |
76 | // calculate sector from pad coordinates | |
77 | virtual Int_t Sector(Int_t ix, Int_t iy); | |
78 | // | |
79 | // Integration | |
80 | // Current integration limits | |
81 | virtual void IntegrationLimits | |
82 | (Float_t& x1, Float_t& x2, Float_t& y1, Float_t& y2); | |
83 | // Test points for auto calibration | |
c3eff6ad | 84 | void GiveTestPoints(Int_t &n, Float_t *x, Float_t *y) const; |
a9e2aefa | 85 | // |
86 | // Draw segmentation zones | |
c3eff6ad | 87 | virtual void Draw(const char *opt="") const; |
a9e2aefa | 88 | // Function for systematic corrections |
89 | // Set the correction function | |
90 | virtual void SetCorrFunc(Int_t dum, TF1* func); | |
91 | // Get the correction function | |
c3eff6ad | 92 | virtual TF1* CorrFunc(Int_t iZone) const; |
a9e2aefa | 93 | // assignment operator |
94 | AliMUONSegmentationV01& operator=(const AliMUONSegmentationV01& rhs); | |
95 | ClassDef(AliMUONSegmentationV01,1) // Segmentation approximating circular zones with different pad size | |
96 | protected: | |
97 | // Geometry | |
98 | // | |
c3eff6ad | 99 | Int_t fNsec; // Number of sectors |
100 | TArrayF* fRSec; // Sector outer radia | |
101 | TArrayI* fNDiv; // Pad size division | |
102 | TArrayF* fDpxD; // y pad width per sector | |
e80ad807 | 103 | Float_t fOffsetY; // Staggering offset in y |
a9e2aefa | 104 | // Segmentation map |
105 | Int_t fNpxS[10][1000]; // Number of pads per sector in x | |
106 | Float_t fCx[10][1000]; // pad-sector contour x vs y | |
107 | // Chamber region consideres during disintegration | |
108 | // (lower left and upper right corner) | |
109 | // | |
ecfa008b | 110 | Float_t fXmin; // lower left x |
111 | Float_t fXmax; // lower left y | |
112 | Float_t fYmin; // upper right x | |
113 | Float_t fYmax; // upper right y | |
a9e2aefa | 114 | |
115 | // | |
116 | // Current pad during integration (cursor for disintegration) | |
1dde0c84 | 117 | Int_t fSector; // Current sector |
a9e2aefa | 118 | // |
1dde0c84 | 119 | TObjArray *fCorrA; // Array of correction functions |
a9e2aefa | 120 | }; |
121 | #endif | |
122 | ||
123 | ||
124 | ||
125 | ||
126 | ||
127 | ||
128 | ||
129 |