ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
MuonID
MuonIDAnalysis
MuonMomentumCorrections
MuonMomentumCorrections
MuonCalibIntHighpTSmearTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef MCAST_MuonCalibIntHighpTSmearTool_H
6
#define MCAST_MuonCalibIntHighpTSmearTool_H
7
8
// C++ includes
9
#include <map>
10
#include <vector>
11
12
// Framework include(s):
13
#include "
AsgDataHandles/ReadHandleKey.h
"
14
#include "
AsgTools/AnaToolHandle.h
"
15
#include "
AsgTools/AsgTool.h
"
16
#include "
AsgTools/PropertyWrapper.h
"
17
#include "
PATInterfaces/SystematicsCache.h
"
18
#include "
xAODEventInfo/EventInfo.h
"
19
20
#include "
MuonMomentumCorrections/MuonObj.h
"
21
#include "
MuonMomentumCorrections/IMuonCalibIntTool.h
"
22
#include "
MuonMomentumCorrections/EnumDef.h
"
23
#include "
MuonMomentumCorrections/CalibContainer.h
"
24
25
namespace
CP
{
26
27
class
MuonCalibIntHighpTSmearTool
:
public
virtual
IMuonCalibIntTool
,
28
public
asg::AsgTool
{
29
// Create a proper constructor for Athena
30
ASG_TOOL_CLASS3
(
MuonCalibIntHighpTSmearTool
,
CP::IMuonCalibIntTool
,
CP::ISystematicsTool
,
31
CP::IReentrantSystematicsTool
)
32
33
public
:
34
// Interface methods that must be defined
35
// Interface - Apply the correction on a modifyable object
36
virtual
CorrectionCode
applyCorrection
(
MCP::MuonObj
& mu)
const override
;
37
38
// Interface - Is the tool affected by a specific systematic?
39
virtual
bool
isAffectedBySystematic
(
const
SystematicVariation
& systematic)
const override
;
40
// Interface - Which systematics have an effect on the tool's behaviour?
41
virtual
SystematicSet
affectingSystematics
()
const override
;
42
// Interface - Systematics to be used for physics analysis
43
virtual
SystematicSet
recommendedSystematics
()
const override
;
44
// Interface - Use specific systematic
45
virtual
StatusCode
applySystematicVariation
(
const
SystematicSet
& systConfig)
override
;
46
47
public
:
48
// Constructor
49
MuonCalibIntHighpTSmearTool
(
const
std::string&
name
);
50
51
// Destructor
52
virtual
~MuonCalibIntHighpTSmearTool
() =
default
;
53
54
virtual
StatusCode
initialize
()
override
;
55
56
57
protected
:
58
// Event info
59
SG::ReadHandleKey<xAOD::EventInfo>
m_eventInfo
{
this
,
"EventInfoContName"
,
"EventInfo"
,
"event info key"
};
60
61
// Release scheme
62
Gaudi::Property<std::string>
m_release
{
this
,
"release"
,
"Recs2025_12_11_Run2Run3"
,
"Release version"
};
63
64
typedef
std::map<MCP::MST_Categories, std::shared_ptr<MCP::CalibContainer>>
HighpTConstMap
;
65
66
// Corrections from the data
67
std::map<MCP::DataYear, HighpTConstMap>
m_MS_Misaligned_p1
;
68
std::map<MCP::DataYear, HighpTConstMap>
m_MS_Misaligned_p2
;
69
std::map<MCP::DataYear, HighpTConstMap>
m_MS_AlignedAndCorrected_p1
;
70
std::map<MCP::DataYear, HighpTConstMap>
m_MS_AlignedAndCorrected_p2
;
71
72
MCP::MST_Categories
ConvertToMacroCategory
(
const
int
raw_mst_category)
const
;
73
74
75
76
};
// class MuonCalibIntHighpTSmearTool
77
78
}
// namespace CP
79
80
#endif
AnaToolHandle.h
ASG_TOOL_CLASS3
#define ASG_TOOL_CLASS3(CLASSNAME, INT1, INT2, INT3)
Definition
AsgToolMacros.h:85
AsgTool.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
CalibContainer.h
EnumDef.h
IMuonCalibIntTool.h
MuonObj.h
PropertyWrapper.h
SystematicsCache.h
CP::CorrectionCode
Return value from object correction CP tools.
Definition
CorrectionCode.h:31
CP::IMuonCalibIntTool
Definition
IMuonCalibIntTool.h:26
CP::IMuonCalibIntTool::applyCorrection
virtual CorrectionCode applyCorrection(MCP::MuonObj &mu) const =0
Declare the interface that the class provides.
CP::IReentrantSystematicsTool
interface for all CP tools supporting systematic variations within a reentrant algorithm
Definition
IReentrantSystematicsTool.h:58
CP::ISystematicsTool
Interface for all CP tools supporting systematic variations.
Definition
ISystematicsTool.h:32
CP::MuonCalibIntHighpTSmearTool::HighpTConstMap
std::map< MCP::MST_Categories, std::shared_ptr< MCP::CalibContainer > > HighpTConstMap
Definition
MuonCalibIntHighpTSmearTool.h:64
CP::MuonCalibIntHighpTSmearTool::ConvertToMacroCategory
MCP::MST_Categories ConvertToMacroCategory(const int raw_mst_category) const
Definition
MuonCalibIntHighpTSmearTool.cxx:119
CP::MuonCalibIntHighpTSmearTool::MuonCalibIntHighpTSmearTool
MuonCalibIntHighpTSmearTool(const std::string &name)
Definition
MuonCalibIntHighpTSmearTool.cxx:22
CP::MuonCalibIntHighpTSmearTool::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition
MuonCalibIntHighpTSmearTool.cxx:26
CP::MuonCalibIntHighpTSmearTool::applySystematicVariation
virtual StatusCode applySystematicVariation(const SystematicSet &systConfig) override
effects: configure this tool for the given list of systematic variations.
Definition
MuonCalibIntHighpTSmearTool.cxx:113
CP::MuonCalibIntHighpTSmearTool::m_release
Gaudi::Property< std::string > m_release
Definition
MuonCalibIntHighpTSmearTool.h:62
CP::MuonCalibIntHighpTSmearTool::m_MS_AlignedAndCorrected_p1
std::map< MCP::DataYear, HighpTConstMap > m_MS_AlignedAndCorrected_p1
Definition
MuonCalibIntHighpTSmearTool.h:69
CP::MuonCalibIntHighpTSmearTool::m_MS_Misaligned_p2
std::map< MCP::DataYear, HighpTConstMap > m_MS_Misaligned_p2
Definition
MuonCalibIntHighpTSmearTool.h:68
CP::MuonCalibIntHighpTSmearTool::~MuonCalibIntHighpTSmearTool
virtual ~MuonCalibIntHighpTSmearTool()=default
CP::MuonCalibIntHighpTSmearTool::m_eventInfo
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo
Definition
MuonCalibIntHighpTSmearTool.h:59
CP::MuonCalibIntHighpTSmearTool::recommendedSystematics
virtual SystematicSet recommendedSystematics() const override
the list of all systematics this tool recommends to use
Definition
MuonCalibIntHighpTSmearTool.cxx:111
CP::MuonCalibIntHighpTSmearTool::m_MS_Misaligned_p1
std::map< MCP::DataYear, HighpTConstMap > m_MS_Misaligned_p1
Definition
MuonCalibIntHighpTSmearTool.h:67
CP::MuonCalibIntHighpTSmearTool::affectingSystematics
virtual SystematicSet affectingSystematics() const override
the list of all systematics this tool can be affected by
Definition
MuonCalibIntHighpTSmearTool.cxx:104
CP::MuonCalibIntHighpTSmearTool::m_MS_AlignedAndCorrected_p2
std::map< MCP::DataYear, HighpTConstMap > m_MS_AlignedAndCorrected_p2
Definition
MuonCalibIntHighpTSmearTool.h:70
CP::MuonCalibIntHighpTSmearTool::isAffectedBySystematic
virtual ASG_TOOL_CLASS3(MuonCalibIntHighpTSmearTool, CP::IMuonCalibIntTool, CP::ISystematicsTool, CP::IReentrantSystematicsTool) public bool isAffectedBySystematic(const SystematicVariation &systematic) const override
Declare the interface that this class provides.
Definition
MuonCalibIntHighpTSmearTool.cxx:98
CP::SystematicSet
Class to wrap a set of SystematicVariations.
Definition
SystematicSet.h:31
CP::SystematicVariation
Definition
SystematicVariation.h:47
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition
AsgTool.h:47
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
MCP::MST_Categories
MST_Categories
Definition
EnumDef.h:31
xAOD::name
name
Definition
TriggerMenuJson_v1.cxx:29
MCP::MuonObj
Definition
MuonObj.h:179
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0