]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONSegmentationTriggerY.h
Code from MUON-dev joined
[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    GetPadIxy(Float_t x,Float_t y,Int_t &ix,Int_t &iy);
23   // Transform from real to pad coordinates
24   virtual void    GetPadCxy(Int_t ix,Int_t iy,Float_t &x,Float_t &y);
25   // Pad size Dx*Dy 
26   virtual void SetPadSize(Float_t dp1, Float_t dp2);
27   // Strip size by Module
28   virtual Float_t Dpx(Int_t imodule);
29   virtual Float_t Dpy(Int_t imodule);
30   // Set pad position
31   virtual void     SetPad(Int_t ix, Int_t iy);
32   // Set hit position
33   virtual void     SetHit(Float_t xhit , Float_t yhit);
34   // Current integration parameters
35   virtual void IntegrationLimits(Float_t& x1, Float_t& x2, Float_t& x3, Float_t& width);
36   // Current Pad during Integration
37   // x-coordinate
38   virtual Int_t  Ix();
39   // y-coordinate
40   virtual Int_t  Iy();
41   // Sector
42   virtual Int_t ISector();
43   // calculate sector from pad coordinates
44   virtual Int_t Sector(Int_t ix, Int_t iy);
45
46   
47   // Get next neighbours 
48   virtual void Neighbours
49     (Int_t iX, Int_t iY, Int_t* Nlist, Int_t Xlist[2], Int_t Ylist[2]);
50   //
51   // Initialisation
52   virtual void Init(AliMUONChamber* chamber);    
53   
54   ClassDef(AliMUONSegmentationTriggerY,1) //Segmentation class for trigger X
55     protected:    
56   void  IntegrationParam(Float_t& x1, Float_t& x2, Float_t& y1);
57   
58 // Geometry Parameters
59   float fXofysmin[126][16]; // x-min   
60   float fXofysmax[126][16]; // x-max
61   float fYofysmin[126][16]; // y-min
62   float fYofysmax[126][16]; // y-max
63
64 // Current pad during integration (cursor for disintegration)
65   Int_t fix;  // pad coord.  x 
66   Int_t fiy;  // pad coord.  y 
67   Float_t fx; // real coord. x
68   Float_t fy; // real ccord. y
69
70 };
71 #endif
72
73
74