ATLAS Offline Software
Tracking
TrkEventCnv
TrkEventTPCnv
src
MVFVxContainerCnv_tlp1.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
TrkEventTPCnv/MVFVxContainerCnv_tlp1.h
"
6
#include "
CxxUtils/checker_macros.h
"
7
8
MVFVxContainerCnv_tlp1::MVFVxContainerCnv_tlp1
()
9
{
10
// Add all converters defined in this top level converter:
11
// never change the order of adding converters!
12
addMainTPConverter
();
13
14
addTPConverter
( &
m_mVFVxCandidateCnv
);
15
addTPConverter
( &
m_mVFVxTrackAtVertexCnv
) ;
16
}
17
18
19
void
MVFVxContainerCnv_tlp1::setPStorage
(
Trk::MVFVxContainer_tlp1
*storage )
20
{
21
setMainCnvPStorage
( &storage->
m_mVFVxContainers
);
22
23
m_mVFVxCandidateCnv
.
setPStorage
(&storage->
m_mVFVxCandidates
);
24
m_mVFVxTrackAtVertexCnv
.
setPStorage
(&storage->
m_mVFVxTrackAtVertices
);
25
26
}
27
28
29
void
T_TPCnv<MVFVxContainer, Trk::MVFVxContainer_tlp1 >::
30
persToTrans
(
const
Trk::MVFVxContainer_tlp1
* pers,
31
MVFVxContainer
* trans,
32
MsgStream&
msg
)
33
{
34
// FIXME: TPConverter uses the same non-const member m_pStorage
35
// for both reading and writing, but we want it to be const
36
// in the former case.
37
Trk::MVFVxContainer_tlp1
* pers_nc
ATLAS_THREAD_SAFE
=
38
const_cast<
Trk::MVFVxContainer_tlp1
*
>
(pers);
39
setPStorage (pers_nc);
40
m_mainConverter.pstoreToTrans (0, trans,
msg
);
41
}
MVFVxContainerCnv_tlp1::m_mVFVxCandidateCnv
MVFVxCandidateCnv_p1 m_mVFVxCandidateCnv
Definition:
MVFVxContainerCnv_tlp1.h:38
Trk::MVFVxContainer_tlp1
Definition:
MVFVxContainer_tlp1.h:18
MVFVxContainerCnv_tlp1::setPStorage
virtual void setPStorage(Trk::MVFVxContainer_tlp1 *storage)
Definition:
MVFVxContainerCnv_tlp1.cxx:19
MVFVxContainer
Definition:
MVFVxContainer.h:31
Trk::MVFVxContainer_tlp1::m_mVFVxContainers
std::vector< MVFVxContainer_p1 > m_mVFVxContainers
Definition:
MVFVxContainer_tlp1.h:25
TopLevelTPConverter::addMainTPConverter
void addMainTPConverter()
Add the main TP converter to the internal list - should be called from user-defined constructor.
Definition:
TopLevelTPConverter.h:146
MVFVxContainerCnv_tlp1::m_mVFVxTrackAtVertexCnv
MVFVxTrackAtVertexCnv_p1 m_mVFVxTrackAtVertexCnv
Definition:
MVFVxContainerCnv_tlp1.h:39
TopLevelTPCnvBase::addTPConverter
virtual void addTPConverter(ITPConverter *cnv)
Add a TP converter to this top level converter.
Definition:
TopLevelTPCnvBase.cxx:11
Trk::MVFVxContainer_tlp1::m_mVFVxTrackAtVertices
std::vector< Trk::MVFVxTrackAtVertex_p1 > m_mVFVxTrackAtVertices
Definition:
MVFVxContainer_tlp1.h:27
Trk::MVFVxContainer_tlp1::m_mVFVxCandidates
std::vector< Trk::MVFVxCandidate_p1 > m_mVFVxCandidates
Definition:
MVFVxContainer_tlp1.h:26
MVFVxContainerCnv_tlp1::MVFVxContainerCnv_tlp1
MVFVxContainerCnv_tlp1()
Definition:
MVFVxContainerCnv_tlp1.cxx:8
ATLAS_THREAD_SAFE
#define ATLAS_THREAD_SAFE
Definition:
checker_macros.h:211
MVFVxContainerCnv_tlp1.h
TopLevelTPConverter::setMainCnvPStorage
void setMainCnvPStorage(STORAGE *storage)
Set the persistent storage space for the main TP converter.
Definition:
TopLevelTPConverter.h:152
checker_macros.h
Define macros for attributes used to control the static checker.
T_TPCnv
Definition:
T_AthenaPoolTPConverter.h:17
python.AutoConfigFlags.msg
msg
Definition:
AutoConfigFlags.py:7
Generated on Thu Nov 7 2024 21:22:39 for ATLAS Offline Software by
1.8.18