* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-Revision 1.5 2000/10/03 21:48:07 morsch
-Adopt to const declaration of some of the methods in AliSegmentation.
-
-Revision 1.4 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.3 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.2 2000/06/15 07:58:48 morsch
-Code from MUON-dev joined
-
-Revision 1.1.2.1 2000/06/09 21:37:56 morsch
-AliMUONSegmentationV02 code from AliMUONSegResV02.cxx
-
-*/
-
-
+/* $Id$ */
/////////////////////////////////////////////////////
// Segmentation and Response classes version 02 //
#include "AliMUONSegmentationV02.h"
-#include "iostream.h"
+#include "Riostream.h"
//___________________________________________
ClassImp(AliMUONSegmentationV02)
+
+AliMUONSegmentationV02::AliMUONSegmentationV02(Int_t nsec):
+ AliMUONSegmentationV01(nsec)
+{
+// Non default constructor
+}
+
void AliMUONSegmentationV02::SetPadSize(Float_t p1, Float_t p2)
{
// Sets the padsize
{return AliMUONSegmentationV01::Npx();}
-Float_t AliMUONSegmentationV02::Dpx(Int_t isec) const
+Float_t AliMUONSegmentationV02::Dpx(Int_t /*isec*/) const
// Returns pad-size in x
{return fDpy;}
// Returns pad-size in y
{return (*fDpxD)[isec];}
+void AliMUONSegmentationV02::Draw(const char * /*opt*/) const
+{}
+
Int_t AliMUONSegmentationV02::Sector(Int_t ix, Int_t iy)
// Returns sector number for given pad position
//
// printf("\n x,y,ix,iy %f %f %d %d", x,y,ix,iy);
}
+void AliMUONSegmentationV02::GetPad(Float_t x, Float_t y , Float_t /*z*/, Int_t &ix, Int_t &iy)
+{
+ GetPadI(x, y, ix, iy);
+}
+
void AliMUONSegmentationV02::
GetPadC(Int_t ix, Int_t iy, Float_t &x, Float_t &y)
+{
// Returns real coordinates (x,y) for given pad coordinates (ix,iy)
//
-{
+
AliMUONSegmentationV01::GetPadC(iy, ix, y, x);
}
void AliMUONSegmentationV02::SetPad(Int_t ix,Int_t iy)
}
Int_t AliMUONSegmentationV02::MorePads()
+{
// Stopping condition for the iterator over pads
//
//
// Are there more pads in the integration region
-{
+
return (fIx != -1 || fIy != -1);
/*
if ((fY >= fYmax && fIx >= fIxmax) || fX==0) {