ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
DataModelTest
DataModelTestDataCommon
src
xAODTestShallowCopy.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-2020 CERN for the benefit of the ATLAS collaboration
4
*/
11
12
13
#ifndef DATAMODELTESTDATACOMMON_XAODTESTSHALLOWCOPY_H
14
#define DATAMODELTESTDATACOMMON_XAODTESTSHALLOWCOPY_H
15
16
17
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
18
#include "
DataModelTestDataCommon/C.h
"
19
#include "
DataModelTestDataCommon/CVec.h
"
20
#include "
DataModelTestDataCommon/CVecWithData.h
"
21
#include "
StoreGate/ReadHandleKey.h
"
22
#include "
StoreGate/WriteHandleKey.h
"
23
#include "
StoreGate/WriteDecorHandleKey.h
"
24
#include "
StoreGate/ShallowCopyDecorDeps.h
"
25
26
27
namespace
DMTest
{
28
29
33
class
xAODTestShallowCopy
34
:
public
AthReentrantAlgorithm
35
{
36
public
:
37
using
AthReentrantAlgorithm::AthReentrantAlgorithm;
38
39
43
virtual
StatusCode
initialize
()
override
;
44
45
49
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
50
51
52
private
:
53
SG::ReadHandleKey<DMTest::CVec>
m_cvecReadKey
54
{
this
,
"CVecReadKey"
,
"cvec"
,
"Key for cvec object read from SG"
};
55
SG::WriteHandleKey<DMTest::CVec>
m_cvecWriteKey
56
{
this
,
"CVecWriteKey"
,
"scopy_cvec"
,
"Key for cvec object written to SG"
};
57
SG::WriteDecorHandleKey<DMTest::CVec>
m_cvecAnInt10Key
58
{
this
,
"CVecAnInt10Key"
,
"scopy_cvec.anInt10"
,
"Key for cvec anInt10 decoration"
};
59
SG::ShallowCopyDecorDeps<DMTest::CVec>
m_cvecDecorDeps
60
{
this
,
"CVecDecorHelper"
, {
"dInt1"
} };
61
62
SG::ReadHandleKey<DMTest::CVecWithData>
m_cvecWDReadKey
63
{
this
,
"CVecWDReadKey"
,
"cvecWD"
,
"Key for cvecWD object read from SG"
};
64
SG::WriteHandleKey<DMTest::CVecWithData>
m_cvecWDWriteKey
65
{
this
,
"CVecWDWriteKey"
,
"scopy_cvecWD"
,
"Key for cvecWD object written to SG"
};
66
SG::WriteDecorHandleKey<DMTest::CVecWithData>
m_cvecWDAnInt10Key
67
{
this
,
"CVecWDAnInt10Key"
,
"scopy_cvecWD.anInt10"
,
"Key for cvecWD anInt10 decoration"
};
68
SG::ShallowCopyDecorDeps<DMTest::CVecWithData>
m_cvecWDDecorDeps
69
{
this
,
"CVecWDDecorHelper"
, {
"dInt1"
} };
70
71
SG::ReadHandleKey<DMTest::C>
m_cinfoReadKey
72
{
this
,
"CInfoReadKey"
,
"cinfo"
,
"Key for cinfo object read from SG"
};
73
SG::WriteHandleKey<DMTest::C>
m_cinfoWriteKey
74
{
this
,
"CInfoWriteKey"
,
"scopy_cinfo"
,
"Key for cinfo object written to SG"
};
75
SG::WriteDecorHandleKey<DMTest::C>
m_cinfoAnInt10Key
76
{
this
,
"CInfoAnInt10Key"
,
"scopy_cinfo.anInt10"
,
"Key for cinfo anInt10 decoration"
};
77
SG::ShallowCopyDecorDeps<DMTest::C>
m_cinfoDecorDeps
78
{
this
,
"CInfoDecorHelper"
, {
"dInt1"
} };
79
80
// one of the decorations (dInt1Base) is a decoration on the SG::AuxElement base class
81
// so to propagate this we need handles for that type too
82
SG::ReadHandleKey<SG::AuxElement>
m_cinfoReadKeyBase
83
{
this
,
"CInfoReadKeyBase"
,
"cinfo"
,
"Key for cinfo object read from SG"
};
84
SG::WriteHandleKey<SG::AuxElement>
m_cinfoWriteKeyBase
85
{
this
,
"CInfoWriteKeyBase"
,
"scopy_cinfo"
,
"Key for cinfo object written to SG"
};
86
SG::ShallowCopyDecorDeps<SG::AuxElement>
m_cinfoDecorDepsBase
87
{
this
,
"CInfoDecorHelperBase"
, {
"dInt1Base"
} };
88
89
SG::ReadHandleKey<DMTest::CVec>
m_ctrigReadKey
90
{
this
,
"CTrigReadKey"
,
"ctrig"
,
"Key for ctrig object read from SG"
};
91
SG::WriteHandleKey<DMTest::CVec>
m_ctrigWriteKey
92
{
this
,
"CTrigWriteKey"
,
"scopy_ctrig"
,
"Key for ctrig object written to SG"
};
93
SG::WriteDecorHandleKey<DMTest::CVec>
m_ctrigAnInt10Key
94
{
this
,
"CTrigAnInt10Key"
,
"scopy_ctrig.anInt10"
,
"Key for ctrig anInt10 decoration"
};
95
SG::ShallowCopyDecorDeps<DMTest::CVec>
m_ctrigDecorDeps
96
{
this
,
"CTrigDecorHelper"
, {
"dInt1"
} };
97
98
};
99
100
101
}
// namespace DMTest
102
103
104
#endif
// not DATAMODELTESTDATACOMMON_XAODTESTSHALLOWCOPY_H
AthReentrantAlgorithm.h
CVecWithData.h
Test writing a container with metadata.
CVec.h
Class used for testing xAOD data reading/writing.
C.h
Class used for testing xAOD data reading/writing.
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
ShallowCopyDecorDeps.h
Helper to propagate decoration dependencies to a shallow copy.
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
DMTest::xAODTestShallowCopy
Algorithm to do a shallow copy of CVec types.
Definition
xAODTestShallowCopy.h:35
DMTest::xAODTestShallowCopy::m_cinfoDecorDeps
SG::ShallowCopyDecorDeps< DMTest::C > m_cinfoDecorDeps
Definition
xAODTestShallowCopy.h:78
DMTest::xAODTestShallowCopy::execute
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
Definition
xAODTestShallowCopy.cxx:85
DMTest::xAODTestShallowCopy::m_cinfoWriteKey
SG::WriteHandleKey< DMTest::C > m_cinfoWriteKey
Definition
xAODTestShallowCopy.h:74
DMTest::xAODTestShallowCopy::m_cvecWDReadKey
SG::ReadHandleKey< DMTest::CVecWithData > m_cvecWDReadKey
Definition
xAODTestShallowCopy.h:63
DMTest::xAODTestShallowCopy::m_cvecReadKey
SG::ReadHandleKey< DMTest::CVec > m_cvecReadKey
Definition
xAODTestShallowCopy.h:54
DMTest::xAODTestShallowCopy::m_ctrigWriteKey
SG::WriteHandleKey< DMTest::CVec > m_ctrigWriteKey
Definition
xAODTestShallowCopy.h:92
DMTest::xAODTestShallowCopy::m_cvecWriteKey
SG::WriteHandleKey< DMTest::CVec > m_cvecWriteKey
Definition
xAODTestShallowCopy.h:56
DMTest::xAODTestShallowCopy::m_cvecWDAnInt10Key
SG::WriteDecorHandleKey< DMTest::CVecWithData > m_cvecWDAnInt10Key
Definition
xAODTestShallowCopy.h:67
DMTest::xAODTestShallowCopy::m_cinfoReadKey
SG::ReadHandleKey< DMTest::C > m_cinfoReadKey
Definition
xAODTestShallowCopy.h:72
DMTest::xAODTestShallowCopy::m_ctrigDecorDeps
SG::ShallowCopyDecorDeps< DMTest::CVec > m_ctrigDecorDeps
Definition
xAODTestShallowCopy.h:96
DMTest::xAODTestShallowCopy::m_cvecWDWriteKey
SG::WriteHandleKey< DMTest::CVecWithData > m_cvecWDWriteKey
Definition
xAODTestShallowCopy.h:65
DMTest::xAODTestShallowCopy::m_ctrigAnInt10Key
SG::WriteDecorHandleKey< DMTest::CVec > m_ctrigAnInt10Key
Definition
xAODTestShallowCopy.h:94
DMTest::xAODTestShallowCopy::initialize
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
Definition
xAODTestShallowCopy.cxx:33
DMTest::xAODTestShallowCopy::m_cinfoAnInt10Key
SG::WriteDecorHandleKey< DMTest::C > m_cinfoAnInt10Key
Definition
xAODTestShallowCopy.h:76
DMTest::xAODTestShallowCopy::m_cvecWDDecorDeps
SG::ShallowCopyDecorDeps< DMTest::CVecWithData > m_cvecWDDecorDeps
Definition
xAODTestShallowCopy.h:69
DMTest::xAODTestShallowCopy::m_cvecAnInt10Key
SG::WriteDecorHandleKey< DMTest::CVec > m_cvecAnInt10Key
Definition
xAODTestShallowCopy.h:58
DMTest::xAODTestShallowCopy::m_cinfoReadKeyBase
SG::ReadHandleKey< SG::AuxElement > m_cinfoReadKeyBase
Definition
xAODTestShallowCopy.h:83
DMTest::xAODTestShallowCopy::m_cvecDecorDeps
SG::ShallowCopyDecorDeps< DMTest::CVec > m_cvecDecorDeps
Definition
xAODTestShallowCopy.h:60
DMTest::xAODTestShallowCopy::m_cinfoDecorDepsBase
SG::ShallowCopyDecorDeps< SG::AuxElement > m_cinfoDecorDepsBase
Definition
xAODTestShallowCopy.h:87
DMTest::xAODTestShallowCopy::m_cinfoWriteKeyBase
SG::WriteHandleKey< SG::AuxElement > m_cinfoWriteKeyBase
Definition
xAODTestShallowCopy.h:85
DMTest::xAODTestShallowCopy::m_ctrigReadKey
SG::ReadHandleKey< DMTest::CVec > m_ctrigReadKey
Definition
xAODTestShallowCopy.h:90
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::ShallowCopyDecorDeps
Helper to propagate decoration dependencies to a shallow copy.
Definition
StoreGate/StoreGate/ShallowCopyDecorDeps.h:75
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition
StoreGate/StoreGate/WriteDecorHandleKey.h:90
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
DMTest
Definition
B.h:23
Generated on
for ATLAS Offline Software by
1.17.0