ATLAS Offline Software
NNJvtEfficiencyTool.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 
14  if (!addAffectingSystematic(NNJvtEfficiencyUp, true) ||
15  !addAffectingSystematic(NNJvtEfficiencyDown, true)) {
16  ATH_MSG_ERROR("failed to set up NNJvt systematics");
17  return StatusCode::FAILURE;
18  }
19  return StatusCode::SUCCESS;
20  }
21 
23  if (sys.find(NNJvtEfficiencyUp) != sys.end())
25  else if (sys.find(NNJvtEfficiencyDown) != sys.end())
26  m_appliedSysSigma = -1;
27  else
29  return StatusCode::SUCCESS;
30  }
31 } // namespace CP
CP::JvtEfficiencyToolBase::m_appliedSysSigma
int m_appliedSysSigma
Definition: JvtEfficiencyToolBase.h:61
CP::NNJvtEfficiencyTool::m_file
Gaudi::Property< std::string > m_file
Definition: NNJvtEfficiencyTool.h:25
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::NNJvtEfficiencyTool::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition: NNJvtEfficiencyTool.cxx:11
CP::SystematicSet
Class to wrap a set of SystematicVariations.
Definition: SystematicSet.h:31
CP::NNJvtEfficiencyTool::sysApplySystematicVariation
virtual StatusCode sysApplySystematicVariation(const CP::SystematicSet &sys) override
effects: configure this tool for the given list of systematic variations.
Definition: NNJvtEfficiencyTool.cxx:22
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
mapkey::sys
@ sys
Definition: TElectronEfficiencyCorrectionTool.cxx:42
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::JvtEfficiencyToolBase::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition: JvtEfficiencyToolBase.cxx:31
CP::NNJvtEfficiencyTool::m_wp
Gaudi::Property< std::string > m_wp
Definition: NNJvtEfficiencyTool.h:23
CP::SystematicsTool::addAffectingSystematic
StatusCode addAffectingSystematic(const SystematicVariation &systematic, bool recommended)
effects: add a systematic to the list of registered systematics.
Definition: SystematicsTool.cxx:112
IJetJvtEfficiency.h
NNJvtEfficiencyTool.h