ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
MuonID
MuonIDAnalysis
MuonMomentumCorrections
src
CalibratedMuonsProvider.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef MUONMMC_CALIBRATEDMUONSPROVIDER_H
6
#define MUONMMC_CALIBRATEDMUONSPROVIDER_H
7
8
#include "
AthenaBaseComps/AthAlgorithm.h
"
9
#include "
MuonAnalysisInterfaces/IMuonCalibrationAndSmearingTool.h
"
10
#include "
StoreGate/ReadHandleKey.h
"
11
#include "
StoreGate/WriteHandleKey.h
"
12
#include "
StoreGate/ReadDecorHandleKey.h
"
13
#include "
StoreGate/WriteDecorHandleKeyArray.h
"
14
#include "
xAODEventInfo/EventInfo.h
"
15
#include "
xAODMuon/MuonContainer.h
"
16
17
namespace
CP
{
18
20
21
class
CalibratedMuonsProvider
:
public
AthAlgorithm
{
22
public
:
24
CalibratedMuonsProvider
(
const
std::string&
name
, ISvcLocator* svcLoc);
25
27
virtual
StatusCode
initialize
()
override
;
29
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
30
31
private
:
32
SG::ReadHandleKey<xAOD::EventInfo>
m_eventInfo
{
this
,
"EventInfoContName"
,
"EventInfo"
,
"event info key"
};
34
SG::ReadHandleKey<xAOD::MuonContainer>
m_inputKey
{
this
,
"Input"
,
"Muons"
,
" Name of the muon container to calibrate"
};
35
SG::WriteHandleKey<xAOD::MuonContainer>
m_outputKey
{
this
,
"Output"
,
"CalibratedMuons"
,
36
"Name of the final container written to storegate"
};
37
38
SG::WriteDecorHandleKeyArray<xAOD::MuonContainer>
m_ptDecorKeys
{
this
,
"DecorationKeys"
, {}};
39
41
ToolHandle<IMuonCalibrationAndSmearingTool>
m_tool
{
this
,
"Tool"
,
""
};
42
Gaudi::Property<bool>
m_useRndNumber
{
this
,
"useRndRunNumber"
,
false
};
43
SG::ReadDecorHandleKey<xAOD::EventInfo>
m_rndNumKey
{
this
,
"RandomNumberDecor"
,
m_eventInfo
,
"RandomRunNumber"
,
44
"Dependency on the random run number"
};
45
46
};
// class
47
48
}
// namespace CP
49
50
#endif
//
AthAlgorithm.h
MuonContainer.h
IMuonCalibrationAndSmearingTool.h
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKeyArray.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
CP::CalibratedMuonsProvider::execute
virtual StatusCode execute(const EventContext &ctx) override
Function executing the algorithm.
Definition
CalibratedMuonsProvider.cxx:27
CP::CalibratedMuonsProvider::initialize
virtual StatusCode initialize() override
Function initialising the algorithm.
Definition
CalibratedMuonsProvider.cxx:14
CP::CalibratedMuonsProvider::m_tool
ToolHandle< IMuonCalibrationAndSmearingTool > m_tool
Muon calibration tool.
Definition
CalibratedMuonsProvider.h:41
CP::CalibratedMuonsProvider::m_eventInfo
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo
Definition
CalibratedMuonsProvider.h:32
CP::CalibratedMuonsProvider::m_useRndNumber
Gaudi::Property< bool > m_useRndNumber
Definition
CalibratedMuonsProvider.h:42
CP::CalibratedMuonsProvider::m_inputKey
SG::ReadHandleKey< xAOD::MuonContainer > m_inputKey
muon container
Definition
CalibratedMuonsProvider.h:34
CP::CalibratedMuonsProvider::CalibratedMuonsProvider
CalibratedMuonsProvider(const std::string &name, ISvcLocator *svcLoc)
Regular Algorithm constructor.
Definition
CalibratedMuonsProvider.cxx:12
CP::CalibratedMuonsProvider::m_outputKey
SG::WriteHandleKey< xAOD::MuonContainer > m_outputKey
Definition
CalibratedMuonsProvider.h:35
CP::CalibratedMuonsProvider::m_rndNumKey
SG::ReadDecorHandleKey< xAOD::EventInfo > m_rndNumKey
Definition
CalibratedMuonsProvider.h:43
CP::CalibratedMuonsProvider::m_ptDecorKeys
SG::WriteDecorHandleKeyArray< xAOD::MuonContainer > m_ptDecorKeys
Additionally declare the two decorations made by MCAST.
Definition
CalibratedMuonsProvider.h:38
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition
StoreGate/StoreGate/ReadDecorHandleKey.h:86
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
SG::WriteDecorHandleKeyArray
DecorHandleKeyArray< WriteDecorHandle< T, S >, WriteDecorHandleKey< T >, Gaudi::DataHandle::Writer > WriteDecorHandleKeyArray
Definition
StoreGate/StoreGate/WriteDecorHandleKeyArray.h:35
xAOD::name
name
Definition
TriggerMenuJson_v1.cxx:29
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0