]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONSegmentationV02.cxx
Violations fixed
[u/mrichter/AliRoot.git] / MUON / AliMUONSegmentationV02.cxx
index de69572c2dc196fe708386c0330d39c191166054..7e2264ab54f65e12df5547ef5d90d383582ec4cb 100644 (file)
  * 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   //
@@ -44,11 +21,18 @@ AliMUONSegmentationV02 code  from  AliMUONSegResV02.cxx
 
 
 #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 
@@ -66,7 +50,7 @@ Int_t AliMUONSegmentationV02::Npy() const
 {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;}
 
@@ -74,6 +58,9 @@ Float_t AliMUONSegmentationV02::Dpy(Int_t isec) const
 // 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
 //
@@ -88,11 +75,17 @@ AliMUONSegmentationV01::GetPadI(y, x, iy, ix);
 // 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)
@@ -140,11 +133,12 @@ void AliMUONSegmentationV02::NextPad()
 }
 
 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) {