diff --git a/MuonSpectrometer/MuonValidation/MuonPRDTest/src/EDM_object.cxx b/MuonSpectrometer/MuonValidation/MuonPRDTest/src/EDM_object.cxx index 73694f6d0eac9de31a2f34839a1004c2151d4ec7..82f2aeac955d8d0915d3b00107f94f078e9649f4 100644 --- a/MuonSpectrometer/MuonValidation/MuonPRDTest/src/EDM_object.cxx +++ b/MuonSpectrometer/MuonValidation/MuonPRDTest/src/EDM_object.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ #include <vector> @@ -108,8 +108,11 @@ void EDM_object::update_efficiency ( int maximum_difference ) { uint nMatches = 0; size_t n_obj = size(); m_total += n_obj; + bool isMatched; for (uint i = 0; i < n_obj; ++i) { - nMatches += abs( m_channel->at(i) - m_matchedchannel->at(i) ) <= maximum_difference; + // default matched channel value is -10. If not set to any other value, it is always a mismatch + isMatched = m_matchedchannel->at(i) < 0 || abs( m_channel->at(i) - m_matchedchannel->at(i) ) <= maximum_difference; + nMatches += isMatched; } m_mismatches += (n_obj - nMatches); } diff --git a/MuonSpectrometer/MuonValidation/MuonPRDTest/src/NSWPRDValAlg.cxx b/MuonSpectrometer/MuonValidation/MuonPRDTest/src/NSWPRDValAlg.cxx index c5150dfd476ab81579e367146a882dc139550a83..a8cbecd3af7f23362522f80298b11f1f91af2cba 100644 --- a/MuonSpectrometer/MuonValidation/MuonPRDTest/src/NSWPRDValAlg.cxx +++ b/MuonSpectrometer/MuonValidation/MuonPRDTest/src/NSWPRDValAlg.cxx @@ -485,7 +485,7 @@ StatusCode NSWPRDValAlg::NSWMatchingAlg (EDM_object data0, EDM_object data1) { warningPrinted = true; } } else { - ATH_MSG_WARNING("No match found!"); + ATH_MSG_DEBUG("No match found!"); } } }