Skip to content

Commit

Permalink
add warning if dead HV cell veto isn't applied
Browse files Browse the repository at this point in the history
  • Loading branch information
miholzbo committed Oct 30, 2024
1 parent 3196344 commit 8f4e4cb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Root/ElectronSelector.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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!" );
Expand Down

0 comments on commit 8f4e4cb

Please sign in to comment.