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 const AliMpVSegmentation* GetMpSegmentation() const;
102 /// to be deprecated. Use the one below w/o z instead.
103 void GetPadC(Int_t ix, Int_t iy, Float_t& x, Float_t& y, Float_t& z);
105 /// From pad indices to coordinates (cm).
106 void GetPadC(Int_t ix, Int_t iy, Float_t& x, Float_t& y);
108 // Transform from pad to real coordinates
109 void GetPadI(Float_t x ,Float_t y ,Int_t &ix,Int_t &iy);
111 // to be deprecated. Use the one above w/o z instead.
112 void GetPadI(Float_t x, Float_t y , Float_t z, Int_t &ix, Int_t &iy);
115 /// Whether a pad exists at a given position.
116 Bool_t HasPad(Float_t x, Float_t y, Float_t z);
118 /// Whether a pad exists, given its indices.
119 Bool_t HasPad(Int_t ix, Int_t iy);
122 void Print(Option_t* opt = "") const;
126 void ReadMappingData();
131 AliMpPlaneType fPlaneType;
132 const AliMpSlat* fSlat; //!
133 AliMpSlatSegmentation* fSlatSegmentation; //!
134 AliMpVPadIterator* fPadIterator; //!
135 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.
138 ClassDef(AliMUONSt345SlatSegmentationV2,1)