ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
DataModelTest
DataModelTestDataRead
DataModelTestDataRead
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
18
#include "
DataModelTestDataRead/BVec.h
"
19
#include "AthLinks/ElementLink.h"
20
#include "AthLinks/ElementLinkVector.h"
21
#include "AthLinks/DataLink.h"
22
#include "
DataModelAthenaPool/ElementLinkVector_p1.h
"
23
#include "
DataModelAthenaPool/ElementLink_p3.h
"
24
#include "
DataModelAthenaPool/DataLink_p1.h
"
25
#include "
AthenaKernel/CLASS_DEF.h
"
26
#include "GaudiKernel/ThreadLocalContext.h"
27
28
29
namespace
DMTest
{
30
31
35
struct
ELVec
36
{
37
std::vector<ElementLink<BVec> >
m_el
;
38
std::vector<DataLink<BVec> >
m_dl
;
39
ElementLinkVector<BVec>
m_elv
;
40
41
ElementLinkIntVector_p1
m_elv2_p
;
42
std::vector<ElementLinkInt_p3>
m_el2_p
;
43
std::vector<DataLink_p1>
m_dl2_p
;
44
};
45
46
47
}
48
49
50
namespace
SG
{
51
52
// We need this because we test reading and writing this class
53
// without T/P separation.
54
template
<>
55
class
ToTransient
<
DMTest
::ELVec>
56
{
57
public
:
58
static
bool
toTransient
(
DMTest::ELVec
& elv,
const
EventContext& ctx)
59
{
60
SG::ToTransient<std::vector<ElementLink<DMTest::BVec>
> >
::toTransient
(elv.
m_el
, ctx);
61
SG::ToTransient<std::vector<DataLink<DMTest::BVec>
> >
::toTransient
(elv.
m_dl
, ctx);
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
73
CLASS_DEF
(
DMTest::ELVec
, 9639, 1)
74
75
76
#endif
// not DATAMODELTESTDATAREAD_ELVEC_H
CLASS_DEF.h
macros to associate a CLID to a type
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition
Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
DataLink_p1.h
This file contains the class definition for DataLink_p1 and DataLinkVector_p1.
BVec.h
Class used for testing the new DataVector inheritance scheme.
ElementLinkVector_p1.h
This file contains the class definition for the ElementLinkVector_p1 class.
ElementLinkIntVector_p1
ElementLinkVector_p1< uint32_t > ElementLinkIntVector_p1
Definition
ElementLinkVector_p1.h:62
ElementLink_p3.h
This file contains the class definition for the ElementLink_p3 class.
ElementLinkVector
ElementLinkVector implementation for standalone ROOT.
Definition
AthLinks/ElementLinkVector.h:64
SG::ToTransient< DMTest::ELVec >::toTransient
static bool toTransient(DMTest::ELVec &elv)
Definition
DataModelTestDataRead/DataModelTestDataRead/ELVec.h:64
SG::ToTransient< DMTest::ELVec >::toTransient
static bool toTransient(DMTest::ELVec &elv, const EventContext &ctx)
Definition
DataModelTestDataRead/DataModelTestDataRead/ELVec.h:58
SG::ToTransient
Define a hook for running code after an object has been read.
Definition
ToTransient.h:40
SG::ToTransient::toTransient
static void toTransient(T &)
Definition
ToTransient.h:53
DMTest
Definition
B.h:23
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
DMTest::ELVec
For testing ElementLink.
Definition
DataModelTestDataRead/DataModelTestDataRead/ELVec.h:36
DMTest::ELVec::m_dl2_p
std::vector< DataLink_p1 > m_dl2_p
Definition
DataModelTestDataRead/DataModelTestDataRead/ELVec.h:43
DMTest::ELVec::m_elv2_p
ElementLinkIntVector_p1 m_elv2_p
Definition
DataModelTestDataRead/DataModelTestDataRead/ELVec.h:41
DMTest::ELVec::m_dl
std::vector< DataLink< BVec > > m_dl
Definition
DataModelTestDataRead/DataModelTestDataRead/ELVec.h:38
DMTest::ELVec::m_el
std::vector< ElementLink< BVec > > m_el
Definition
DataModelTestDataRead/DataModelTestDataRead/ELVec.h:37
DMTest::ELVec::m_el2_p
std::vector< ElementLinkInt_p3 > m_el2_p
Definition
DataModelTestDataRead/DataModelTestDataRead/ELVec.h:42
DMTest::ELVec::m_elv
ElementLinkVector< BVec > m_elv
Definition
DataModelTestDataRead/DataModelTestDataRead/ELVec.h:39
Generated on
for ATLAS Offline Software by
1.17.0