ATLAS Offline Software
Loading...
Searching...
No Matches
ReadExampleElectron.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef ATHENAPOOLEXAMPLEALGORITHMS_READSIMPLEELECTRON_H
6#define ATHENAPOOLEXAMPLEALGORITHMS_READSIMPLEELECTRON_H
7
12
13namespace AthPoolEx {
14
20 public:
21 ReadExampleElectron(const std::string& name, ISvcLocator* pSvcLocator);
22 virtual ~ReadExampleElectron() = default;
23
24 public:
26 virtual StatusCode initialize() override final;
27 virtual StatusCode execute(const EventContext& ctx) const override final;
28 virtual StatusCode finalize() override final;
29
30 private:
31 // Reading through the container of example electrons
32 SG::ReadHandleKey<xAOD::ExampleElectronContainer>
33 m_exampleElectronContainerKey{this, "ExampleElectronContainerName",
34 "TestContainer"};
35
36 // Also want to read through '.decor1' decorations, ignoring '.decor2' for
37 // sake of demonstration see python/AthenaPoolExample_Write.py:
38 // ItemList = [ ... ,
39 // 'xAOD::ExampleElectronAuxContainer#TestContainerAux.-decor2' ]
41 this, "ExampleElectronContainerDecorKey1", "TestContainer.decor1",
42 "decorator1 key"};
43};
44
45} // namespace AthPoolEx
46
47#endif
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.
virtual StatusCode finalize() override final
SG::ReadHandleKey< xAOD::ExampleElectronContainer > m_exampleElectronContainerKey
virtual StatusCode initialize() override final
Gaudi Service Interface method implementations:
virtual ~ReadExampleElectron()=default
virtual StatusCode execute(const EventContext &ctx) const override final
SG::ReadDecorHandleKey< xAOD::ExampleElectronContainer > m_decor1Key
ReadExampleElectron(const std::string &name, ISvcLocator *pSvcLocator)
An algorithm that can be simultaneously executed in multiple threads.
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Forward declaration.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
#define private