ATLAS Offline Software
METPhotonAssociator.cxx
Go to the documentation of this file.
1 
3 /*
4  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // METPhotonAssociator.cxx
8 // Implementation file for class METPhotonAssociator
9 //
10 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
11 //
12 // Author: P Loch, S Resconi, TJ Khoo, AS Mete
14 
15 // METReconstruction includes
17 
18 // Egamma EDM
21 
22 namespace met {
23 
24  using namespace xAOD;
25 
26  // Constructors
29  AsgTool(name),
32  {
33  }
34 
35  // Athena algtool's Hooks
38  {
39  ATH_MSG_VERBOSE ("Initializing " << name() << "...");
40  ATH_CHECK( m_phContKey.initialize());
42 
43 
44  if (m_usePFOLinks) {
49 
50  }
51  if (m_useFELinks) {
56  }
57  return StatusCode::SUCCESS;
58  }
59 
60 
61  // executeTool
64  {
65  ATH_MSG_VERBOSE ("In execute: " << name() << "...");
66 
68  if (!phCont.isValid()) {
69  ATH_MSG_WARNING("Unable to retrieve input photon container " << m_phContKey.key());
70  return StatusCode::FAILURE;
71  }
72 
73  ATH_MSG_DEBUG("Successfully retrieved photon collection");
74 
75  if (fillAssocMap(metMap,phCont.cptr()).isFailure()) {
76  ATH_MSG_WARNING("Unable to fill map with photon container " << m_phContKey.key());
77  return StatusCode::FAILURE;
78  }
79  return StatusCode::SUCCESS;
80  }
81 
82 }
met::METAssociator::m_neutralPFOLinksKey
std::string m_neutralPFOLinksKey
Definition: METAssociator.h:91
met::METPhotonAssociator::METPhotonAssociator
METPhotonAssociator()
Default constructor:
SG::ReadHandle::cptr
const_pointer_type cptr()
Dereference the pointer.
met::METAssociator::m_useFELinks
bool m_useFELinks
Definition: METAssociator.h:94
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
met::METEgammaAssociator::initialize
StatusCode initialize()
Dummy implementation of the initialisation function.
Definition: METEgammaAssociator.cxx:60
METPhotonAssociator.h
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
met::METAssociator::m_chargedPFOLinksKey
std::string m_chargedPFOLinksKey
Definition: METAssociator.h:92
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
met::METPhotonAssociator::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition: METPhotonAssociator.cxx:37
xAOD::MissingETAssociationMap_v1
Definition: MissingETAssociationMap_v1.h:29
met::METPhotonAssociator::m_phContKey
SG::ReadHandleKey< xAOD::PhotonContainer > m_phContKey
Definition: METPhotonAssociator.h:57
EgammaxAODHelpers.h
met
Definition: IMETSignificance.h:24
met::METEgammaAssociator::m_photonNeutralFEReadDecorKey
SG::ReadDecorHandleKey< xAOD::PhotonContainer > m_photonNeutralFEReadDecorKey
Definition: METEgammaAssociator.h:106
met::METEgammaAssociator::m_photonNeutralPFOReadDecorKey
SG::ReadDecorHandleKey< xAOD::PhotonContainer > m_photonNeutralPFOReadDecorKey
Definition: METEgammaAssociator.h:104
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
met::METAssociator::m_neutralFELinksKey
std::string m_neutralFELinksKey
Definition: METAssociator.h:89
met::METAssociator::m_chargedFELinksKey
std::string m_chargedFELinksKey
Definition: METAssociator.h:90
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
SG::ReadHandle::isValid
virtual bool isValid() override final
Can the handle be successfully dereferenced?
met::METAssociator
Definition: METAssociator.h:55
xAOD::MissingETContainer_v1
Container for xAOD::MissingET_v1 objects.
Definition: MissingETContainer_v1.h:21
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
met::METPhotonAssociator::executeTool
StatusCode executeTool(xAOD::MissingETContainer *metCont, xAOD::MissingETAssociationMap *metMap) const final
Definition: METPhotonAssociator.cxx:63
met::METAssociator::fillAssocMap
virtual StatusCode fillAssocMap(xAOD::MissingETAssociationMap *metMap, const xAOD::IParticleContainer *hardObjs) const
Definition: METAssociator.cxx:295
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
met::METEgammaAssociator
Definition: METEgammaAssociator.h:30
met::METAssociator::m_usePFOLinks
bool m_usePFOLinks
Definition: METAssociator.h:93
met::METEgammaAssociator::m_photonChargedFEReadDecorKey
SG::ReadDecorHandleKey< xAOD::PhotonContainer > m_photonChargedFEReadDecorKey
Definition: METEgammaAssociator.h:107
PhotonContainer.h
met::METEgammaAssociator::m_photonChargedPFOReadDecorKey
SG::ReadDecorHandleKey< xAOD::PhotonContainer > m_photonChargedPFOReadDecorKey
Definition: METEgammaAssociator.h:105