49 #endif // EDM_ML_DEBUG 77 fractionY = newybin /
m_pitchy - iybin;
80 mpY = fractionY + iybin;
84 LogDebug(
"RectangularPixelPhase2Topology") <<
" very bad, newbiny " << iybin0 <<
"\n" 86 << iybin <<
" " << fractionY <<
" " << iybin0 <<
" " <<
m_COLS_PER_ROC;
88 #endif // EDM_ML_DEBUG 93 LogDebug(
"RectangularPixelPhase2Topology")
94 <<
" bad pix y " << mpY <<
"\n" 95 <<
py <<
" " <<
m_yoffset <<
" " <<
m_pitchy <<
" " << newybin <<
" " << iybin <<
" " << fractionY <<
" " 98 #endif // EDM_ML_DEBUG 127 fractionX = newxbin /
m_pitchx - ixbin;
130 mpX = fractionX + ixbin;
136 LogDebug(
"RectangularPixelPhase2Topology")
137 <<
" very bad, newbinx " << ixbin <<
"\n" 138 <<
px <<
" " <<
m_xoffset <<
" " <<
m_pitchx <<
" " << newxbin <<
" " << ixbin <<
" " << fractionX;
140 #endif // EDM_ML_DEBUG 145 LogDebug(
"RectangularPixelPhase2Topology")
146 <<
" bad pix x " << mpX <<
"\n" 147 <<
px <<
" " <<
m_xoffset <<
" " <<
m_pitchx <<
" " << newxbin <<
" " << ixbin <<
" " << fractionX;
149 #endif // EDM_ML_DEBUG 151 return std::pair<float, float>(mpX, mpY);
167 debugstr <<
" wrong mp y, fix " << mpy <<
" " << 0 <<
"\n";
175 debugstr <<
" wrong mp x, fix " << mpx <<
" " << 0 <<
"\n";
184 #endif // EDM_ML_DEBUG 198 int binoffx =
int(mpx);
199 float fractionX = mpx -
float(binoffx);
201 int ispix_secondhalf_x = 0;
205 ispix_secondhalf_x = 1;
215 LogDebug(
"RectangularPixelPhase2Topology")
216 <<
" very bad, binx " << binoffx <<
"\n" 217 << mpx <<
" " << binoffx <<
" " << fractionX <<
" " << local_pitchx <<
" " <<
m_xoffset <<
"\n";
222 float lpX =
float(binoffx *
m_pitchx) + fractionX * local_pitchx +
227 if (lpX < m_xoffset || lpX > (-
m_xoffset)) {
228 LogDebug(
"RectangularPixelPhase2Topology")
229 <<
" bad lp x " << lpX <<
"\n" 230 << mpx <<
" " << binoffx <<
" " << fractionX <<
" " << local_pitchx <<
" " <<
m_xoffset;
232 #endif // EDM_ML_DEBUG 240 int binoffy =
int(mpy);
241 float fractionY = mpy -
float(binoffy);
243 int ispix_secondhalf_y = 0;
247 ispix_secondhalf_y = 1;
257 LogDebug(
"RectangularPixelPhase2Topology")
258 <<
" very bad, biny " << binoffy <<
"\n" 259 << mpy <<
" " << binoffy <<
" " << fractionY <<
" " << local_pitchy <<
" " <<
m_yoffset;
264 float lpY =
float(binoffy *
m_pitchy) + fractionY * local_pitchy +
269 if (lpY < m_yoffset || lpY > (-
m_yoffset)) {
270 LogDebug(
"RectangularPixelPhase2Topology")
271 <<
" bad lp y " << lpY <<
"\n" 272 << mpy <<
" " << binoffy <<
" " << fractionY <<
" " << local_pitchy <<
" " <<
m_yoffset;
274 #endif // EDM_ML_DEBUG 283 int binoffy =
int(mp.
y());
288 int binoffx =
int(mp.
x());
Point3DBase< Scalar, LocalTag > LocalPoint
float localX(const float mpX) const override
bool isItBigPixelInY(const int iybin) const override
MeasurementError measurementError(const LocalPoint &, const LocalError &) const override
std::pair< float, float > pixel(const LocalPoint &p) const override
LocalPoint localPosition(const MeasurementPoint &mp) const override
bool isItBigPixelInX(const int ixbin) const override
float localY(const float mpY) const override
LocalError localError(const MeasurementPoint &, const MeasurementError &) const override