ATLAS Offline Software
Loading...
Searching...
No Matches
ExampleAlg.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2/*
3 * Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration.
4 */
11
12
13#ifndef ATHEXSTOREGATEEXAMPLE_EXAMPLEALG_H
14#define ATHEXSTOREGATEEXAMPLE_EXAMPLEALG_H
15
16
21
22
23// An example algorithm that reads and writes objects from the event store
24// using handles.
27{
28public:
29 virtual StatusCode initialize() override;
30 virtual StatusCode execute (const EventContext& ctx) const override;
31
32private:
33 // Declare the keys used to access the data: one for reading and one
34 // for writing.
36 SG::WriteHandleKey<MyDataObj> m_writeKey{this, "WriteKey", "out"};
37};
38
39
40#endif
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
SG::WriteHandleKey< MyDataObj > m_writeKey
Definition ExampleAlg.h:36
virtual StatusCode initialize() override
virtual StatusCode execute(const EventContext &ctx) const override
SG::ReadHandleKey< MyDataObj > m_readKey
Definition ExampleAlg.h:35
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.