]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONSegmentationTriggerX.h
Removing warnings (icc), adding more detailed description
[u/mrichter/AliRoot.git] / MUON / AliMUONSegmentationTriggerX.h
1 #ifndef ALIMUONSEGMENTATIONTRIGGERX_H
2 #define ALIMUONSEGMENTATIONTRIGGERX_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 /* $Id$ */
8
9 #include "AliMUONSegmentationTrigger.h"
10
11 class AliMUONChamber;
12 //----------------------------------------------
13 //
14 // Chamber segmentation virtual base class
15 //
16 class AliMUONSegmentationTriggerX :
17 public AliMUONSegmentationTrigger {
18  public:
19   AliMUONSegmentationTriggerX(){}
20   virtual ~AliMUONSegmentationTriggerX(){}
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   // Transform from real to pad coordinates
25   virtual void    GetPadC(Int_t ix, Int_t iy, Float_t &x, Float_t &y);
26   virtual void    GetPadC(Int_t ix, Int_t iy, Float_t &x, Float_t &y, Float_t &z) 
27       {z=-10000.; GetPadC(ix, iy, x , y);}
28   // Draw the segmentation zones
29   virtual void Draw(const char *opt = "") const;
30
31   // Pad size Dx*Dy 
32   virtual void SetPadSize(Float_t dp1, Float_t dp2);
33   // Strip size 
34   virtual Float_t Dpx(Int_t imodule) const;
35   virtual Float_t Dpy(Int_t imodule) const;
36   // Set pad position
37   virtual void     SetPad(Int_t ix, Int_t iy);
38   // Set hit position
39   virtual void     SetHit(Float_t xhit, Float_t yhit);
40   virtual void     SetHit(Float_t xhit, Float_t yhit, Float_t zhit);
41   // Current integration parameters
42   virtual void IntegrationLimits(Float_t& x1, Float_t& x2, Float_t& x3, Float_t& x4);
43   // Current Pad during Integration
44   // x-coordinate
45   virtual Int_t  Ix();
46   // y-coordinate
47   virtual Int_t  Iy();
48   // Sector
49   virtual Int_t ISector();
50   // calculate sector from pad coordinates
51   virtual Int_t Sector(Int_t ix, Int_t iy);
52   // Get next neighbours 
53   virtual void Neighbours
54     (Int_t iX, Int_t iY, Int_t* Nlist, Int_t Xlist[10], Int_t Ylist[10]);
55   
56   //
57   // Initialisation
58   virtual void Init(Int_t chamber);    
59   
60   ClassDef(AliMUONSegmentationTriggerX,1) //Segmentation class for trigger X
61     
62   protected:
63    void  IntegrationParam(Float_t& x1, Float_t& x2, Float_t& y1);
64 // Geometry Parameters
65   float fXofxsmin[126][64];    // x-min
66   float fXofxsmax[126][64];    // x-max
67   float fYofxsmin[126][64];    // y-min
68   float fYofxsmax[126][64];    // y-max
69 };
70 #endif
71
72
73