Commit 650a714b authored by Jens Kroeger's avatar Jens Kroeger
Browse files

Detector: added 0.5 offset to check if track intercept is outside of the chip...

Detector: added 0.5 offset to check if track intercept is outside of the chip (as the chip now reaches from -0.5 to nPixels-0.5
parent 6d287811
......@@ -291,9 +291,10 @@ bool Detector::hasIntercept(const Track* track, double pixelTolerance) const {
double column = this->getColumn(localIntercept);
// Check if the row and column are outside of the chip
// Chip reaches from -0.5 to nPixels-0.5
bool intercept = true;
if(row < pixelTolerance || row > (this->m_nPixels.Y() - pixelTolerance) || column < pixelTolerance ||
column > (this->m_nPixels.X() - pixelTolerance))
if(row < pixelTolerance - 0.5 || row > (this->m_nPixels.Y() - pixelTolerance - 0.5) || column < pixelTolerance - 0.5 ||
column > (this->m_nPixels.X() - pixelTolerance - 0.5))
intercept = false;
return intercept;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment