1 #ifndef ALIMUONST345SLATSEGMENTATIONV2_H
2 #define ALIMUONST345SLATSEGMENTATIONV2_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 /// \class AliMUONSt345SlatSegmentationV2
11 /// \brief Segmentation for slat modules
13 #ifndef ALIMUONVGEOMETRYDESEGMENTATION_H
14 #include "AliMUONVGeometryDESegmentation.h"
17 #ifndef ALI_MP_PLANE_TYPE_H
18 #include "AliMpPlaneType.h"
26 class AliMpSlatSegmentation;
27 class AliMpVPadIterator;
29 class AliMUONSt345SlatSegmentationV2 : public AliMUONVGeometryDESegmentation
33 AliMUONSt345SlatSegmentationV2();
34 AliMUONSt345SlatSegmentationV2(Int_t detElemId,
35 AliMpPlaneType bendingOrNonBending);
36 virtual ~AliMUONSt345SlatSegmentationV2();
38 void FirstPad(Float_t xhit, Float_t yhit, Float_t zhit,
39 Float_t dx, Float_t dy);
49 Float_t Distance2AndOffset(Int_t ix, Int_t iy,
53 void GetNParallelAndOffset(Int_t iX, Int_t iY,
54 Int_t* Nparallel, Int_t* Offset);
56 void Neighbours(Int_t iX, Int_t iY, Int_t* Nlist,
57 Int_t Xlist[10], Int_t Ylist[10]);
59 Int_t Sector(Int_t ix, Int_t iy);
60 Int_t Sector(Float_t x, Float_t y);
62 void IntegrationLimits(Float_t& x1, Float_t& x2,
63 Float_t& y1, Float_t& y2);
65 void GiveTestPoints(Int_t& n, Float_t* x, Float_t* y) const;
67 Int_t SigGenCond(Float_t x, Float_t y, Float_t z);
68 void SigGenInit(Float_t x, Float_t y, Float_t z);
70 void SetCorrFunc(Int_t, TF1*);
72 TF1* CorrFunc(Int_t) const;
74 void SetPadSize(float,float);
79 void Draw(Option_t * = "");
84 Float_t Dpx(int) const;
85 Float_t Dpy(int) const;
87 Float_t GetAnod(Float_t xhit) const;
92 /// Sets the current pad.
93 void SetPad(Int_t ix,Int_t iy);
95 /// Sets the current hit.
96 void SetHit(Float_t x, Float_t y, Float_t z_is_not_used);
98 AliMUONGeometryDirection GetDirection();// { return kDirUndefined; }
100 /// to be deprecated. Use the one below w/o z instead.
101 void GetPadC(Int_t ix, Int_t iy, Float_t& x, Float_t& y, Float_t& z);
103 /// From pad indices to coordinates (cm).
104 void GetPadC(Int_t ix, Int_t iy, Float_t& x, Float_t& y);
106 // Transform from pad to real coordinates
107 void GetPadI(Float_t x ,Float_t y ,Int_t &ix,Int_t &iy);
109 // to be deprecated. Use the one above w/o z instead.
110 void GetPadI(Float_t x, Float_t y , Float_t z, Int_t &ix, Int_t &iy);
113 /// Whether a pad exists at a given position.
114 Bool_t HasPad(Float_t x, Float_t y, Float_t z);
116 /// Whether a pad exists, given its indices.
117 Bool_t HasPad(Int_t ix, Int_t iy);
120 void Print(Option_t* opt = "") const;
124 void ReadMappingData();
129 AliMpPlaneType fPlaneType;
130 const AliMpSlat* fSlat; //!
131 AliMpSlatSegmentation* fSlatSegmentation; //!
132 AliMpVPadIterator* fPadIterator; //!
133 AliMpPad fCurrentPad; //!FIXME: should not be needed, if we externalise the SetPad, SetHit, IntegrationLimits methods which have nothing to do here anyway, together with the iteration methods FirstPad, NextPad, MorePads, which have nothing to do here either.
136 ClassDef(AliMUONSt345SlatSegmentationV2,1)