#include "AliMUONTriggerSegmentation.h"
#include "AliLog.h"
+#include "Riostream.h"
//___________________________________________
ClassImp(AliMUONTriggerSegmentation)
fModuleXmax[i]=0.;
fModuleYmin[i]=0.;
}
+
+ AliDebug(1, Form("default (empty) ctor this = %p", this));
}
fModuleXmax[i]=0.;
fModuleYmin[i]=0.;
}
+
+ AliDebug(1, Form("ctor this = %p", this) );
}
//----------------------------------------------------------------------
AliMUONTriggerSegmentation::~AliMUONTriggerSegmentation()
{
// Destructor
- ;
+
+ AliDebug(1, Form("dtor this = %p", this) );
}
//----------------------------------------------------------------------
AliMUONTriggerSegmentation& AliMUONTriggerSegmentation::operator=(const AliMUONTriggerSegmentation& rhs)
for (Int_t iModule=0; iModule<fNsec; iModule++) {
for (Int_t iStrip=0; iStrip<fNstrip[iModule]; iStrip++) {
if ((iModule==ModuleColNum(ixGlo))&&(iStrip==iyGlo)) {
- ixLoc = 1;
- iyLoc = iCountStrip;
+ iyLoc = 1;
+ ixLoc = iCountStrip;
}
iCountStrip++;
}
void AliMUONTriggerSegmentation::GetPadI(Float_t x, Float_t y, Int_t &ix, Int_t &iy)
{
// Returns global pad coordinates (ix,iy) for local real coordinates (x,y)
- ix = 100;
- iy = 100;
+ ix = -1;
+ iy = -1;
x = x + fRpcHalfXsize;
y = y + fRpcHalfYsize;
}
//-----------------------------------------------------------------------------
-void AliMUONTriggerSegmentation::
-IntegrationLimits(Float_t& x1,Float_t& x2,Float_t& x3, Float_t& x4)
+void AliMUONTriggerSegmentation::IntegrationLimits(Float_t& x1,Float_t& x2,
+ Float_t& x3, Float_t& x4)
{
// need to return (only) x4 = dist. betwwen the hit and the closest border of
// the current strip
Float_t xstrip,ystrip;
GetPadI(fXhit,fYhit,ix,iy);
GetPadC(ix,iy,xstrip,ystrip);
+ AliDebug(1,Form("fXhit,Yhit=%e,%e xstrip,ystrip=%e,%e\n",
+ fXhit,fYhit,xstrip,ystrip));
x1= (fBending) ? fYhit : fXhit; // hit y (bending) / x (!bending) position
x2= (fBending) ? ystrip : xstrip; // y or x coord. of the main strip
x3= (fBending) ? fY : fX; // current strip real y or x coord.
}
// dist. between the hit and the closest border of the current strip
x4 = (TMath::Abs(max-x1) > TMath::Abs(min-x1)) ?
- TMath::Abs(min-x1):TMath::Abs(max-x1);
-// printf("fBending x1 x3 min max x4 %i %f %f %f %f %f\n",fBending,x1,x3,min,max,x4);
+ TMath::Abs(min-x1):TMath::Abs(max-x1);
+
+ AliDebug(1,Form("Bending %d x1=%e x2=%e x3=%e x4=%e xmin,max=%e,%e\n",
+ fBending,x1,x2,x3,x4,min,max));
}
fId = detectionElementId;
}
-
+//_____________________________________________________________________________
+void
+AliMUONTriggerSegmentation::Print(Option_t*) const
+{
+ cout << "fId=" << fId << " fBending=" << fBending << " fNsec="
+ << fNsec << " Nx,Ny=" << fNpx << "," << fNpy
+ << " LineNumber=" << fLineNumber
+ << " fRpcHalfSize(X,Y)=" << fRpcHalfXsize << "," << fRpcHalfYsize
+ << endl;
+
+ for (Int_t iModule=0; iModule<fNsec; iModule++)
+ {
+ cout << "Module " << iModule
+ << " xmin,xmax=" << fModuleXmin[iModule]
+ << "," << fModuleXmax[iModule]
+ << " ymin=" << fModuleYmin[iModule]
+ << " StripSize(X,Y)=(" << fStripXsize[iModule] << ","
+ << fStripYsize[iModule] << ")"
+ << endl;
+ }
+}