* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-*/
+/* $Id$ */
#include "AliMUONSegmentationSlatN.h"
#include "AliMUONSegmentationSlatModuleN.h"
#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
//
// Perform local to global transformation for pad coordinates
//
- Int_t iytemp = TMath::Abs(iy);
+ Int_t iytemp = iy;
Int_t index = 0;
iylocal = iytemp;
}
ixlocal=ix;
islat=index;
-// Done !
}
void AliMUONSegmentationSlatN::LocalToGlobal(
}
//
// Perform symmetry transformation
- ix=ixlocal*fSym[0];
- iy=iy*fSym[1];
+ ix=ixlocal*fSym;
}
}
}
// 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);
}