]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONSegmentationSlatN.cxx
Merge MC labels for 4 neighbour bins in the Hough space in order to reduce the size...
[u/mrichter/AliRoot.git] / MUON / AliMUONSegmentationSlatN.cxx
index 7a9e7a6ecba2cd5e7672cbc62ecb77a9cd47fca7..cb70cebb0fd972e5a8974aa14c50a3f12a87bd21 100644 (file)
@@ -13,9 +13,7 @@
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-*/
+/* $Id$ */
 
 #include "AliMUONSegmentationSlatN.h"
 #include "AliMUONSegmentationSlatModuleN.h"
@@ -23,20 +21,25 @@ $Log$
 #include "TArrayF.h"
 #include "TObjArray.h"
 #include <TMath.h>
-#include <iostream.h>
+#include <Riostream.h>
 
 //___________________________________________
 ClassImp(AliMUONSegmentationSlatN);
 
-
-
 AliMUONSegmentationSlatN::AliMUONSegmentationSlatN()
 {
 // Default constructor
 }
 
 
-Float_t AliMUONSegmentationSlatN::Dpx(Int_t isec) const
+AliMUONSegmentationSlatN::AliMUONSegmentationSlatN(Int_t nsec)
+    : AliMUONSegmentationSlat(nsec)
+{
+// Non default constructor
+}
+
+
+Float_t AliMUONSegmentationSlatN::Dpx(Int_t /*isec*/) const
 {
 //
 // Returns y-pad size for given sector isec
@@ -63,7 +66,7 @@ void AliMUONSegmentationSlatN::GlobalToLocal(
 //
 // Perform local to global transformation for pad coordinates
 //
-    Int_t iytemp = TMath::Abs(iy)
+    Int_t iytemp = iy
     Int_t index  = 0;
     
     iylocal = iytemp;
@@ -82,7 +85,6 @@ void AliMUONSegmentationSlatN::GlobalToLocal(
     }
     ixlocal=ix;
     islat=index;
-// Done !
 }
 
 void AliMUONSegmentationSlatN::LocalToGlobal(
@@ -103,8 +105,7 @@ void AliMUONSegmentationSlatN::LocalToGlobal(
     }
 //
 // Perform symmetry transformation
-    ix=ixlocal*fSym[0];
-    iy=iy*fSym[1];
+    ix=ixlocal*fSym;
 }
 
 
@@ -126,16 +127,14 @@ GetPadI(Float_t x, Float_t y, Float_t z, Int_t &ix, Int_t &iy)
        }
     }
 // Determine sign depending on quadrant
-    ix=ix*Int_t(TMath::Sign(1.,x));
-    iy=iy*Int_t(TMath::Sign(1.,y));    
-
+    ix=ix*Int_t(TMath::Sign((Float_t)1.,x));
 }
 
 AliMUONSegmentationSlatModule* AliMUONSegmentationSlatN::
 CreateSlatModule()
 {
     // Factory method for slat module
-    return new AliMUONSegmentationSlatModuleN();
+    return new AliMUONSegmentationSlatModuleN(4);
 }