Skip to content
Snippets Groups Projects
Commit 7c954a25 authored by Edward Moyse's avatar Edward Moyse
Browse files

Merge branch 'inputMakerDebugFix' into 'master'

Fix logic in InputMakerBase::debugPrintOut()

See merge request atlas/athena!21301
parents e5a710b1 1e770969
No related branches found
No related tags found
No related merge requests found
...@@ -122,7 +122,13 @@ StatusCode InputMakerBase::debugPrintOut(const EventContext& context, const std: ...@@ -122,7 +122,13 @@ StatusCode InputMakerBase::debugPrintOut(const EventContext& context, const std:
for ( auto inputKey: decisionInputs() ) { for ( auto inputKey: decisionInputs() ) {
auto inputHandle = SG::makeHandle( inputKey, context ); auto inputHandle = SG::makeHandle( inputKey, context );
ATH_MSG_DEBUG(" " << inputKey.key() << " " << (inputHandle.isValid()? "valid": "not valid" ) ); ATH_MSG_DEBUG(" " << inputKey.key() << " " << (inputHandle.isValid()? "valid": "not valid" ) );
if (inputHandle.isValid()) validInput++; if (inputHandle.isValid()) {
if (inputHandle->size() > 0) {
validInput++;
} else {
ATH_MSG_DEBUG(" " << inputKey.key() << " actually NOT valid due to size() == 0");
}
}
} }
size_t validOutput=0; size_t validOutput=0;
ATH_MSG_DEBUG( "number of implicit ReadHandles for input decisions is " << decisionInputs().size() << ", " << validInput << " are valid" ); ATH_MSG_DEBUG( "number of implicit ReadHandles for input decisions is " << decisionInputs().size() << ", " << validInput << " are valid" );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment