ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
JetAnalysisAlgorithms
Root
JetGhostMuonAssociationAlg.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
//
8
// includes
9
//
10
11
#include <
JetAnalysisAlgorithms/JetGhostMuonAssociationAlg.h
>
12
#include <
METUtilities/METHelpers.h
>
13
14
//
15
// method implementations
16
//
17
18
namespace
CP
19
{
20
StatusCode JetGhostMuonAssociationAlg ::
21
initialize ()
22
{
23
ANA_CHECK
(
m_jetHandle
.initialize (
m_systematicsList
));
24
ANA_CHECK
(
m_muonHandle
.initialize (
m_systematicsList
));
25
ANA_CHECK
(
m_systematicsList
.initialize());
26
return
StatusCode::SUCCESS;
27
}
28
29
30
StatusCode JetGhostMuonAssociationAlg ::
31
execute (
const
EventContext& ctx)
32
{
33
for
(
const
auto
& sys :
m_systematicsList
.systematicsVector())
34
{
35
xAOD::JetContainer
*jets =
nullptr
;
36
ANA_CHECK
(
m_jetHandle
.getCopy (jets, sys, ctx));
37
38
// associate the ghost muons to the jets (needed by MET muon-jet OR later)
39
const
xAOD::MuonContainer
* muons =
nullptr
;
40
ANA_CHECK
(
m_muonHandle
.retrieve (muons, sys, ctx));
41
met::addGhostMuonsToJets
(*muons, *jets);
42
}
43
44
return
StatusCode::SUCCESS;
45
}
46
}
ANA_CHECK
#define ANA_CHECK(EXP)
check whether the given expression was successful
Definition
Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:325
JetGhostMuonAssociationAlg.h
METHelpers.h
CP::JetGhostMuonAssociationAlg::m_jetHandle
SysCopyHandle< xAOD::JetContainer > m_jetHandle
the jet collection we run on
Definition
JetGhostMuonAssociationAlg.h:41
CP::JetGhostMuonAssociationAlg::m_muonHandle
SysReadHandle< xAOD::MuonContainer > m_muonHandle
Definition
JetGhostMuonAssociationAlg.h:45
CP::JetGhostMuonAssociationAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition
JetGhostMuonAssociationAlg.h:37
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
met::addGhostMuonsToJets
void addGhostMuonsToJets(const xAOD::MuonContainer &muons, xAOD::JetContainer &jets)
Definition
METHelpers.cxx:34
xAOD::JetContainer
JetContainer_v1 JetContainer
Definition of the current "jet container version".
Definition
JetContainer.h:17
xAOD::MuonContainer
MuonContainer_v1 MuonContainer
Definition of the current "Muon container version".
Definition
Event/xAOD/xAODMuon/xAODMuon/MuonContainer.h:14
Generated on
for ATLAS Offline Software by
1.17.0