ATLAS Offline Software
Loading...
Searching...
No Matches
DataModelTestDataRead/DataModelTestDataRead/ELVec.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/*
4 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5*/
6
13
14#ifndef DATAMODELTESTDATAREAD_ELVEC_H
15#define DATAMODELTESTDATAREAD_ELVEC_H
16
17
19#include "AthLinks/ElementLink.h"
20#include "AthLinks/ElementLinkVector.h"
21#include "AthLinks/DataLink.h"
26#include "GaudiKernel/ThreadLocalContext.h"
27
28
29namespace DMTest {
30
31
35struct ELVec
36{
37 std::vector<ElementLink<BVec> > m_el;
38 std::vector<DataLink<BVec> > m_dl;
40
42 std::vector<ElementLinkInt_p3> m_el2_p;
43 std::vector<DataLink_p1> m_dl2_p;
44};
45
46
47}
48
49
50namespace SG {
51
52// We need this because we test reading and writing this class
53// without T/P separation.
54template <>
55class ToTransient<DMTest::ELVec>
56{
57public:
58 static bool toTransient (DMTest::ELVec& elv, const EventContext& ctx)
59 {
62 return true;
63 }
64 static bool toTransient (DMTest::ELVec& elv)
65 {
66 return toTransient (elv, Gaudi::Hive::currentContext());
67 }
68};
69
70}
71
72
73CLASS_DEF (DMTest::ELVec, 9639, 1)
74
75
76#endif // not DATAMODELTESTDATAREAD_ELVEC_H
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Class used for testing the new DataVector inheritance scheme.
This file contains the class definition for the ElementLinkVector_p1 class.
ElementLinkVector_p1< uint32_t > ElementLinkIntVector_p1
ElementLinkVector implementation for standalone ROOT.
static bool toTransient(DMTest::ELVec &elv, const EventContext &ctx)
Define a hook for running code after an object has been read.
Definition ToTransient.h:40
static void toTransient(T &)
Definition ToTransient.h:53
Definition B.h:23
Forward declaration.
std::vector< ElementLink< BVec > > m_el
std::vector< ElementLinkInt_p3 > m_el2_p