/*
$Log$
+Revision 1.6 2000/12/21 22:12:41 morsch
+Clean-up of coding rule violations,
+
+Revision 1.5 2000/10/26 19:32:04 morsch
+Problem with iteration over y-pads for 2nd cathode corrected.
+
+Revision 1.4 2000/10/25 19:56:55 morsch
+Handle correctly slats with less than 3 segmentation zones.
+
+Revision 1.3 2000/10/22 16:56:33 morsch
+- Store chamber number as slat id.
+
+Revision 1.2 2000/10/18 11:42:06 morsch
+- AliMUONRawCluster contains z-position.
+- Some clean-up of useless print statements during initialisations.
+
+Revision 1.1 2000/10/06 08:59:03 morsch
+Segmentation classes for bending and non bending plane slat modules (A. de Falco, A. Morsch)
+
*/
/////////////////////////////////////////////////////
// Default constructor
}
+AliMUONSegmentationSlatModuleN::AliMUONSegmentationSlatModuleN(Int_t nsec)
+ : AliMUONSegmentationSlatModule(nsec)
+{
+// Non default constructor
+}
+
Float_t AliMUONSegmentationSlatModuleN::Dpx(Int_t isec) const
{
for (Int_t i = fNsec-1; i > 0; i--) {
if (x >= fCx[i-1]) {
isec=i;
+ if (fCx[isec] == fCx[isec-1] && isec > 1) isec--;
break;
}
}
//
//
+
if (isec == -1) {
ix = 0;
iy = 0;
if (fIy > fNpyS[fSector]) printf("\n this pad %f %f %d %d \n",fX,fY,fIx,fIy);
GetPadC(fIx, fIy, xc, yc);
-// printf("\n Next Pad (n)%d %d %f %f %d", fIx,fIy,fX,fY,fSector);
+// printf("\n Next Pad (n)%d %d %f %f %d %f %d ", fIx,fIy,fX,fY,fSector, fYmax, fIxmax);
}
Int_t AliMUONSegmentationSlatModuleN::MorePads()
+{
// Stopping condition for the iterator over pads
//
//
// Are there more pads in the integration region
-{
- if ((fY >= fYmax && fIx >= fIxmax) || fIy == -1) {
+
+ if (fIy == -1) {
return 0;
} else {
return 1;
void AliMUONSegmentationSlatModuleN::
Neighbours(Int_t iX, Int_t iY, Int_t* Nlist, Int_t Xlist[10], Int_t Ylist[10])
{
-
-
// Returns list of next neighbours for given Pad (iX, iY)
//
//
void AliMUONSegmentationSlatModuleN::Init(Int_t chamber)
{
- printf("\n Initialise segmentation SlatModuleN \n");
//
// Fill the arrays fCx (x-contour) for each sector
// These arrays help in converting from real to pad co-ordinates and
// concentric circles as shown below
//
// PCB module size in cm
+
+ printf("\n Initialise Segmentation SlatModuleN \n");
+
+
fDxPCB=40;
fDyPCB=40;
//
if (fNsec > 1) {
for (Int_t i=fNsec-2; i>=0; i--){
(*fDpxD)[i]=(*fDpxD)[fNsec-1]/(*fNDiv)[i];
- printf("\n test ---dx %d %f \n",i,(*fDpxD)[i]);
}
}
//
} else {
fNpxS[isec] = fNpxS[isec-1] + fPcbBoards[isec]*fNpxPCB;
fNpyS[isec] = Int_t(fDyPCB/fDpy)*(*fNDiv)[isec];
-
- printf("\n %d %d ",isec, fNpxS[isec]);
-
fCx[isec] = fCx[isec-1] + fPcbBoards[isec]*fDxPCB;
fNpx += fPcbBoards[isec] * fNpxPCB;
}
fNpx=fNpxS[3];
fNpy=Int_t(fDyPCB/fDpy)*(*fNDiv)[1];
+//
+ fId = chamber;
+
}