Commit 8ac580d7 authored by Lennart Huth's avatar Lennart Huth
Browse files

added number of pixels extracted from config to warning log

parent 4d31084e
......@@ -71,7 +71,8 @@ StatusCode EventLoaderEUDAQ::run(std::shared_ptr<Clipboard> clipboard) {
auto row = static_cast<int>(plane.GetY(ipix));
if(col >= detector->nPixels().X() || row >= detector->nPixels().Y()) {
LOG(WARNING) << "Pixel address " << col << ", " << row << " is outside of pixel matrix.";
LOG(WARNING) << "Pixel address " << col << ", " << row << " is outside of pixel matrix with size ( "
<< detector->nPixels().X() << ", " << detector->nPixels().Y() << ")";
}
// Check if this pixel is masked
......
......@@ -333,7 +333,8 @@ std::shared_ptr<PixelVector> EventLoaderEUDAQ2::get_pixel_data(std::shared_ptr<e
auto ts = static_cast<double>(plane.GetTimestamp(i)) / 1000 + m_detector->timingOffset();
if(col >= m_detector->nPixels().X() || row >= m_detector->nPixels().Y()) {
LOG(WARNING) << "Pixel address " << col << ", " << row << " is outside of pixel matrix.";
LOG(WARNING) << "Pixel address " << col << ", " << row << " is outside of pixel matrix with size ( "
<< m_detector->nPixels().X() << ", " << m_detector->nPixels().Y() << ")";
}
if(m_detector->masked(col, row)) {
......
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