Skip to content
Snippets Groups Projects
Commit c338daef authored by Nils Erik Krumnack's avatar Nils Erik Krumnack Committed by Atlas Nightlybuild
Browse files

Merge branch '21.2-AT-METbugfix' into '21.2'

fixing bug in MET initialization

See merge request !37887

(cherry picked from commit 73261ae3)

65da2c87 fixing bug in MET initialization
parent 2cbc83c2
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!37927Sweeping !37887 from 21.2 to master. fixing bug in MET initialization
Pipeline #2067012 passed
......@@ -204,30 +204,30 @@ namespace top {
top::check(jetUpdateJvtTool->initialize(), "Failed to initialize");
m_jetUpdateJvtTool = jetUpdateJvtTool;
}
///-- Calculate fJVT --///
//Only setup fJVT tool if user actually wants it
if (m_config->doForwardJVTinMET() || m_config->getfJVTWP() != "None") {
const std::string fjvt_tool_name = "JetSelectfJvtTool";
if (asg::ToolStore::contains<IJetModifier>(fjvt_tool_name)) {
m_jetSelectfJvtTool = asg::ToolStore::get<IJetModifier>(fjvt_tool_name);
m_jetSelectfJvtTool = asg::ToolStore::get<IJetModifier>(fjvt_tool_name);
} else {
IJetModifier* JetSelectfJvtTool = new JetForwardJvtTool(fjvt_tool_name);
top::check(asg::setProperty(JetSelectfJvtTool, "JvtMomentName", "AnalysisTop_JVT"), //fJVT uses JVT decision
"Failed to set JvtMomentName for JetForwardJvtTool");
//Default fJVT WP is medium but this can't be used with default Tight MET WP
//MET WP takes precidence so making ATop default fJVT=Tight
if (m_config->getfJVTWP() != "Medium"){
top::check(asg::setProperty(JetSelectfJvtTool, "UseTightOP", true),
"Failed to set UseTightOP for JetForwardJvtTool");
}
top::check(asg::setProperty(JetSelectfJvtTool, "OutputDec", "AnalysisTop_fJVTdecision"), //Adds custom decorator, 'AnalysisTop_fJVTdecision', to all jets
"Failed to set OutputDec for JetForwardJvtTool");
top::check(JetSelectfJvtTool->initialize(), "Failed to initialize " + fjvt_tool_name);
m_jetSelectfJvtTool = JetSelectfJvtTool;
IJetModifier* JetSelectfJvtTool = new JetForwardJvtTool(fjvt_tool_name);
top::check(asg::setProperty(JetSelectfJvtTool, "JvtMomentName", "AnalysisTop_JVT"), //fJVT uses JVT decision
"Failed to set JvtMomentName for JetForwardJvtTool");
//Default fJVT WP is medium but this can't be used with default Tight MET WP
//MET WP takes precidence so making ATop default fJVT=Tight
if (m_config->getfJVTWP() != "Medium"){
top::check(asg::setProperty(JetSelectfJvtTool, "UseTightOP", true),
"Failed to set UseTightOP for JetForwardJvtTool");
}
top::check(asg::setProperty(JetSelectfJvtTool, "OutputDec", "AnalysisTop_fJVTdecision"), //Adds custom decorator, 'AnalysisTop_fJVTdecision', to all jets
"Failed to set OutputDec for JetForwardJvtTool");
top::check(JetSelectfJvtTool->initialize(), "Failed to initialize " + fjvt_tool_name);
m_jetSelectfJvtTool = JetSelectfJvtTool;
}
}
......@@ -540,14 +540,14 @@ namespace top {
}
if (m_config->doForwardJVTinMET()) {
if (m_config->getfJVTWP() == "Medium") {
top::check(metMaker->setProperty("JetSelection", "Tenacious"), "Failed to set METMaker JetSelection to Tenacious");
}
if (m_config->getfJVTWP() == "Medium") {
top::check(metMaker->setProperty("JetSelection", "Tenacious"), "Failed to set METMaker JetSelection to Tenacious");
}
top::check(metMaker->setProperty("JetRejectionDec","AnalysisTop_fJVTdecision"), "Failed to set METMaker JetRejectionDec to AnalysisTop_fJVTdecision");
top::check(metMaker->initialize(), "Failed to initialize");
metMaker->msg().setLevel(MSG::INFO);
m_met_maker = metMaker;
}
top::check(metMaker->initialize(), "Failed to initialize");
metMaker->msg().setLevel(MSG::INFO);
m_met_maker = metMaker;
}
// MET Systematics tool
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment