From 76c174e94b1f0b099cba0cb02c9c0f6bd3573d20 Mon Sep 17 00:00:00 2001 From: BrieucF Date: Tue, 9 Jul 2024 17:07:31 +0200 Subject: [PATCH] [ReadCaloCrosstalkMap] Add a debug message when skipping initilization --- RecCalorimeter/src/components/ReadCaloCrosstalkMap.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/RecCalorimeter/src/components/ReadCaloCrosstalkMap.cpp b/RecCalorimeter/src/components/ReadCaloCrosstalkMap.cpp index b5791a65..ed29da31 100644 --- a/RecCalorimeter/src/components/ReadCaloCrosstalkMap.cpp +++ b/RecCalorimeter/src/components/ReadCaloCrosstalkMap.cpp @@ -16,7 +16,10 @@ StatusCode ReadCaloCrosstalkMap::initialize() { // prevent to initialize the tool if not intended (input file path empty) // otherwise things will crash if m_fileName is not available // not a perfect solution but tools seems to not be meant to be optional - if (m_fileName == "") return StatusCode::SUCCESS; + if (m_fileName == "") { + debug() << "Empty 'fileName' provided, it means cross-talk map is not needed, exitting ReadCaloCrosstalkMap initilization" << endmsg; + return StatusCode::SUCCESS; + } StatusCode sc = GaudiTool::initialize(); info() <<"Loading crosstalk map..." << endmsg;