ATLAS Offline Software
Loading...
Searching...
No Matches
JvtEfficiencyTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7namespace CP {
8
11 if (m_wp == "Default")
12 m_wp = m_isPFlow ? "Tight" : "Medium";
13 if (m_file == "Default")
14 m_file = "JetJvtEfficiency/Moriond2018/JvtSFFile_" +
15 std::string(m_isPFlow ? "EMPFlow" : "EMTopo") + "Jets.root";
19 ATH_MSG_ERROR("failed to set up NNJvt systematics");
20 return StatusCode::FAILURE;
21 }
22 return StatusCode::SUCCESS;
23 }
24
26 if (sys.find(JvtEfficiencyUp) != sys.end())
28 else if (sys.find(JvtEfficiencyDown) != sys.end())
30 else
32 return StatusCode::SUCCESS;
33 }
34} // namespace CP
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
StatusCode initHists(const std::string &file, const std::string &wp)
Read the input histograms. Passing an empty 'file' string uses dummy SFs.
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Gaudi::Property< bool > m_isPFlow
Gaudi::Property< std::string > m_wp
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
virtual StatusCode sysApplySystematicVariation(const CP::SystematicSet &sys) override
effects: configure this tool for the given list of systematic variations.
Gaudi::Property< std::string > m_file
Class to wrap a set of SystematicVariations.
StatusCode addAffectingSystematic(const SystematicVariation &systematic, bool recommended)
effects: add a systematic to the list of registered systematics.
Select isolated Photons, Electrons and Muons.
static const SystematicVariation JvtEfficiencyUp("JET_JvtEfficiency", 1)
static const SystematicVariation JvtEfficiencyDown("JET_JvtEfficiency", -1)