ATLAS Offline Software
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  */
13 #ifndef DATAMODELTESTDATACOMMON_XAODTESTWRITEJVEC_H
14 #define DATAMODELTESTDATACOMMON_XAODTESTWRITEJVEC_H
15 
16 
24 
25 
26 namespace DMTest {
27 
28 
33  : public AthReentrantAlgorithm
34 {
35 public:
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 
59  { this, "CVecKey", "cvec", "CVec object to target by links" };
60 
62  { this, "JVecContainerKey", "jvecContainer", "JVec container object to create" };
63 
65  { this, "JVecInfoKey", "jvecInfo", "Standalone JVec object to create" };
66 
68  { this, "JVecDecorKey", "jvecContainer.decorJVec", "" };
69 
71  { this, "JVecInfoDecorKey", "jvecInfo.decorJVec", "" };
72 };
73 
74 
75 } // namespace DMTest
76 
77 
78 #endif // not DATAMODELTESTDATACOMMON_XAODTESTWRITEJVEC_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition: StoreGate/StoreGate/WriteDecorHandleKey.h:89
DMTest::xAODTestWriteJVec::m_jvecInfoDecorKey
SG::WriteDecorHandleKey< DMTest::JVec > m_jvecInfoDecorKey
Definition: xAODTestWriteJVec.h:71
JVec.h
For testing jagged vectors.
DMTest::xAODTestWriteJVec::m_jvecDecorKey
SG::WriteDecorHandleKey< DMTest::JVecContainer > m_jvecDecorKey
Definition: xAODTestWriteJVec.h:68
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
JVecContainer.h
For testing jagged vectors.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
DMTest::xAODTestWriteJVec::m_cvecKey
SG::ReadHandleKey< DMTest::CVec > m_cvecKey
Definition: xAODTestWriteJVec.h:59
DMTest::JVec_v1
For testing jagged vectors.
Definition: JVec_v1.h:36
CVec.h
Class used for testing xAOD data reading/writing.
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
DMTest::xAODTestWriteJVec::decorJVec
StatusCode decorJVec(const EventContext &ctx) const
Definition: xAODTestWriteJVec.cxx:123
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
DMTest::xAODTestWriteJVec::m_jvecContainerKey
SG::WriteHandleKey< DMTest::JVecContainer > m_jvecContainerKey
Definition: xAODTestWriteJVec.h:62
DMTest::xAODTestWriteJVec
Test writing jagged vectors.
Definition: xAODTestWriteJVec.h:34
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::fillJVec
StatusCode fillJVec(const std::string &key1, const CVec &cvec1, size_t ndx, JVec &jvec) const
Definition: xAODTestWriteJVec.cxx:93
DMTest::xAODTestWriteJVec::initialize
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
Definition: xAODTestWriteJVec.cxx:40
DMTest
Definition: B.h:23
module_driven_slicing.key1
key1
Definition: module_driven_slicing.py:158