Skip to content

Commit

Permalink
[ReadCaloCrosstalkMap] Add a debug message when skipping initilization
Browse files Browse the repository at this point in the history
  • Loading branch information
BrieucF committed Jul 9, 2024
1 parent 4d68798 commit 76c174e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion RecCalorimeter/src/components/ReadCaloCrosstalkMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 76c174e

Please sign in to comment.