ATLAS Offline Software
MuonTriggerEfficiencyScaleFactorAlg.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 MUON_ANALYSIS_ALGORITHMS__MUON_TRIGGER_EFFICIENCY_SCALE_FACTOR_ALG_H
9 #define MUON_ANALYSIS_ALGORITHMS__MUON_TRIGGER_EFFICIENCY_SCALE_FACTOR_ALG_H
10 
20 #include <xAODMuon/MuonContainer.h>
22 
23 namespace CP
24 {
26 
28  {
30  public:
32  StatusCode initialize () override;
33  StatusCode execute () override;
34 
35 
36 
38  private:
39  ToolHandle<IMuonTriggerScaleFactors> m_efficiencyScaleFactorTool {this, "efficiencyScaleFactorTool", "CP::MuonTriggerScaleFactors", "the trigger efficiency scale factor tool we apply"};
40 
42  private:
44 
46  private:
48  this, "muons", "Muons", "the muon collection to run on"};
49 
51  private:
53  this, "eventInfo", "EventInfo", "the EventInfo we use"};
54 
56  private:
58  this, "preselection", "", "the preselection to apply"};
59 
61  private:
63 
65  private:
66  Gaudi::Property<std::string> m_trigger {this, "trigger", "", "trigger or trigger leg to calculate efficiency for"};
67 
69  private:
70  Gaudi::Property<uint32_t> m_minRunNumber {this, "minRunNumber", 0, "minimum run number for the trigger or trigger leg to calculate efficiency for"};
71 
73  private:
74  Gaudi::Property<uint32_t> m_maxRunNumber {this, "maxRunNumber", 999999, "maximum run number for the trigger or trigger leg to calculate efficiency for"};
75 
77  private:
79  this, "scaleFactorDecoration", "", "the decoration for the muon efficiency scale factor"};
80 
82  private:
84  this, "mcEfficiencyDecoration", "", "the decoration for the muon MC efficiency"};
85 
87  private:
89  this, "dataEfficiencyDecoration", "", "the decoration for the muon data efficiency"};
90  };
91 }
92 
93 #endif
OutOfValidityHelper.h
CP::MuonTriggerEfficiencyScaleFactorAlg::m_outOfValidity
OutOfValidityHelper m_outOfValidity
the helper for OutOfValidity results
Definition: MuonTriggerEfficiencyScaleFactorAlg.h:62
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::MuonTriggerEfficiencyScaleFactorAlg::m_dataEfficiencyDecoration
SysWriteDecorHandle< float > m_dataEfficiencyDecoration
the decoration for the muon data efficiency
Definition: MuonTriggerEfficiencyScaleFactorAlg.h:88
CP::MuonTriggerEfficiencyScaleFactorAlg::m_minRunNumber
Gaudi::Property< uint32_t > m_minRunNumber
minimum run number this trigger is valid for
Definition: MuonTriggerEfficiencyScaleFactorAlg.h:70
CP::MuonTriggerEfficiencyScaleFactorAlg::m_muonHandle
SysReadHandle< xAOD::MuonContainer > m_muonHandle
the muon collection we run on
Definition: MuonTriggerEfficiencyScaleFactorAlg.h:47
CP::SysReadHandle< xAOD::MuonContainer >
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
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition: AnaAlgorithm.h:73
CP::MuonTriggerEfficiencyScaleFactorAlg::initialize
StatusCode initialize() override
Definition: MuonTriggerEfficiencyScaleFactorAlg.cxx:26
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IMuonTriggerScaleFactors.h
CP::MuonTriggerEfficiencyScaleFactorAlg::m_eventInfoHandle
SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the EventInfo collection we use
Definition: MuonTriggerEfficiencyScaleFactorAlg.h:52
CP::MuonTriggerEfficiencyScaleFactorAlg::m_preselection
SysReadSelectionHandle m_preselection
the preselection we apply to our input
Definition: MuonTriggerEfficiencyScaleFactorAlg.h:57
CP::MuonTriggerEfficiencyScaleFactorAlg::m_trigger
Gaudi::Property< std::string > m_trigger
trigger to run efficiency for
Definition: MuonTriggerEfficiencyScaleFactorAlg.h:66
CP::MuonTriggerEfficiencyScaleFactorAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition: MuonTriggerEfficiencyScaleFactorAlg.h:43
SysReadSelectionHandle.h
CP::MuonTriggerEfficiencyScaleFactorAlg::m_efficiencyScaleFactorTool
ToolHandle< IMuonTriggerScaleFactors > m_efficiencyScaleFactorTool
the smearing tool
Definition: MuonTriggerEfficiencyScaleFactorAlg.h:39
CP::MuonTriggerEfficiencyScaleFactorAlg::m_maxRunNumber
Gaudi::Property< uint32_t > m_maxRunNumber
maximum run number this trigger is valid for
Definition: MuonTriggerEfficiencyScaleFactorAlg.h:74
EventInfo.h
CP::MuonTriggerEfficiencyScaleFactorAlg::execute
StatusCode execute() override
Definition: MuonTriggerEfficiencyScaleFactorAlg.cxx:57
MuonContainer.h
CP::MuonTriggerEfficiencyScaleFactorAlg::m_scaleFactorDecoration
SysWriteDecorHandle< float > m_scaleFactorDecoration
the decoration for the muon scale factor
Definition: MuonTriggerEfficiencyScaleFactorAlg.h:78
CP::SysReadSelectionHandle
a data handle for reading systematically varied selection properties from objects
Definition: SysReadSelectionHandle.h:32
CP::MuonTriggerEfficiencyScaleFactorAlg::m_mcEfficiencyDecoration
SysWriteDecorHandle< float > m_mcEfficiencyDecoration
the decoration for the muon mc efficiency
Definition: MuonTriggerEfficiencyScaleFactorAlg.h:83
CP::MuonTriggerEfficiencyScaleFactorAlg
an algorithm for calling IMuonTriggerScaleFactors
Definition: MuonTriggerEfficiencyScaleFactorAlg.h:28
CP::SysWriteDecorHandle< float >