Commit cb7b2722 authored by Jens Kroeger's avatar Jens Kroeger
Browse files

AnalysisCLICpix: replacing hardcoded lines by m_detector->hasIntercept() which...

AnalysisCLICpix: replacing hardcoded lines by m_detector->hasIntercept() which also takes care of the tolerance and the offset of 0.5
parent 650a714b
......@@ -309,9 +309,10 @@ StatusCode AnalysisCLICpix::run(std::shared_ptr<Clipboard> clipboard) {
// Cut on the track intercept - this makes sure that it actually went
// through the chip
if(chipInterceptCol < 0.5 || chipInterceptRow < 0.5 || chipInterceptCol > (m_detector->nPixels().X() - 0.5) ||
chipInterceptRow > (m_detector->nPixels().Y() - 0.5))
if(!m_detector->hasIntercept(track, 0.5)) {
LOG(DEBUG) << " - track outside DUT area";
continue;
}
// Check if the hit is near a masked pixel
bool hitMasked = checkMasked(chipInterceptRow, chipInterceptCol);
......
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