]>
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 | ||
0a11496e | 10 | class AliMUONTriggerSegmentation : public AliMUONVGeometryDESegmentation |
11 | { | |
12 | public: | |
13 | AliMUONTriggerSegmentation(Bool_t bending); | |
79b4ba23 | 14 | AliMUONTriggerSegmentation(); |
0a11496e | 15 | virtual ~AliMUONTriggerSegmentation(); |
16 | ||
17 | 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 | 18 | virtual Float_t Dpx() const {return 0.;} // Pad size in x |
19 | virtual Float_t Dpy() const {return 0.;} // Pad size in y | |
0a11496e | 20 | virtual Float_t Dpx(Int_t isec) const; // Pad size in x by Sector |
21 | virtual Float_t Dpy(Int_t isec) const; // Pad size in y by Sector | |
22 | virtual void Draw(const char */*opt*/ = "") {} // Not implemented | |
23 | virtual void FirstPad(Float_t /*xhit*/, Float_t /*yhit*/, Float_t /*dx*/, Float_t /*dy*/){} | |
24 | virtual void FirstPad(Float_t /*xhit*/, Float_t /*yhit*/, Float_t /*zhit*/, Float_t /*dx*/, Float_t /*dy*/) {} | |
25 | ||
26 | virtual Bool_t HasPad(Float_t /*x*/, Float_t /*y*/, Float_t /*z*/) { return true; } | |
79b4ba23 | 27 | virtual Bool_t HasPad(Int_t ix, Int_t iy); |
0a11496e | 28 | virtual AliMUONGeometryDirection GetDirection() { return kDirUndefined; } |
29 | ||
d173a061 | 30 | virtual Float_t GetAnod(Float_t /*xhit*/) const {return 0; } // Anod wire coordinate closest to xhit |
0a11496e | 31 | virtual void GetPadI(Float_t x ,Float_t y ,Int_t &ix,Int_t &iy); // Transform from pad to real coordinates |
32 | virtual void GetPadI(Float_t x, Float_t y , Float_t z, Int_t &ix, Int_t &iy); | |
33 | virtual void GetPadC(Int_t ix, Int_t iy, Float_t &x, Float_t &y); | |
34 | 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);} | |
35 | virtual void GetPadLoc2Glo(Int_t ixLoc, Int_t iyLoc, Int_t &ixGlo, Int_t &iyGlo); | |
d173a061 | 36 | virtual void GetPadGlo2Loc(Int_t ixLoc, Int_t iyLoc, Int_t &ixGlo, Int_t &iyGlo); |
0a11496e | 37 | virtual void IntegrationLimits(Float_t& x1, Float_t& x2, Float_t& y1, Float_t& y2); //Current integration limits |
38 | virtual Int_t ISector() {return fSector;} // Current Pad during Integration (current sector) | |
39 | virtual Int_t Ix() {return fIx;} // x-coordinate | |
40 | virtual Int_t Iy() {return fIy;} // y-coordinate | |
41 | ||
42 | // virtual Int_t MorePads(); // Condition | |
43 | virtual Int_t MorePads(){return 0;}; // Condition | |
44 | ||
45 | virtual void Neighbours(Int_t iX, Int_t iY, Int_t* Nlist, Int_t Xlist[10], Int_t Ylist[10]); // Get next neighbours | |
46 | virtual void NextPad(){} // Stepper | |
47 | ||
48 | virtual Int_t Npx() const {return fNpx;} // Maximum number of Pads in x | |
49 | virtual Int_t Npy() const {return fNpy;} // Maximum number of Pads in y | |
50 | ||
51 | virtual void SetDAnod(Float_t /*D*/) {/*fWireD = D*/;}; // Anod pitch | |
79b4ba23 | 52 | virtual Int_t Sector(Int_t ix, Int_t iy); // Calculate sector from pad coordinates |
0a11496e | 53 | virtual void SetHit(Float_t xhit, Float_t yhit); // Set hit position |
54 | virtual void SetHit(Float_t xhit, Float_t yhit, Float_t zhit); | |
55 | virtual void SetId(Int_t id) {fId=id;} // Setting detection element | |
56 | virtual void SetPad(Int_t ix, Int_t iy); // Set pad position | |
57 | virtual void SetPadDivision(Int_t /*ndiv[4]*/){} // Set Slat Segmentation Parameters | |
d173a061 | 58 | virtual void SetPadSize(Float_t /*p1*/, Float_t /*p2*/){;}; // Pad size Dx*Dy |
0a11496e | 59 | virtual void SetPcbBoards(Int_t /*n[4]*/){} // Set Segmentation Zones (PCB Boards) |
38aedc99 | 60 | // add to St345SlatSegmentation |
61 | virtual void SetLineNumber(Int_t iLineNumber); | |
62 | virtual Int_t ModuleColNum(Int_t ixGlo); | |
d173a061 | 63 | // add to St345SlatSegmentation |
0a11496e | 64 | |
65 | // The following function could be obsolet for this class, but they are pure virtual in AliSegmentation | |
66 | virtual void GetNParallelAndOffset(Int_t /*iX*/, Int_t /*iY*/, Int_t */*Nparallel*/, Int_t */*Offset*/){}; | |
67 | virtual Int_t SigGenCond(Float_t /*x*/, Float_t /*y*/, Float_t /*z*/){return 0;} ; // Signal Generation Condition during Stepping | |
68 | virtual void SigGenInit(Float_t /*x*/, Float_t /*y*/, Float_t /*z*/){}; // Initialise signal gneration at coord (x,y,z) | |
69 | virtual void GiveTestPoints(Int_t &/*n*/, Float_t * /*x*/, Float_t */*y*/) const{}; // Test points for auto calibration | |
70 | virtual void SetCorrFunc(Int_t /*dum*/, TF1* /*func*/){}; // Function for systematic corrections, Set the correction function | |
71 | virtual TF1* CorrFunc(Int_t) const {return 0x0;} // Get the correction Function | |
72 | virtual Int_t Sector(Float_t /*x*/, Float_t /*y*/) {return 1;} | |
73 | ||
74 | virtual void Init(Int_t /*detectionElementId*/){} // Initialisation | |
79b4ba23 | 75 | virtual void Init(Int_t detectionElementId, |
0a11496e | 76 | Int_t nStrip[7], |
77 | Float_t stripYsize[7], | |
78 | Float_t stripXsize[7], | |
79 | Float_t offset); // Initialisation | |
0a11496e | 80 | |
81 | protected: | |
82 | ||
83 | AliMUONTriggerSegmentation(const AliMUONTriggerSegmentation& rhs); | |
84 | AliMUONTriggerSegmentation& operator=(const AliMUONTriggerSegmentation& rhs); | |
85 | ||
d173a061 | 86 | // Internal geometry |
0a11496e | 87 | Bool_t fBending; // 0: Bending or 1:Non Bending segmentation |
88 | Int_t fId; // Identifier of detection element | |
d173a061 | 89 | Int_t fNsec; // Number of density sectors |
0a11496e | 90 | Int_t fNpx; // Number of pads in x |
91 | Int_t fNpy; // Number of pads in y | |
0a11496e | 92 | Int_t fSector; // Current density sector |
0a11496e | 93 | |
94 | // Current pad and wire during tracking (cursor at hit centre) | |
95 | Float_t fXhit; // ! x-position of hit | |
96 | Float_t fYhit; // ! y-position of hit | |
97 | ||
98 | // Current pad and wire during tracking (cursor at hit centre) | |
99 | Int_t fIx; // ! pad coord. x | |
100 | Int_t fIy; // ! pad coord. y | |
101 | Float_t fX; // ! real coord. x | |
102 | Float_t fY; // ! real ccord. y | |
103 | ||
79b4ba23 | 104 | // add to St345SlatSegmentation |
38aedc99 | 105 | Int_t fLineNumber; // line number of the RPC (1:9 - top:bottom) |
79b4ba23 | 106 | Int_t fNstrip[7]; // number of strips per module in RPC |
107 | Float_t fStripYsize[7]; // strip Y size per module in RPC | |
108 | Float_t fStripXsize[7]; // strip X size per module in RPC | |
109 | Float_t fModuleXmin[7]; // x min position of modules | |
110 | Float_t fModuleXmax[7]; // x max position of modules | |
111 | Float_t fModuleYmin[7]; // y min position of modules | |
112 | Float_t fRpcHalfXsize; // RPC half size in x | |
113 | Float_t fRpcHalfYsize; // RPC half size in y | |
114 | // add to St345SlatSegmentation | |
115 | ||
0a11496e | 116 | ClassDef(AliMUONTriggerSegmentation,1) |
117 | }; | |
118 | #endif | |
119 | ||
120 | ||
121 | ||
122 | ||
123 | ||
124 |