ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
MuonAnalysisAlgorithms
MuonAnalysisAlgorithms
MuonEfficiencyScaleFactorAlg.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_EFFICIENCY_SCALE_FACTOR_ALG_H
9
#define MUON_ANALYSIS_ALGORITHMS__MUON_EFFICIENCY_SCALE_FACTOR_ALG_H
10
11
#include <
AnaAlgorithm/AnaAlgorithm.h
>
12
#include <
MuonAnalysisInterfaces/IMuonEfficiencyScaleFactors.h
>
13
#include <
SelectionHelpers/OutOfValidityHelper.h
>
14
#include <
SelectionHelpers/SysReadSelectionHandle.h
>
15
#include <
SystematicsHandles/SysReadHandle.h
>
16
#include <
SystematicsHandles/SysWriteDecorHandle.h
>
17
#include <
SystematicsHandles/SysListHandle.h
>
18
#include <
xAODEventInfo/EventInfo.h
>
19
#include <
xAODMuon/MuonContainer.h
>
20
21
namespace
CP
22
{
24
25
class
MuonEfficiencyScaleFactorAlg
final :
public
EL::AnaAlgorithm
26
{
28
public
:
29
using
EL::AnaAlgorithm::AnaAlgorithm
;
30
StatusCode
initialize
()
override
;
31
StatusCode
execute
(
const
EventContext& ctx)
override
;
32
33
34
36
private
:
37
ToolHandle<IMuonEfficiencyScaleFactors>
m_efficiencyScaleFactorTool
{
this
,
"efficiencyScaleFactorTool"
,
"CP::MuonTriggerScaleFactors"
,
"the trigger efficiency scale factor tool we apply"
};
38
40
private
:
41
SysListHandle
m_systematicsList
{
this
};
42
44
private
:
45
SysReadHandle<xAOD::MuonContainer>
m_muonHandle
{
46
this
,
"muons"
,
"Muons"
,
"the muon collection to run on"
};
47
49
private
:
50
SysReadHandle<xAOD::EventInfo>
m_eventInfoHandle
{
51
this
,
"eventInfo"
,
"EventInfo"
,
"the EventInfo we use"
};
52
54
private
:
55
SysReadSelectionHandle
m_preselection
{
56
this
,
"preselection"
,
""
,
"the preselection to apply"
};
57
59
private
:
60
OutOfValidityHelper
m_outOfValidity
{
this
};
61
63
private
:
64
SysWriteDecorHandle<float>
m_scaleFactorDecoration
{
65
this
,
"scaleFactorDecoration"
,
""
,
"the decoration for the muon efficiency scale factor"
};
66
68
private
:
69
SysWriteDecorHandle<float>
m_mcEfficiencyDecoration
{
70
this
,
"mcEfficiencyDecoration"
,
""
,
"the decoration for the muon MC efficiency"
};
71
73
private
:
74
SysWriteDecorHandle<float>
m_dataEfficiencyDecoration
{
75
this
,
"dataEfficiencyDecoration"
,
""
,
"the decoration for the muon data efficiency"
};
76
};
77
}
78
79
#endif
AnaAlgorithm.h
MuonContainer.h
IMuonEfficiencyScaleFactors.h
OutOfValidityHelper.h
SysListHandle.h
SysReadHandle.h
SysReadSelectionHandle.h
SysWriteDecorHandle.h
CP::MuonEfficiencyScaleFactorAlg
an algorithm for calling IMuonEfficiencyScaleFactorTool
Definition
MuonEfficiencyScaleFactorAlg.h:26
CP::MuonEfficiencyScaleFactorAlg::m_preselection
SysReadSelectionHandle m_preselection
the preselection we apply to our input
Definition
MuonEfficiencyScaleFactorAlg.h:55
CP::MuonEfficiencyScaleFactorAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition
MuonEfficiencyScaleFactorAlg.h:41
CP::MuonEfficiencyScaleFactorAlg::m_efficiencyScaleFactorTool
ToolHandle< IMuonEfficiencyScaleFactors > m_efficiencyScaleFactorTool
the smearing tool
Definition
MuonEfficiencyScaleFactorAlg.h:37
CP::MuonEfficiencyScaleFactorAlg::m_scaleFactorDecoration
SysWriteDecorHandle< float > m_scaleFactorDecoration
the decoration for the muon scale factor
Definition
MuonEfficiencyScaleFactorAlg.h:64
CP::MuonEfficiencyScaleFactorAlg::m_outOfValidity
OutOfValidityHelper m_outOfValidity
the helper for OutOfValidity results
Definition
MuonEfficiencyScaleFactorAlg.h:60
CP::MuonEfficiencyScaleFactorAlg::m_dataEfficiencyDecoration
SysWriteDecorHandle< float > m_dataEfficiencyDecoration
the decoration for the muon data efficiency
Definition
MuonEfficiencyScaleFactorAlg.h:74
CP::MuonEfficiencyScaleFactorAlg::m_eventInfoHandle
SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the EventInfo collection we use
Definition
MuonEfficiencyScaleFactorAlg.h:50
CP::MuonEfficiencyScaleFactorAlg::initialize
StatusCode initialize() override
Definition
MuonEfficiencyScaleFactorAlg.cxx:23
CP::MuonEfficiencyScaleFactorAlg::m_muonHandle
SysReadHandle< xAOD::MuonContainer > m_muonHandle
the muon collection we run on
Definition
MuonEfficiencyScaleFactorAlg.h:45
CP::MuonEfficiencyScaleFactorAlg::m_mcEfficiencyDecoration
SysWriteDecorHandle< float > m_mcEfficiencyDecoration
the decoration for the muon mc efficiency
Definition
MuonEfficiencyScaleFactorAlg.h:69
CP::OutOfValidityHelper
a helper to translate a CP::CorrectionCode into a StatusCode
Definition
OutOfValidityHelper.h:73
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition
SysListHandle.h:33
CP::SysReadHandle
a data handle for reading systematics varied input data
Definition
SysReadHandle.h:33
CP::SysReadSelectionHandle
a data handle for reading systematically varied selection properties from objects
Definition
SysReadSelectionHandle.h:32
CP::SysWriteDecorHandle
a data handle for reading systematics varied input data
Definition
SysWriteDecorHandle.h:42
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition
AnaAlgorithm.h:73
EL::AnaAlgorithm::AnaAlgorithm
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition
AnaAlgorithm.cxx:40
EL::AnaAlgorithm::execute
virtual::StatusCode execute()
execute this algorithm
Definition
AnaAlgorithm.cxx:321
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0