ATLAS Offline Software
Loading...
Searching...
No Matches
METElectronAssociator.cxx
Go to the documentation of this file.
1
2
3/*
4 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5*/
6
7// METElectronAssociator.cxx
8// Implementation file for class METElectronAssociator
9//
10// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
11//
12// Author: P Loch, S Resconi, TJ Khoo, AS Mete
14
15// METReconstruction includes
17
18// Egamma EDM
20#include "xAODEgamma/Photon.h"
21
22namespace met {
23
24 using namespace xAOD;
25
26 // Constructors
34
35 // Athena algtool's Hooks
58
59
60 // executeTool
63 {
64 ATH_MSG_VERBOSE ("In execute: " << name() << "...");
65
67 if (!elCont.isValid()) {
68 ATH_MSG_WARNING("Unable to retrieve input electron container " << m_elContKey.key());
69 return StatusCode::FAILURE;
70 }
71
72 ATH_MSG_DEBUG("Successfully retrieved electron collection");
73 if (fillAssocMap(metMap,elCont.cptr()).isFailure()) {
74 ATH_MSG_WARNING("Unable to fill map with electron container " << m_elContKey.key());
75 return StatusCode::FAILURE;
76 }
77
78 return StatusCode::SUCCESS;
79 }
80
81}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
#define ATH_MSG_DEBUG(x)
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type cptr()
Dereference the pointer.
AsgTool(const std::string &name)
Constructor specifying the tool instance's name.
Definition AsgTool.cxx:58
virtual StatusCode fillAssocMap(xAOD::MissingETAssociationMap *metMap, const xAOD::IParticleContainer *hardObjs) const
std::string m_chargedFELinksKey
std::string m_neutralPFOLinksKey
std::string m_chargedPFOLinksKey
std::string m_neutralFELinksKey
SG::ReadDecorHandleKey< xAOD::ElectronContainer > m_electronNeutralPFOReadDecorKey
SG::ReadDecorHandleKey< xAOD::ElectronContainer > m_electronChargedFEReadDecorKey
SG::ReadDecorHandleKey< xAOD::ElectronContainer > m_electronChargedPFOReadDecorKey
METEgammaAssociator(const std::string &name)
StatusCode initialize()
Dummy implementation of the initialisation function.
SG::ReadDecorHandleKey< xAOD::ElectronContainer > m_electronNeutralFEReadDecorKey
StatusCode executeTool(xAOD::MissingETContainer *metCont, xAOD::MissingETAssociationMap *metMap) const final
SG::ReadHandleKey< xAOD::ElectronContainer > m_elContKey
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
METElectronAssociator()
Default constructor:
MissingETAssociationMap_v1 MissingETAssociationMap
Version control by type defintion.