/*
$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.
//___________________________________________
ClassImp(AliMUONSegmentationSlatN);
-
-
AliMUONSegmentationSlatN::AliMUONSegmentationSlatN()
{
// Default constructor
}
+AliMUONSegmentationSlatN::AliMUONSegmentationSlatN(Int_t nsec)
+ : AliMUONSegmentationSlat(nsec)
+{
+// Non default constructor
+}
+
+
Float_t AliMUONSegmentationSlatN::Dpx(Int_t isec) const
{
//
//
// 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((Float_t)1.,x));
- iy=iy*Int_t(TMath::Sign((Float_t)1.,y));
-
}
AliMUONSegmentationSlatModule* AliMUONSegmentationSlatN::
CreateSlatModule()
{
// Factory method for slat module
- return new AliMUONSegmentationSlatModuleN();
+ return new AliMUONSegmentationSlatModuleN(4);
}