Skip to content

Commit

Permalink
Bug fixes for deadHVTool
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Hank committed Nov 13, 2024
1 parent c38ee56 commit 9d3b378
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Root/ElectronSelector.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -405,11 +405,12 @@ EL::StatusCode ElectronSelector :: initialize ()


// Set up the dead HV Removal Tool
if (m_applyDeadHVCellVeto)
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!");
Expand Down
2 changes: 1 addition & 1 deletion xAODAnaHelpers/ElectronSelector.h
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ class ElectronSelector : public xAH::Algorithm
ElectronCutBasedPIDManager* m_el_CutBased_PIDManager = nullptr; //!

/// @brief tool that selects on dead HV from the 2016 run, according to https://twiki.cern.ch/twiki/bin/view/AtlasProtected/EGammaIdentificationRun2#Removal_of_Electron_Photon_clust
asg::AnaToolHandle<IAsgDeadHVCellRemovalTool> m_deadHVTool;
asg::AnaToolHandle<IAsgDeadHVCellRemovalTool> m_deadHVTool; //!

/* other private members */

Expand Down

0 comments on commit 9d3b378

Please sign in to comment.