]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONSegmentationTriggerY.h
958a62afbd1367df5cf1ee4110c6a1d7c53f234f
[u/mrichter/AliRoot.git] / MUON / AliMUONSegmentationTriggerY.h
1 #ifndef ALIMUONSEGMENTATIONTRIGGERY_H
2 #define ALIMUONSEGMENTATIONTRIGGERY_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 #include "AliMUONSegmentationTrigger.h"
10
11 class AliMUONChamber;
12 //----------------------------------------------
13 //
14 // Chamber segmentation virtual base class
15 //
16 class AliMUONSegmentationTriggerY :
17 public AliMUONSegmentationTrigger {
18  public:
19   AliMUONSegmentationTriggerY(){}
20   virtual ~AliMUONSegmentationTriggerY(){}
21   // Transform from pad to real coordinates
22   virtual void    GetPadI(Float_t x,Float_t y,Int_t &ix,Int_t &iy);
23   virtual void    GetPadI(Float_t x, Float_t y, Float_t z, Int_t &ix, Int_t &iy) 
24       {GetPadI(x, y, ix, iy);}
25   // Transform from real to pad coordinates
26   virtual void    GetPadC(Int_t ix,Int_t iy,Float_t &x,Float_t &y);
27   virtual void    GetPadC(Int_t ix, Int_t iy, Float_t &x, Float_t &y, Float_t &z) 
28       {z=0; GetPadC(ix, iy, x , y);}
29   // Pad size Dx*Dy 
30   virtual void SetPadSize(Float_t dp1, Float_t dp2);
31   // Strip size by Module
32   virtual Float_t Dpx(Int_t imodule) const;
33   virtual Float_t Dpy(Int_t imodule) const;
34   // Set pad position
35   virtual void     SetPad(Int_t ix, Int_t iy);
36   // Set hit position
37   virtual void     SetHit(Float_t xhit , Float_t yhit);
38   virtual void     SetHit(Float_t xhit, Float_t yhit, Float_t zhit)
39        {SetHit(xhit, yhit);}
40   // Current integration parameters
41   virtual void IntegrationLimits(Float_t& x1, Float_t& x2, Float_t& x3, Float_t& x4);
42   // Current Pad during Integration
43   // x-coordinate
44   virtual Int_t  Ix();
45   // y-coordinate
46   virtual Int_t  Iy();
47   // Sector
48   virtual Int_t ISector();
49   // calculate sector from pad coordinates
50   virtual Int_t Sector(Int_t ix, Int_t iy);
51
52   
53   // Get next neighbours 
54   virtual void Neighbours
55     (Int_t iX, Int_t iY, Int_t* Nlist, Int_t Xlist[10], Int_t Ylist[10]);
56   //
57   // Initialisation
58   virtual void Init(Int_t chamber);    
59   
60   ClassDef(AliMUONSegmentationTriggerY,1) //Segmentation class for trigger X
61     protected:    
62   void  IntegrationParam(Float_t& x1, Float_t& x2, Float_t& y1);
63   
64 // Geometry Parameters
65   float fXofysmin[126][16]; // x-min   
66   float fXofysmax[126][16]; // x-max
67   float fYofysmin[126][16]; // y-min
68   float fYofysmax[126][16]; // y-max
69
70 // Current pad during integration (cursor for disintegration)
71   Int_t fIx;  // pad coord.  x 
72   Int_t fIy;  // pad coord.  y 
73   Float_t fX; // real coord. x
74   Float_t fY; // real ccord. y
75
76 };
77 #endif
78
79
80