ATLAS Offline Software
BTaggingEfficiencyAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 
8 #ifndef F_TAG_ANALYSIS_ALGORITHMS__B_TAGGING_EFFICIENCY_ALG_H
9 #define F_TAG_ANALYSIS_ALGORITHMS__B_TAGGING_EFFICIENCY_ALG_H
10 
19 #include <xAODJet/JetContainer.h>
21 #include <memory>
22 
23 namespace CP
24 {
26 
28  {
30  public:
32  StatusCode initialize () override;
33  StatusCode execute () override;
34 
35 
36 
38  private:
39  ToolHandle<IBTaggingEfficiencyTool> m_efficiencyTool {this, "efficiencyTool", "BTaggingEfficiencyTool", "the calibration and smearing tool we apply"};
40 
42  private:
44 
46  private:
48  this, "jets", "Jets", "the jet collection to run on"};
49 
51  private:
53  this, "preselection", "", "the preselection to apply"};
54 
56  private:
58 
60  private:
62  this, "scaleFactorDecoration", "", "the decoration for the b-tagging efficiency scale factor"};
63 
65  private:
67  this, "selectionDecoration", "", "the decoration for the asg selection"};
68 
70  private:
71  Gaudi::Property<bool> m_onlyEfficiency {this, "onlyEfficiency", false, "whether only to calculate efficiencies"};
72 
74  private:
75  Gaudi::Property<bool> m_onlyInefficiency {this, "onlyInefficiency", false, "whether only to calculate inefficiencies"};
76  };
77 }
78 
79 #endif
OutOfValidityHelper.h
PropertyWrapper.h
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition: SysListHandle.h:33
SysWriteDecorHandle.h
CP::OutOfValidityHelper
a helper to translate a CP::CorrectionCode into a ::StatusCode
Definition: OutOfValidityHelper.h:73
SysListHandle.h
CP::BTaggingEfficiencyAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition: BTaggingEfficiencyAlg.h:43
CP::BTaggingEfficiencyAlg::m_onlyEfficiency
Gaudi::Property< bool > m_onlyEfficiency
only run the efficency for all jets
Definition: BTaggingEfficiencyAlg.h:71
CP::BTaggingEfficiencyAlg::m_scaleFactorDecoration
SysWriteDecorHandle< float > m_scaleFactorDecoration
the decoration for the b-tagging scale factor
Definition: BTaggingEfficiencyAlg.h:61
CP::SysReadHandle< xAOD::JetContainer >
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
EL::AnaAlgorithm::AnaAlgorithm
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition: AnaAlgorithm.cxx:40
SysReadHandle.h
AnaAlgorithm.h
CP::BTaggingEfficiencyAlg::execute
StatusCode execute() override
Definition: BTaggingEfficiencyAlg.cxx:52
IBTaggingEfficiencyTool.h
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition: AnaAlgorithm.h:73
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CP::BTaggingEfficiencyAlg::m_efficiencyTool
ToolHandle< IBTaggingEfficiencyTool > m_efficiencyTool
the smearing tool
Definition: BTaggingEfficiencyAlg.h:39
SysReadSelectionHandle.h
CP::BTaggingEfficiencyAlg::m_selectionHandle
SysReadSelectionHandle m_selectionHandle
the decoration for the b-tagging selection
Definition: BTaggingEfficiencyAlg.h:66
CP::BTaggingEfficiencyAlg
an algorithm for calling IBTaggingEfficiencyTool
Definition: BTaggingEfficiencyAlg.h:28
CP::BTaggingEfficiencyAlg::m_outOfValidity
OutOfValidityHelper m_outOfValidity
the helper for OutOfValidity results
Definition: BTaggingEfficiencyAlg.h:57
CP::BTaggingEfficiencyAlg::initialize
StatusCode initialize() override
Definition: BTaggingEfficiencyAlg.cxx:23
JetContainer.h
CP::SysReadSelectionHandle
a data handle for reading systematically varied selection properties from objects
Definition: SysReadSelectionHandle.h:32
CP::BTaggingEfficiencyAlg::m_jetHandle
SysReadHandle< xAOD::JetContainer > m_jetHandle
the jet collection we run on
Definition: BTaggingEfficiencyAlg.h:47
CP::BTaggingEfficiencyAlg::m_onlyInefficiency
Gaudi::Property< bool > m_onlyInefficiency
only run the inefficency for all jets
Definition: BTaggingEfficiencyAlg.h:75
CP::SysWriteDecorHandle< float >
CP::BTaggingEfficiencyAlg::m_preselection
SysReadSelectionHandle m_preselection
the preselection we apply to our input
Definition: BTaggingEfficiencyAlg.h:52