From 8f4e4cbbc88d46a064d4fd643b065b559b93bd59 Mon Sep 17 00:00:00 2001 From: Michael Holzbock Date: Wed, 30 Oct 2024 09:57:12 +0100 Subject: [PATCH] add warning if dead HV cell veto isn't applied --- Root/ElectronSelector.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Root/ElectronSelector.cxx b/Root/ElectronSelector.cxx index ab3f9cfbf..3f59b6081 100644 --- a/Root/ElectronSelector.cxx +++ b/Root/ElectronSelector.cxx @@ -405,11 +405,15 @@ EL::StatusCode ElectronSelector :: initialize () // Set up the dead HV Removal Tool - m_deadHVTool.setTypeAndName("AsgDeadHVCellRemovalTool/deadHVTool"); - if (m_deadHVTool.retrieve().isFailure()){ + if (m_applyDeadHVCellVeto) + m_deadHVTool.setTypeAndName("AsgDeadHVCellRemovalTool/deadHVTool"); + if (m_deadHVTool.retrieve().isFailure()){ ANA_MSG_ERROR("Failed to retrieve DeadHVTool, aborting"); return StatusCode::FAILURE; } + else { + ANA_MSG_WARNING("Not applying veto of dead HV cells although it's recommended - please double check!"); + } ANA_MSG_INFO( "ElectronSelector Interface succesfully initialized!" );