ATLAS Offline Software
Control
DataModelTest
DataModelTestDataWrite
src
xAODTestWriteHelper.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// $Id$
15
#include "
xAODTestWriteHelper.h
"
16
17
18
namespace
DMTest
{
19
20
21
StatusCode
recordView1
(
SG::WriteHandle
<
ConstDataVector
<
ViewVector<DMTest::CVec>
> >&
h
,
22
std::unique_ptr<
ConstDataVector
<
ViewVector<DMTest::CVec>
> >
view
)
23
{
24
return
h
.record (std::move (
view
));
25
}
26
27
28
StatusCode
recordView2
(
SG::WriteHandle
<
ViewVector<DMTest::HVec>
>&
h
,
29
std::unique_ptr<
ViewVector<DMTest::HVec>
>
view
)
30
{
31
return
h
.record (std::move (
view
));
32
}
33
34
35
}
// namespace DMTest
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ViewVector
Identify view containers to be made persistent.
Definition:
ViewVector.h:67
SG::WriteHandle
Definition:
StoreGate/StoreGate/WriteHandle.h:76
DMTest::recordView2
StatusCode recordView2(SG::WriteHandle< ViewVector< DMTest::HVec > > &h, std::unique_ptr< ViewVector< DMTest::HVec > > view)
Definition:
xAODTestWriteHelper.cxx:28
h
xAODTestWriteHelper.h
Test recording ViewVector w/o having CLASS_DEF visible in compilation unit.
ConstDataVector
DataVector adapter that acts like it holds const pointers.
Definition:
ConstDataVector.h:76
DMTest::recordView1
StatusCode recordView1(SG::WriteHandle< ConstDataVector< ViewVector< DMTest::CVec > > > &h, std::unique_ptr< ConstDataVector< ViewVector< DMTest::CVec > > > view)
Definition:
xAODTestWriteHelper.cxx:21
DMTest
Definition:
B.h:23
drawFromPickle.view
view
Definition:
drawFromPickle.py:294
Generated on Thu Nov 7 2024 21:32:08 for ATLAS Offline Software by
1.8.18