ATLAS Offline Software
Loading...
Searching...
No Matches
PFEGamFlowElementAssoc.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/*
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"
20
23
35
36public:
37 using AthReentrantAlgorithm::AthReentrantAlgorithm;
38
39 PFEGamFlowElementAssoc(const std::string& name, ISvcLocator* pSvcLocator);
40
42
43 virtual StatusCode initialize();
44 virtual StatusCode execute(const EventContext & ctx) const;
45 virtual StatusCode finalize();
46
47private:
48 //instantiate ReadHandle for the Photon/Electron
49 SG::ReadHandleKey<xAOD::ElectronContainer>m_electronReadHandleKey{this,"ElectronContainer","Electrons","ReadHandleKey for ElectronContainer"};
50
51 SG::ReadHandleKey<xAOD::PhotonContainer>m_photonReadHandleKey{this,"PhotonContainer","Photons","ReadHandleKey for PhotonContainer"};
52
53 //Readhandles for FlowElements.
54 SG::ReadHandleKey<xAOD::FlowElementContainer> m_neutralFEReadHandleKey{this,"JetEtMissNeutralFlowElementContainer","JetETMissNeutralParticleFlowObjects","ReadHandleKey for neutral FlowElements"};
55
56 SG::ReadHandleKey<xAOD::FlowElementContainer> m_chargedFEReadHandleKey{this,"JetEtMissChargedFlowElementContainer","JetETMissChargedParticleFlowObjects","ReadHandleKey for charged FlowElements"};
57
58
60 SG::WriteDecorHandleKey<xAOD::ElectronContainer> m_electronNeutralFEWriteDecorKey{this,"ElectronNeutralFEDecorKey",m_electronReadHandleKey,"neutralFELinks","Output key for electron link to neutral FE"};
62 SG::WriteDecorHandleKey<xAOD::ElectronContainer> m_electronChargedFEWriteDecorKey{this,"ElectronChargedFEDecorKey",m_electronReadHandleKey,"chargedFELinks","Output key for electron link to charged FE"};
63
65
66 SG::WriteDecorHandleKey<xAOD::FlowElementContainer> m_neutralFEElectronWriteDecorKey{this,"NeutralFEElectronDecorKey",m_neutralFEReadHandleKey,"FE_ElectronLinks","Output key for link from charged FE to electron"};
67
69 SG::WriteDecorHandleKey<xAOD::FlowElementContainer> m_chargedFEElectronWriteDecorKey{this,"ChargedFEElectronDecorKey",m_chargedFEReadHandleKey,"FE_ElectronLinks","Output key for link from charged FE to electron"};
70
71
73 SG::WriteDecorHandleKey<xAOD::PhotonContainer> m_photonNeutralFEWriteDecorKey{this,"PhotonNeutralFEDecorKey",m_photonReadHandleKey,"neutralFELinks","Output key for photon link to neutral FE"};
75 SG::WriteDecorHandleKey<xAOD::PhotonContainer> m_photonChargedFEWriteDecorKey{this,"PhotonChargedFEDecorKey",m_photonReadHandleKey,"chargedFELinks","Output key for photon link to charged FE"};
77 SG::WriteDecorHandleKey<xAOD::FlowElementContainer> m_neutralFEPhotonWriteDecorKey{this,"NeutralFEPhotonDecorKey",m_neutralFEReadHandleKey,"FE_PhotonLinks","Output key for link from neutral FE to photon"};
79 SG::WriteDecorHandleKey<xAOD::FlowElementContainer> m_chargedFEPhotonWriteDecorKey{this,"ChargedFEPhotonDecorKey",m_chargedFEReadHandleKey,"FE_PhotonLinks","Output key for link from charged FE to photon"};
80
81
82};
83
84#endif // PFEGamFlowElementAssoc
defines an "iterator" over instances of a given type in StoreGateSvc
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.