ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
DataModelTest
DataModelTestDataCommon
src
xAODTestWriteJVec.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-2024 CERN for the benefit of the ATLAS collaboration.
4
*/
11
12
13
#ifndef DATAMODELTESTDATACOMMON_XAODTESTWRITEJVEC_H
14
#define DATAMODELTESTDATACOMMON_XAODTESTWRITEJVEC_H
15
16
17
#include "
DataModelTestDataCommon/JVec.h
"
18
#include "
DataModelTestDataCommon/JVecContainer.h
"
19
#include "
DataModelTestDataCommon/CVec.h
"
20
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
21
#include "
StoreGate/ReadHandleKey.h
"
22
#include "
StoreGate/WriteHandleKey.h
"
23
#include "
StoreGate/WriteDecorHandleKey.h
"
24
25
26
namespace
DMTest
{
27
28
32
class
xAODTestWriteJVec
33
:
public
AthReentrantAlgorithm
34
{
35
public
:
36
using
AthReentrantAlgorithm::AthReentrantAlgorithm;
37
38
42
virtual
StatusCode
initialize
()
override
;
43
44
48
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
49
50
51
private
:
52
StatusCode
fillJVec
(
const
std::string& key1,
const
CVec
& cvec1,
53
size_t
ndx,
JVec
& jvec)
const
;
54
55
56
StatusCode
decorJVec
(
const
EventContext& ctx)
const
;
57
58
SG::ReadHandleKey<DMTest::CVec>
m_cvecKey
59
{
this
,
"CVecKey"
,
"cvec"
,
"CVec object to target by links"
};
60
61
SG::WriteHandleKey<DMTest::JVecContainer>
m_jvecContainerKey
62
{
this
,
"JVecContainerKey"
,
"jvecContainer"
,
"JVec container object to create"
};
63
64
SG::WriteHandleKey<DMTest::JVec>
m_jvecInfoKey
65
{
this
,
"JVecInfoKey"
,
"jvecInfo"
,
"Standalone JVec object to create"
};
66
67
SG::WriteDecorHandleKey<DMTest::JVecContainer>
m_jvecDecorKey
68
{
this
,
"JVecDecorKey"
,
"jvecContainer.decorJVec"
,
""
};
69
70
SG::WriteDecorHandleKey<DMTest::JVec>
m_jvecInfoDecorKey
71
{
this
,
"JVecInfoDecorKey"
,
"jvecInfo.decorJVec"
,
""
};
72
};
73
74
75
}
// namespace DMTest
76
77
78
#endif
// not DATAMODELTESTDATACOMMON_XAODTESTWRITEJVEC_H
AthReentrantAlgorithm.h
CVec.h
Class used for testing xAOD data reading/writing.
JVecContainer.h
For testing jagged vectors.
JVec.h
For testing jagged vectors.
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
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::xAODTestWriteJVec
Test writing jagged vectors.
Definition
xAODTestWriteJVec.h:34
DMTest::xAODTestWriteJVec::m_jvecDecorKey
SG::WriteDecorHandleKey< DMTest::JVecContainer > m_jvecDecorKey
Definition
xAODTestWriteJVec.h:68
DMTest::xAODTestWriteJVec::m_jvecInfoDecorKey
SG::WriteDecorHandleKey< DMTest::JVec > m_jvecInfoDecorKey
Definition
xAODTestWriteJVec.h:71
DMTest::xAODTestWriteJVec::m_jvecContainerKey
SG::WriteHandleKey< DMTest::JVecContainer > m_jvecContainerKey
Definition
xAODTestWriteJVec.h:62
DMTest::xAODTestWriteJVec::fillJVec
StatusCode fillJVec(const std::string &key1, const CVec &cvec1, size_t ndx, JVec &jvec) const
Definition
xAODTestWriteJVec.cxx:93
DMTest::xAODTestWriteJVec::m_cvecKey
SG::ReadHandleKey< DMTest::CVec > m_cvecKey
Definition
xAODTestWriteJVec.h:59
DMTest::xAODTestWriteJVec::execute
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
Definition
xAODTestWriteJVec.cxx:54
DMTest::xAODTestWriteJVec::m_jvecInfoKey
SG::WriteHandleKey< DMTest::JVec > m_jvecInfoKey
Definition
xAODTestWriteJVec.h:65
DMTest::xAODTestWriteJVec::decorJVec
StatusCode decorJVec(const EventContext &ctx) const
Definition
xAODTestWriteJVec.cxx:123
DMTest::xAODTestWriteJVec::initialize
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
Definition
xAODTestWriteJVec.cxx:40
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
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
DMTest::CVec
CVec_v1 CVec
Definition
CVec.h:26
DMTest::JVec
JVec_v1 JVec
Definition
JVec.h:23
Generated on
for ATLAS Offline Software by
1.17.0