ATLAS Offline Software
FJvtEfficiencyTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef JETJVTEFFICIENCY_FJVTEFFICIENCYTOOL_H
6 #define JETJVTEFFICIENCY_FJVTEFFICIENCYTOOL_H
7 
12 
13 namespace CP {
16  public:
17  FJvtEfficiencyTool(const std::string &name);
18  virtual ~FJvtEfficiencyTool() override = default;
19 
20  virtual StatusCode initialize() override;
21 
23 
24  virtual CorrectionCode
25  getEfficiencyScaleFactor(const xAOD::Jet &jet, float &sf) const override;
26 
27  virtual CorrectionCode
28  getInefficiencyScaleFactor(const xAOD::Jet &jet, float &sf) const override;
29 
30  private:
32  this, "EventInfoKey", "EventInfo", "The event info"};
33  Gaudi::Property<std::string> m_wp{
34  this, "WorkingPoint", "Loose", "The working point to use."};
35  Gaudi::Property<std::string> m_file{
36  this, "SFFile", "JetJvtEfficiency/May2020/fJvtSFFile.EMPFlow.root",
37  "The file containing the SF histograms. Set to the empty string to use dummy scale "
38  "factors."};
39  };
40 } // namespace CP
41 
42 #endif //> !JETJVTEFFICIENCY_FJVTEFFICIENCYTOOL_H
CP::FJvtEfficiencyTool::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition: FJvtEfficiencyTool.cxx:18
CP::FJvtEfficiencyTool::sysApplySystematicVariation
virtual StatusCode sysApplySystematicVariation(const CP::SystematicSet &sys) override
effects: configure this tool for the given list of systematic variations.
Definition: FJvtEfficiencyTool.cxx:30
PropertyWrapper.h
CP::FJvtEfficiencyTool::FJvtEfficiencyTool
FJvtEfficiencyTool(const std::string &name)
Definition: FJvtEfficiencyTool.cxx:13
CP::SystematicSet
Class to wrap a set of SystematicVariations.
Definition: SystematicSet.h:31
SG::ReadHandleKey< xAOD::EventInfo >
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
CP::FJvtEfficiencyTool::getInefficiencyScaleFactor
virtual CorrectionCode getInefficiencyScaleFactor(const xAOD::Jet &jet, float &sf) const override
Calculate the inefficiency scale factor for the provided jet.
Definition: FJvtEfficiencyTool.cxx:65
mapkey::sys
@ sys
Definition: TElectronEfficiencyCorrectionTool.cxx:42
CP::IJvtEfficiencyTool
Definition: IJvtEfficiencyTool.h:16
CP::JvtEfficiencyToolBase
Definition: JvtEfficiencyToolBase.h:20
CP::FJvtEfficiencyTool::m_evtInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_evtInfoKey
Definition: FJvtEfficiencyTool.h:31
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
JvtEfficiencyToolBase.h
CP::FJvtEfficiencyTool
Definition: FJvtEfficiencyTool.h:14
CP::FJvtEfficiencyTool::~FJvtEfficiencyTool
virtual ~FJvtEfficiencyTool() override=default
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
CP::FJvtEfficiencyTool::m_wp
Gaudi::Property< std::string > m_wp
Definition: FJvtEfficiencyTool.h:33
EventInfo.h
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
CP::FJvtEfficiencyTool::m_file
Gaudi::Property< std::string > m_file
Definition: FJvtEfficiencyTool.h:35
mapkey::sf
@ sf
Definition: TElectronEfficiencyCorrectionTool.cxx:38
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition: AsgToolMacros.h:68
CP::CorrectionCode
Return value from object correction CP tools.
Definition: CorrectionCode.h:31
CP::FJvtEfficiencyTool::getEfficiencyScaleFactor
virtual CorrectionCode getEfficiencyScaleFactor(const xAOD::Jet &jet, float &sf) const override
Calculate the efficiency scale factor for the provided jet.
Definition: FJvtEfficiencyTool.cxx:41