]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONSegmentationSlatN.cxx
Fix for new AliRun::RunReco().
[u/mrichter/AliRoot.git] / MUON / AliMUONSegmentationSlatN.cxx
index 7a9e7a6ecba2cd5e7672cbc62ecb77a9cd47fca7..5dca5be9937f929652bdc9c97a905619f64432c6 100644 (file)
 
 /*
 $Log$
+Revision 1.3  2000/10/22 16:55:43  morsch
+Use only x-symmetry in global to local transformations and delegation.
+
+Revision 1.2  2000/10/09 14:06:18  morsch
+Some type cast problems of type  (TMath::Sign((Float_t)1.,x)) corrected (P.H.)
+
+Revision 1.1  2000/10/06 09:00:47  morsch
+Segmentation class for chambers built out of slats.
+
 */
 
 #include "AliMUONSegmentationSlatN.h"
@@ -28,14 +37,19 @@ $Log$
 //___________________________________________
 ClassImp(AliMUONSegmentationSlatN);
 
-
-
 AliMUONSegmentationSlatN::AliMUONSegmentationSlatN()
 {
 // Default constructor
 }
 
 
+AliMUONSegmentationSlatN::AliMUONSegmentationSlatN(Int_t nsec)
+    : AliMUONSegmentationSlat(nsec)
+{
+// Non default constructor
+}
+
+
 Float_t AliMUONSegmentationSlatN::Dpx(Int_t isec) const
 {
 //
@@ -63,7 +77,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 +96,6 @@ void AliMUONSegmentationSlatN::GlobalToLocal(
     }
     ixlocal=ix;
     islat=index;
-// Done !
 }
 
 void AliMUONSegmentationSlatN::LocalToGlobal(
@@ -103,8 +116,7 @@ void AliMUONSegmentationSlatN::LocalToGlobal(
     }
 //
 // Perform symmetry transformation
-    ix=ixlocal*fSym[0];
-    iy=iy*fSym[1];
+    ix=ixlocal*fSym;
 }
 
 
@@ -126,16 +138,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);
 }