ATLAS Offline Software
Loading...
Searching...
No Matches
PFEGamFlowElementAssoc.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5/*
6 * PFEGamFlowElementAssoc.h
7 * Header file for class PFEGamFlowElementAssoc
8 *
9 * Created on: 13.03.19
10 * Author: J. C. MacDonald & Upgraded by M.T. Anthony
11 */
12
13#ifndef PFEGAMFLOWELEMENTASSOC_H
14#define PFEGAMFLOWELEMENTASSOC_H
15
18#include "GaudiKernel/ToolHandle.h"
19
22
34
35public:
36 using AthReentrantAlgorithm::AthReentrantAlgorithm;
37
38 PFEGamFlowElementAssoc(const std::string& name, ISvcLocator* pSvcLocator);
39
41
42 virtual StatusCode initialize();
43 virtual StatusCode execute(const EventContext & ctx) const;
44 virtual StatusCode finalize();
45
46private:
47 //instantiate ReadHandle for the Photon/Electron
48 SG::ReadHandleKey<xAOD::ElectronContainer>m_electronReadHandleKey{this,"ElectronContainer","Electrons","ReadHandleKey for ElectronContainer"};
49
50 SG::ReadHandleKey<xAOD::PhotonContainer>m_photonReadHandleKey{this,"PhotonContainer","Photons","ReadHandleKey for PhotonContainer"};
51
52 //Readhandles for FlowElements.
53 SG::ReadHandleKey<xAOD::FlowElementContainer> m_neutralFEReadHandleKey{this,"JetEtMissNeutralFlowElementContainer","JetETMissNeutralParticleFlowObjects","ReadHandleKey for neutral FlowElements"};
54
55 SG::ReadHandleKey<xAOD::FlowElementContainer> m_chargedFEReadHandleKey{this,"JetEtMissChargedFlowElementContainer","JetETMissChargedParticleFlowObjects","ReadHandleKey for charged FlowElements"};
56
57
59 SG::WriteDecorHandleKey<xAOD::ElectronContainer> m_electronNeutralFEWriteDecorKey{this,"ElectronNeutralFEDecorKey",m_electronReadHandleKey,"neutralFELinks","Output key for electron link to neutral FE"};
61 SG::WriteDecorHandleKey<xAOD::ElectronContainer> m_electronChargedFEWriteDecorKey{this,"ElectronChargedFEDecorKey",m_electronReadHandleKey,"chargedFELinks","Output key for electron link to charged FE"};
62
64
65 SG::WriteDecorHandleKey<xAOD::FlowElementContainer> m_neutralFEElectronWriteDecorKey{this,"NeutralFEElectronDecorKey",m_neutralFEReadHandleKey,"FE_ElectronLinks","Output key for link from charged FE to electron"};
66
68 SG::WriteDecorHandleKey<xAOD::FlowElementContainer> m_chargedFEElectronWriteDecorKey{this,"ChargedFEElectronDecorKey",m_chargedFEReadHandleKey,"FE_ElectronLinks","Output key for link from charged FE to electron"};
69
70
72 SG::WriteDecorHandleKey<xAOD::PhotonContainer> m_photonNeutralFEWriteDecorKey{this,"PhotonNeutralFEDecorKey",m_photonReadHandleKey,"neutralFELinks","Output key for photon link to neutral FE"};
74 SG::WriteDecorHandleKey<xAOD::PhotonContainer> m_photonChargedFEWriteDecorKey{this,"PhotonChargedFEDecorKey",m_photonReadHandleKey,"chargedFELinks","Output key for photon link to charged FE"};
76 SG::WriteDecorHandleKey<xAOD::FlowElementContainer> m_neutralFEPhotonWriteDecorKey{this,"NeutralFEPhotonDecorKey",m_neutralFEReadHandleKey,"FE_PhotonLinks","Output key for link from neutral FE to photon"};
78 SG::WriteDecorHandleKey<xAOD::FlowElementContainer> m_chargedFEPhotonWriteDecorKey{this,"ChargedFEPhotonDecorKey",m_chargedFEReadHandleKey,"FE_PhotonLinks","Output key for link from charged FE to photon"};
79
80
81};
82
83#endif // PFEGamFlowElementAssoc
Handle class for adding a decoration to an object.
An algorithm that can be simultaneously executed in multiple threads.
SG::WriteDecorHandleKey< xAOD::FlowElementContainer > m_chargedFEElectronWriteDecorKey
The write key for adding electron element link decorations to Charged Flow Elements.
SG::WriteDecorHandleKey< xAOD::PhotonContainer > m_photonNeutralFEWriteDecorKey
The write key for adding Neutral Flow Element element link decorations to photons.
SG::ReadHandleKey< xAOD::ElectronContainer > m_electronReadHandleKey
SG::WriteDecorHandleKey< xAOD::PhotonContainer > m_photonChargedFEWriteDecorKey
The write key for adding Charged Flow Element element link decorations to photons.
SG::ReadHandleKey< xAOD::PhotonContainer > m_photonReadHandleKey
SG::WriteDecorHandleKey< xAOD::FlowElementContainer > m_neutralFEPhotonWriteDecorKey
The write key for adding photon element link decorations to Neutral Flow Elements.
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_electronChargedFEWriteDecorKey
The write key for adding Charged Flow Element element link decorations to electrons.
SG::WriteDecorHandleKey< xAOD::FlowElementContainer > m_chargedFEPhotonWriteDecorKey
The write key for adding photon element link decorations to Charged Flow Elements.
SG::ReadHandleKey< xAOD::FlowElementContainer > m_neutralFEReadHandleKey
virtual StatusCode initialize()
SG::WriteDecorHandleKey< xAOD::FlowElementContainer > m_neutralFEElectronWriteDecorKey
The write key for adding electron element link decorations to Neutral Flow Elements.
PFEGamFlowElementAssoc(const std::string &name, ISvcLocator *pSvcLocator)
virtual ~PFEGamFlowElementAssoc()
SG::ReadHandleKey< xAOD::FlowElementContainer > m_chargedFEReadHandleKey
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_electronNeutralFEWriteDecorKey
The write key for adding Neutral Flow Element element link decorations to electrons.
virtual StatusCode execute(const EventContext &ctx) const
This algorithm does the following: 1) Read the Input containers for Flow Elements,...
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.