ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
AthenaPOOL
AthenaPoolExample
AthenaPoolExampleAlgorithms
src
ReWriteData.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_REWRITEDATA_H
6
#define ATHENAPOOLEXAMPLEALGORITHMS_REWRITEDATA_H
7
13
14
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
15
#include "
AthenaPoolExampleData/ExampleHitContainer.h
"
16
#include "
AthenaPoolExampleData/ExampleTrackContainer.h
"
17
#include "
StoreGate/ReadHandleKey.h
"
18
#include "
StoreGate/WriteHandleKey.h
"
19
20
namespace
AthPoolEx
{
21
25
class
ReWriteData
:
public
AthReentrantAlgorithm
{
26
public
:
27
ReWriteData
(
const
std::string& name, ISvcLocator* pSvcLocator);
28
virtual
~ReWriteData
() =
default
;
29
30
public
:
32
virtual
StatusCode
initialize
() override final;
33
virtual StatusCode
execute
(
const
EventContext& ctx)
const
override final;
34
virtual StatusCode
finalize
() override final;
35
36
private
:
37
SG
::ReadHandleKey<
ExampleHitContainer
>
m_exampleHitKey
{
this
,
"ExampleHitKey"
,
"MyHits"
};
38
SG::WriteHandleKey<ExampleTrackContainer>
m_exampleTrackKey
{
this
,
"ExampleTrackKey"
,
"MyTracks"
};
39
};
40
41
}
// namespace AthPoolEx
42
43
#endif
AthReentrantAlgorithm.h
ExampleHitContainer.h
This file contains the class definition for the ExampleHitContainer class.
ExampleTrackContainer.h
This file contains the class definition for the ExampleTrackContainer class.
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
AthPoolEx::ReWriteData::ReWriteData
ReWriteData(const std::string &name, ISvcLocator *pSvcLocator)
Definition
ReWriteData.cxx:23
AthPoolEx::ReWriteData::initialize
virtual StatusCode initialize() override final
Gaudi Service Interface method implementations:
Definition
ReWriteData.cxx:28
AthPoolEx::ReWriteData::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition
ReWriteData.cxx:40
AthPoolEx::ReWriteData::~ReWriteData
virtual ~ReWriteData()=default
AthPoolEx::ReWriteData::m_exampleTrackKey
SG::WriteHandleKey< ExampleTrackContainer > m_exampleTrackKey
Definition
ReWriteData.h:38
AthPoolEx::ReWriteData::m_exampleHitKey
SG::ReadHandleKey< ExampleHitContainer > m_exampleHitKey
Definition
ReWriteData.h:37
AthPoolEx::ReWriteData::finalize
virtual StatusCode finalize() override final
Definition
ReWriteData.cxx:111
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
ExampleHitContainer
This class provides a data vector for ExampleHit objects in AthenaPool.
Definition
ExampleHitContainer.h:20
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
const
AthPoolEx
Definition
PassNoneFilter.h:16
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0