ATLAS Offline Software
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 // Get the systematic definitions from here
8 
9 namespace CP {
10 
13  if (m_wp == "Default")
14  m_wp = m_isPFlow ? "Tight" : "Medium";
15  if (m_file == "Default")
16  m_file = "JetJvtEfficiency/Moriond2018/JvtSFFile_" +
17  std::string(m_isPFlow ? "EMPFlow" : "EMTopo") + "Jets.root";
19  if (!addAffectingSystematic(JvtEfficiencyUp, true) ||
20  !addAffectingSystematic(JvtEfficiencyDown, true)) {
21  ATH_MSG_ERROR("failed to set up NNJvt systematics");
22  return StatusCode::FAILURE;
23  }
24  return StatusCode::SUCCESS;
25  }
26 
28  if (sys.find(JvtEfficiencyUp) != sys.end())
30  else if (sys.find(JvtEfficiencyDown) != sys.end())
31  m_appliedSysSigma = -1;
32  else
34  return StatusCode::SUCCESS;
35  }
36 } // namespace CP
CP::JvtEfficiencyToolBase::m_appliedSysSigma
int m_appliedSysSigma
Definition: JvtEfficiencyToolBase.h:61
CP::JvtEfficiencyToolBase::initHists
StatusCode initHists(const std::string &file, const std::string &wp)
Read the input histograms. Passing an empty 'file' string uses dummy SFs.
Definition: JvtEfficiencyToolBase.cxx:85
CP::JvtEfficiencyTool::m_file
Gaudi::Property< std::string > m_file
Definition: JvtEfficiencyTool.h:29
CP::SystematicSet
Class to wrap a set of SystematicVariations.
Definition: SystematicSet.h:31
JvtEfficiencyTool.h
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
mapkey::sys
@ sys
Definition: TElectronEfficiencyCorrectionTool.cxx:42
CP::JvtEfficiencyTool::m_wp
Gaudi::Property< std::string > m_wp
Definition: JvtEfficiencyTool.h:27
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
CP::JvtEfficiencyTool::sysApplySystematicVariation
virtual StatusCode sysApplySystematicVariation(const CP::SystematicSet &sys) override
effects: configure this tool for the given list of systematic variations.
Definition: JvtEfficiencyTool.cxx:27
CP::JvtEfficiencyToolBase::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition: JvtEfficiencyToolBase.cxx:31
CP::SystematicsTool::addAffectingSystematic
StatusCode addAffectingSystematic(const SystematicVariation &systematic, bool recommended)
effects: add a systematic to the list of registered systematics.
Definition: SystematicsTool.cxx:112
CP::JvtEfficiencyTool::m_isPFlow
Gaudi::Property< bool > m_isPFlow
Definition: JvtEfficiencyTool.h:23
IJetJvtEfficiency.h
CP::JvtEfficiencyTool::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition: JvtEfficiencyTool.cxx:11