AliMUONSegmentation and AliMUONHitMap have been replaced by AliSegmentation and AliHi...
[u/mrichter/AliRoot.git] / MUON / AliMUONSegmentationTriggerX.h
CommitLineData
a9e2aefa 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
11class AliMUONChamber;
12//----------------------------------------------
13//
14// Chamber segmentation virtual base class
15//
16class AliMUONSegmentationTriggerX :
17public AliMUONSegmentationTrigger {
18 public:
19 AliMUONSegmentationTriggerX(){}
20 virtual ~AliMUONSegmentationTriggerX(){}
21 // Transform from pad to real coordinates
a30a000f 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);}
a9e2aefa 25 // Transform from real to pad coordinates
a30a000f 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);}
a9e2aefa 29 // Pad size Dx*Dy
30 virtual void SetPadSize(Float_t dp1, Float_t dp2);
31 // Strip size
32 virtual Float_t Dpx(Int_t imodule);
33 virtual Float_t Dpy(Int_t imodule);
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);
24b005db 38 virtual void SetHit(Float_t xhit, Float_t yhit, Float_t zhit)
39 {SetHit(xhit, yhit);}
a9e2aefa 40 // Current integration parameters
41 virtual void IntegrationLimits(Float_t& x1, Float_t& x2, Float_t& x3, Float_t& width);
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 // Get next neighbours
52 virtual void Neighbours
53 (Int_t iX, Int_t iY, Int_t* Nlist, Int_t Xlist[2], Int_t Ylist[2]);
54
55 //
56 // Initialisation
d81db581 57 virtual void Init(Int_t chamber);
a9e2aefa 58
59 ClassDef(AliMUONSegmentationTriggerX,1) //Segmentation class for trigger X
60
61 protected:
62 void IntegrationParam(Float_t& x1, Float_t& x2, Float_t& y1);
63// Geometry Parameters
64 float fXofxsmin[126][64]; // x-min
65 float fXofxsmax[126][64]; // x-max
66 float fYofxsmin[126][64]; // y-min
67 float fYofxsmax[126][64]; // y-max
68
69// Current pad during integration (cursor for disintegration)
70 Int_t fix; // pad coord. x
71 Int_t fiy; // pad coord. y
72 Float_t fx; // real coord. x
73 Float_t fy; // real ccord. y
74
75};
76#endif
77
78
79