ATLAS Offline Software
Loading...
Searching...
No Matches
WriteExampleElectron.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#ifndef ATHENAPOOLEXAMPLEALGORITHMS_WRITEEXAMPLEELECTRON_H
6#define ATHENAPOOLEXAMPLEALGORITHMS_WRITEEXAMPLEELECTRON_H
7
12
19
20namespace AthPoolEx {
21
27 public:
28 WriteExampleElectron(const std::string& name, ISvcLocator* pSvcLocator);
29 virtual ~WriteExampleElectron() = default;
30
31 public:
33 virtual StatusCode initialize() override final;
34 virtual StatusCode execute(const EventContext& ctx) const override final;
35 virtual StatusCode finalize() override final;
36
37 // Read in ExampleTracks and ExampleHits
39 this, "ExampleTrackKey", "MyTracks"};
41 "MyHits"};
42
43 // We will want to write some of those tracks as an ExampleElectron and place
44 // them into a container
46 m_exampleElectronContainerKey{this, "ExampleElectronContainerName",
47 "TestContainer"};
48
49 // Testing writing decorations, need keys
51 this, "ExampleElectronContainerDecorKey1", "TestContainer.decor1",
52 "decorator1 key"};
54 this, "ExampleElectronContainerDecorKey2", "TestContainer.decor2",
55 "decorator2 key"};
56};
57
58} // namespace AthPoolEx
59
60#endif
This file contains the class definition for the ExampleHitContainer class.
This file contains the class definition for the ExampleTrackContainer class.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
WriteExampleElectron(const std::string &name, ISvcLocator *pSvcLocator)
SG::WriteDecorHandleKey< xAOD::ExampleElectronContainer > m_decor1Key
SG::WriteDecorHandleKey< xAOD::ExampleElectronContainer > m_decor2Key
SG::ReadHandleKey< ExampleHitContainer > m_exampleHitKey
virtual StatusCode execute(const EventContext &ctx) const override final
SG::ReadHandleKey< ExampleTrackContainer > m_exampleTrackKey
virtual StatusCode finalize() override final
virtual ~WriteExampleElectron()=default
virtual StatusCode initialize() override final
Gaudi Service Interface method implementations:
SG::WriteHandleKey< xAOD::ExampleElectronContainer > m_exampleElectronContainerKey
An algorithm that can be simultaneously executed in multiple threads.
This class provides a data vector for ExampleTrack objects in AthenaPool.
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.
Property holding a SG store/key/clid from which a WriteHandle is made.
Forward declaration.