/*
$Log$
+Revision 1.6 2000/10/02 16:58:29 egangler
+Cleaning of the code :
+-> coding conventions
+-> void Streamers
+-> some useless includes removed or replaced by "class" statement
+
+Revision 1.5 2000/07/03 11:54:57 morsch
+AliMUONSegmentation and AliMUONHitMap have been replaced by AliSegmentation and AliHitMap in STEER
+The methods GetPadIxy and GetPadXxy of AliMUONSegmentation have changed name to GetPadI and GetPadC.
+
+Revision 1.4 2000/06/29 12:34:09 morsch
+AliMUONSegmentation class has been made independent of AliMUONChamber. This makes
+it usable with any other geometry class. The link to the object to which it belongs is
+established via an index. This assumes that there exists a global geometry manager
+from which the pointer to the parent object can be obtained (in our case gAlice).
+
+Revision 1.3 2000/06/26 10:01:26 pcrochet
+global variables removed
+
Revision 1.2 2000/06/15 07:58:48 morsch
Code from MUON-dev joined
ClassImp(AliMUONSegmentationTriggerY)
//------------------------------------------------------------------
-void AliMUONSegmentationTriggerY::Init(AliMUONChamber* Chamber)
+void AliMUONSegmentationTriggerY::Init(Int_t chamber)
{
// intialize Y segmentation
cout << "Initialize Trigger Chamber Geometry Y " << "\n";
- AliMUONSegmentationTrigger::Init(Chamber);
+ AliMUONSegmentationTrigger::Init(chamber);
// calculate x & y position of Y strips
Int_t nModule=AliMUONTriggerConstants::Nmodule();
}
//------------------------------------------------------------------
-void AliMUONSegmentationTriggerY::GetPadIxy(Float_t x,Float_t y,Int_t &ix,Int_t &iy){
+void AliMUONSegmentationTriggerY::GetPadI(Float_t x,Float_t y,Int_t &ix,Int_t &iy)
+{
// Returns pad coordinates (ix,iy) for given real coordinates (x,y)
// x,y = real coordinates; ix = module number , iy = strip number
}
//------------------------------------------------------------------
-void AliMUONSegmentationTriggerY::GetPadCxy(Int_t ix, Int_t iy, Float_t &x, Float_t &y){
+void AliMUONSegmentationTriggerY::GetPadC(Int_t ix, Int_t iy, Float_t &x, Float_t &y)
+{
// Returns real coordinates (x,y) for given pad coordinates (ix,iy)
// ix = module number , iy = strip number; x,y = center of strip
x = 0.;
//------------------------------------------------------------------
void AliMUONSegmentationTriggerY::
-Neighbours(Int_t iX, Int_t iY, Int_t* Nlist, Int_t Xlist[2], Int_t Ylist[2]){
+Neighbours(Int_t iX, Int_t iY, Int_t* Nlist, Int_t Xlist[2], Int_t Ylist[2])
+{
// Returns list of next neighbours for given Pad (ix, iy)
Int_t absiX=TMath::Abs(iX);
*Nlist = 0;
{
// Sets virtual pad coordinates, needed for evaluating pad response
// outside the tracking program
- GetPadCxy(ix,iy,fx,fy);
- GetPadIxy(fx,fy,fix,fiy);
+ GetPadC(ix,iy,fX,fY);
+ GetPadI(fX,fY,fIx,fIy);
fSector=Sector(ix,iy);
}
//------------------------------------------------------------------
-Int_t AliMUONSegmentationTriggerY::ISector()
+Int_t AliMUONSegmentationTriggerY::ISector()
{ return fSector;}
//------------------------------------------------------------------
+
Int_t AliMUONSegmentationTriggerY::Ix()
-{ return fix;}
+{ return fIx;}
//------------------------------------------------------------------
+
Int_t AliMUONSegmentationTriggerY::Iy()
-{ return fiy;}
+{ return fIy;}
//------------------------------------------------------------------
-Float_t AliMUONSegmentationTriggerY::Dpx(Int_t isec)
+Float_t AliMUONSegmentationTriggerY::Dpx(Int_t isec) const
{
// returns x size of y strips for sector isec
if (isec==1) {
}
//------------------------------------------------------------------
-Float_t AliMUONSegmentationTriggerY::Dpy(Int_t isec)
+Float_t AliMUONSegmentationTriggerY::Dpy(Int_t isec) const
{
// returns y size of y strips for sector isec
if (isec==1) {
// returns quantities needed to evaluate neighbour strip response
Int_t ix,iy;
Float_t xstrip,ystrip;
- GetPadIxy(fxhit,fyhit,ix,iy);
- GetPadCxy(ix,iy,xstrip,ystrip);
- x1=fxhit; // hit x position
+ GetPadI(fXhit,fYhit,ix,iy);
+ GetPadC(ix,iy,xstrip,ystrip);
+ x1=fXhit; // hit x position
x2=xstrip; // x coordinate of the main strip
- x3=fx; // current strip real x coordinate
+ x3=fX; // current strip real x coordinate
width=StripSizeY(ix); // width of the main strip
}