24 m_isolationCalibFile(
"IsolationSelection/v1/MC15_Z_Jpsi_cutMap.root") {
34 ATH_MSG_INFO(
"top::IsolationCPTools: no need to initialise for mini-xAOD");
35 return StatusCode::SUCCESS;
39 ATH_MSG_INFO(
"top::IsolationCPTools: no need to initialise since neither using electrons nor muons");
40 return StatusCode::SUCCESS;
43 return StatusCode::SUCCESS;
49 std::string iso_corr_tool_name =
"IsolationCorrectionTool";
50 if (asg::ToolStore::contains<CP::IIsolationCorrectionTool>(iso_corr_tool_name)) {
51 m_isolationCorr = asg::ToolStore::get<CP::IIsolationCorrectionTool>(iso_corr_tool_name);
55 "Failed to setProperty IsMC");
57 "Failed to setProperty AFII_corr");
58 if (
m_config->useEgammaLeakageCorrection()) {
59 top::check(asg::setProperty(isolationCorr,
"Apply_SC_leakcorr",
true),
60 "Failed to setProperty Apply_SC_leakcorr");
61 top::check(asg::setProperty(isolationCorr,
"Apply_etaEDParPU_correction",
true),
62 "Failed to setProperty Apply_etaEDParPU_correction");
64 top::check(asg::setProperty(isolationCorr,
"Apply_etaEDPar_mc_correction",
m_config->isMC()),
65 "Failed to setProperty Apply_etaEDPar_mc_correction");
76 return StatusCode::SUCCESS;
80 for (
const std::string& isoWP :
WPs) {
81 std::string tool_name =
"IsolationTool_" + objectWPtype +
"_" + isoWP;
82 ATH_MSG_INFO(
"Initializing isolation tool: " << tool_name);
83 if (!asg::ToolStore::contains<CP::IIsolationSelectionTool>(tool_name)) {
86 "Failed to set CalibFileName for " + tool_name);
88 "Failed to set " + objectWPtype +
" for " + tool_name);
93 return StatusCode::SUCCESS;