]>
Commit | Line | Data |
---|---|---|
0a11496e | 1 | #ifndef ALIMUONTRIGGERSEGMENTATION_H |
2 | #define ALIMUONTRIGGERSEGMENTATION_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id: */ | |
7 | ||
8 | //********************************************************* | |
9 | // Segmentation classes for slat modules | |
10 | // This class works with local coordinates | |
11 | // of the slats via the class AliMUONGeometrySegmentation | |
12 | // This class contains the size of the slats and the | |
13 | // and the differents PCB densities. | |
14 | //********************************************************* | |
15 | ||
16 | #include "AliMUONVGeometryDESegmentation.h" | |
17 | ||
18 | class TArrayF; | |
19 | class TArrayI; | |
20 | ||
21 | class AliMUONTriggerSegmentation : public AliMUONVGeometryDESegmentation | |
22 | { | |
23 | public: | |
24 | AliMUONTriggerSegmentation(Bool_t bending); | |
79b4ba23 | 25 | AliMUONTriggerSegmentation(); |
0a11496e | 26 | virtual ~AliMUONTriggerSegmentation(); |
27 | ||
28 | virtual Float_t Distance2AndOffset(Int_t /*iX*/, Int_t /*iY*/, Float_t /*X*/, Float_t /*Y*/, Int_t * /*dummy*/) {return 0.;} // Distance between 1 pad and a position | |
79b4ba23 | 29 | virtual Float_t Dpx() const {return 0.;} // Pad size in x |
30 | virtual Float_t Dpy() const {return 0.;} // Pad size in y | |
0a11496e | 31 | virtual Float_t Dpx(Int_t isec) const; // Pad size in x by Sector |
32 | virtual Float_t Dpy(Int_t isec) const; // Pad size in y by Sector | |
33 | virtual void Draw(const char */*opt*/ = "") {} // Not implemented | |
34 | virtual void FirstPad(Float_t /*xhit*/, Float_t /*yhit*/, Float_t /*dx*/, Float_t /*dy*/){} | |
35 | virtual void FirstPad(Float_t /*xhit*/, Float_t /*yhit*/, Float_t /*zhit*/, Float_t /*dx*/, Float_t /*dy*/) {} | |
36 | ||
37 | virtual Bool_t HasPad(Float_t /*x*/, Float_t /*y*/, Float_t /*z*/) { return true; } | |
79b4ba23 | 38 | virtual Bool_t HasPad(Int_t ix, Int_t iy); |
0a11496e | 39 | virtual AliMUONGeometryDirection GetDirection() { return kDirUndefined; } |
40 | ||
41 | virtual Float_t GetAnod(Float_t /*xhit*/) const {return 0; } // Anod wire coordinate closest to xhit | |
42 | virtual void GetPadI(Float_t x ,Float_t y ,Int_t &ix,Int_t &iy); // Transform from pad to real coordinates | |
43 | virtual void GetPadI(Float_t x, Float_t y , Float_t z, Int_t &ix, Int_t &iy); | |
44 | virtual void GetPadC(Int_t ix, Int_t iy, Float_t &x, Float_t &y); | |
45 | virtual void GetPadC(Int_t ix, Int_t iy, Float_t &x, Float_t &y, Float_t &z) {z=0; GetPadC(ix, iy, x , y);} | |
46 | virtual void GetPadLoc2Glo(Int_t ixLoc, Int_t iyLoc, Int_t &ixGlo, Int_t &iyGlo); | |
47 | ||
48 | virtual void IntegrationLimits(Float_t& x1, Float_t& x2, Float_t& y1, Float_t& y2); //Current integration limits | |
49 | virtual Int_t ISector() {return fSector;} // Current Pad during Integration (current sector) | |
50 | virtual Int_t Ix() {return fIx;} // x-coordinate | |
51 | virtual Int_t Iy() {return fIy;} // y-coordinate | |
52 | ||
53 | // virtual Int_t MorePads(); // Condition | |
54 | virtual Int_t MorePads(){return 0;}; // Condition | |
55 | ||
56 | virtual void Neighbours(Int_t iX, Int_t iY, Int_t* Nlist, Int_t Xlist[10], Int_t Ylist[10]); // Get next neighbours | |
57 | virtual void NextPad(){} // Stepper | |
58 | ||
59 | virtual Int_t Npx() const {return fNpx;} // Maximum number of Pads in x | |
60 | virtual Int_t Npy() const {return fNpy;} // Maximum number of Pads in y | |
61 | ||
62 | virtual void SetDAnod(Float_t /*D*/) {/*fWireD = D*/;}; // Anod pitch | |
79b4ba23 | 63 | virtual Int_t Sector(Int_t ix, Int_t iy); // Calculate sector from pad coordinates |
0a11496e | 64 | virtual void SetHit(Float_t xhit, Float_t yhit); // Set hit position |
65 | virtual void SetHit(Float_t xhit, Float_t yhit, Float_t zhit); | |
66 | virtual void SetId(Int_t id) {fId=id;} // Setting detection element | |
67 | virtual void SetPad(Int_t ix, Int_t iy); // Set pad position | |
68 | virtual void SetPadDivision(Int_t /*ndiv[4]*/){} // Set Slat Segmentation Parameters | |
69 | virtual void SetPadSize(Float_t p1, Float_t p2); // Pad size Dx*Dy | |
70 | virtual void SetPcbBoards(Int_t /*n[4]*/){} // Set Segmentation Zones (PCB Boards) | |
71 | virtual void SetLineNumber(Int_t iLineNumber); | |
72 | virtual void SetNstrip(Int_t nStrip[7]); | |
73 | virtual void SetStripYsize(Float_t stripYsize[7]); | |
74 | virtual void SetStripXsize(Float_t stripXsize[7]); | |
75 | ||
76 | // The following function could be obsolet for this class, but they are pure virtual in AliSegmentation | |
77 | virtual void GetNParallelAndOffset(Int_t /*iX*/, Int_t /*iY*/, Int_t */*Nparallel*/, Int_t */*Offset*/){}; | |
78 | virtual Int_t SigGenCond(Float_t /*x*/, Float_t /*y*/, Float_t /*z*/){return 0;} ; // Signal Generation Condition during Stepping | |
79 | virtual void SigGenInit(Float_t /*x*/, Float_t /*y*/, Float_t /*z*/){}; // Initialise signal gneration at coord (x,y,z) | |
80 | virtual void GiveTestPoints(Int_t &/*n*/, Float_t * /*x*/, Float_t */*y*/) const{}; // Test points for auto calibration | |
81 | virtual void SetCorrFunc(Int_t /*dum*/, TF1* /*func*/){}; // Function for systematic corrections, Set the correction function | |
82 | virtual TF1* CorrFunc(Int_t) const {return 0x0;} // Get the correction Function | |
83 | virtual Int_t Sector(Float_t /*x*/, Float_t /*y*/) {return 1;} | |
84 | ||
85 | virtual void Init(Int_t /*detectionElementId*/){} // Initialisation | |
79b4ba23 | 86 | virtual void Init(Int_t detectionElementId, |
0a11496e | 87 | Int_t nStrip[7], |
88 | Float_t stripYsize[7], | |
89 | Float_t stripXsize[7], | |
90 | Float_t offset); // Initialisation | |
91 | // Current integration limits | |
92 | ||
93 | protected: | |
94 | ||
95 | AliMUONTriggerSegmentation(const AliMUONTriggerSegmentation& rhs); | |
96 | AliMUONTriggerSegmentation& operator=(const AliMUONTriggerSegmentation& rhs); | |
97 | ||
98 | // Internal geometry of the slat | |
0a11496e | 99 | Bool_t fBending; // 0: Bending or 1:Non Bending segmentation |
100 | Int_t fId; // Identifier of detection element | |
101 | Int_t fNsec; // Number of density sectors (should be 4, if not not warranty about the output | |
102 | TArrayI* fNDiv; // Densities (d1, d2, d3, d4). It should be (4, 4, 2, 1) which goes from beam to out-beam | |
79b4ba23 | 103 | TArrayF* fDpxD; // x pad width per density sector |
104 | TArrayF* fDpyD; // x pad width per density sector | |
0a11496e | 105 | Float_t fDpx; // x pad base width |
106 | Float_t fDpy; // y pad base width | |
107 | Int_t fNpx; // Number of pads in x | |
108 | Int_t fNpy; // Number of pads in y | |
79b4ba23 | 109 | Float_t fWireD; // wire pitch |
0a11496e | 110 | // |
111 | Int_t fSector; // Current density sector | |
79b4ba23 | 112 | Float_t fDxPCB; // x-size of PCB board |
113 | Float_t fDyPCB; // y-size of PCB board | |
114 | Int_t fPcbBoards[4]; // number of PCB boards per density sector n1,n2,n3,n4 | |
0a11496e | 115 | // n1 PcbBoard with density d1, n2 PcbBoards with density d2, etc .... |
116 | ||
117 | // Segmentation map | |
118 | Int_t fNpxS[10]; // Number of pads per sector in x | |
119 | Int_t fNpyS[10]; // Number of pads per sector in y | |
79b4ba23 | 120 | Float_t fCx[10]; // pad-sector contour x vs y |
121 | Float_t fCy; // y offset | |
0a11496e | 122 | |
123 | // Current pad and wire during tracking (cursor at hit centre) | |
124 | Float_t fXhit; // ! x-position of hit | |
125 | Float_t fYhit; // ! y-position of hit | |
126 | ||
127 | // Current pad and wire during tracking (cursor at hit centre) | |
128 | Int_t fIx; // ! pad coord. x | |
129 | Int_t fIy; // ! pad coord. y | |
130 | Float_t fX; // ! real coord. x | |
131 | Float_t fY; // ! real ccord. y | |
132 | ||
133 | // Chamber region consideres during disintegration | |
79b4ba23 | 134 | Int_t fIxmin; // ! lower left x |
135 | Int_t fIxmax; // ! lower left y | |
136 | Int_t fIymin; // ! upper right x | |
137 | Int_t fIymax; // ! upper right y | |
138 | // add to St345SlatSegmentation | |
139 | Int_t fLineNumber; // line number of the RPC | |
140 | Int_t fNstrip[7]; // number of strips per module in RPC | |
141 | Float_t fStripYsize[7]; // strip Y size per module in RPC | |
142 | Float_t fStripXsize[7]; // strip X size per module in RPC | |
143 | Float_t fModuleXmin[7]; // x min position of modules | |
144 | Float_t fModuleXmax[7]; // x max position of modules | |
145 | Float_t fModuleYmin[7]; // y min position of modules | |
146 | Float_t fRpcHalfXsize; // RPC half size in x | |
147 | Float_t fRpcHalfYsize; // RPC half size in y | |
148 | // add to St345SlatSegmentation | |
149 | ||
0a11496e | 150 | // Chamber region consideres during disintegration (lower left and upper right corner) |
79b4ba23 | 151 | Float_t fXmin; // lower left x |
152 | Float_t fXmax; // lower left y | |
153 | Float_t fYmin; // upper right x | |
154 | Float_t fYmax; // upper right y | |
155 | ||
0a11496e | 156 | ClassDef(AliMUONTriggerSegmentation,1) |
157 | }; | |
158 | #endif | |
159 | ||
160 | ||
161 | ||
162 | ||
163 | ||
164 |