ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
DataModelTest
DataModelTestDataWrite
src
xAODTestWrite.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 DATAMODELTESTDATAWRITE_XAODTESTWRITE_H
14
#define DATAMODELTESTDATAWRITE_XAODTESTWRITE_H
15
16
17
#include "
DataModelTestDataCommon/CVec.h
"
18
#include "
DataModelTestDataCommon/CVecWithData.h
"
19
#include "
DataModelTestDataWrite/GVec.h
"
20
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
21
#include "
StoreGate/ReadHandleKey.h
"
22
#include "
StoreGate/WriteHandleKey.h
"
23
24
25
namespace
DMTest
{
26
27
31
class
xAODTestWrite
32
:
public
AthReentrantAlgorithm
33
{
34
public
:
35
using
AthReentrantAlgorithm::AthReentrantAlgorithm;
36
37
41
virtual
StatusCode
initialize
()
override
;
42
43
47
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
48
49
50
private
:
52
StatusCode
write_cvec_with_data
(
unsigned
int
count
,
53
const
EventContext& ctx)
const
;
54
55
SG::ReadHandleKey<DMTest::CVec>
m_cvecKey
56
{
this
,
"CVecKey"
,
"cvec"
,
""
};
57
SG::WriteHandleKey<DMTest::CVec>
m_ctrigKey
58
{
this
,
"CTrigKey"
,
"ctrig"
,
""
};
59
SG::WriteHandleKey<DMTest::GVec>
m_gvecKey
60
{
this
,
"GVecKey"
,
"gvec"
,
""
};
61
SG::WriteHandleKey<DMTest::CVecWithData>
m_cvecWDKey
62
{
this
,
"CVecWDKey"
,
"cvecWD"
,
""
};
63
};
64
65
66
}
// namespace DMTest
67
68
69
#endif
// not DATAMODELTESTDATAWRITE_XAODTESTWRITE_H
AthReentrantAlgorithm.h
CVecWithData.h
Test writing a container with metadata.
CVec.h
Class used for testing xAOD data reading/writing.
GVec.h
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.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
DMTest::xAODTestWrite
Algorithm for creating test aux data.
Definition
xAODTestWrite.h:33
DMTest::xAODTestWrite::initialize
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
Definition
xAODTestWrite.cxx:33
DMTest::xAODTestWrite::m_ctrigKey
SG::WriteHandleKey< DMTest::CVec > m_ctrigKey
Definition
xAODTestWrite.h:58
DMTest::xAODTestWrite::m_gvecKey
SG::WriteHandleKey< DMTest::GVec > m_gvecKey
Definition
xAODTestWrite.h:60
DMTest::xAODTestWrite::m_cvecKey
SG::ReadHandleKey< DMTest::CVec > m_cvecKey
Definition
xAODTestWrite.h:56
DMTest::xAODTestWrite::write_cvec_with_data
StatusCode write_cvec_with_data(unsigned int count, const EventContext &ctx) const
Test writing container with additional data.
Definition
xAODTestWrite.cxx:106
DMTest::xAODTestWrite::m_cvecWDKey
SG::WriteHandleKey< DMTest::CVecWithData > m_cvecWDKey
Definition
xAODTestWrite.h:62
DMTest::xAODTestWrite::execute
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
Definition
xAODTestWrite.cxx:46
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
count
int count(std::string s, const std::string ®x)
count how many occurances of a regx are in a string
Definition
hcg.cxx:148
DMTest
Definition
B.h:23
Generated on
for ATLAS Offline Software by
1.17.0