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