ATLAS Offline Software
Loading...
Searching...
No Matches
Reconstruction
TrackParticleTruthTPCnv
src
TrackParticleTruthCollectionContainerCnv_tlp3.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
TrackParticleTruthTPCnv/TrackParticleTruthCollection_p3.h
"
6
#include "
TrackParticleTruthTPCnv/TrackParticleTruthCollectionContainerCnv_tlp3.h
"
7
#include "
CxxUtils/checker_macros.h
"
8
9
TrackParticleTruthCollectionContainerCnv_tlp3::TrackParticleTruthCollectionContainerCnv_tlp3
()
10
{
11
addMainTPConverter
();
12
//addTPConverter(&m_trackparttruthcollCnv );
13
14
}
15
16
void
TrackParticleTruthCollectionContainerCnv_tlp3 :: setPStorage(
17
TrackParticleTruthCollectionContainer_tlp3
*storage)
18
{
19
setMainCnvPStorage
(&storage->
m_trackPartTruthCollConts
);
20
}
21
22
23
T_TPCnv<TrackParticleTruthCollectionContainer,TrackParticleTruthCollectionContainer_tlp3>::T_TPCnv
()
24
{}
25
26
T_TPCnv<TrackParticleTruthCollectionContainer,TrackParticleTruthCollectionContainer_tlp3>::~T_TPCnv
()
27
{}
28
29
void
T_TPCnv<TrackParticleTruthCollectionContainer,TrackParticleTruthCollectionContainer_tlp3>::
30
persToTrans
(
const
TrackParticleTruthCollectionContainer_tlp3
* pers,
31
TrackParticleTruthCollectionContainer
* 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
auto
pers_nc
ATLAS_THREAD_SAFE
=
38
const_cast<
TrackParticleTruthCollectionContainer_tlp3
*
>
(pers);
39
setPStorage
(pers_nc);
40
m_mainConverter
.pstoreToTrans (0, trans,
msg
);
41
}
42
43
void
T_TPCnv<TrackParticleTruthCollectionContainer,TrackParticleTruthCollectionContainer_tlp3>::
44
transToPers
(
45
const
TrackParticleTruthCollectionContainer
* trans,
46
TrackParticleTruthCollectionContainer_tlp3
* pers,
47
MsgStream&
msg
)
48
{
49
this->
setTLPersObject
(pers) ;
50
m_mainConverter
.virt_toPersistent(trans,
msg
);
51
this->
clearTLPersObject
();
52
}
TrackParticleTruthCollectionContainerCnv_tlp3.h
TrackParticleTruthCollectionContainer
DataVector< TrackParticleTruthCollection > TrackParticleTruthCollectionContainer
Definition
TrackParticleTruthCollectionContainer.h:16
TrackParticleTruthCollection_p3.h
checker_macros.h
Define macros for attributes used to control the static checker.
ATLAS_THREAD_SAFE
#define ATLAS_THREAD_SAFE
Definition
checker_macros.h:211
T_TPCnv< TrackParticleTruthCollectionContainer, TrackParticleTruthCollectionContainer_tlp3 >::T_TPCnv
T_TPCnv()
Constructor.
Definition
TrackParticleTruthCollectionContainerCnv_tlp3.cxx:23
TopLevelTPCnvBaseP::clearTLPersObject
virtual void clearTLPersObject() override
Discard the persistent object.
Definition
TopLevelTPCnvBaseP.h:99
TopLevelTPCnvBaseP::setTLPersObject
virtual void setTLPersObject(void *persObj) override
Take ownership of the persistent object.
Definition
TopLevelTPCnvBaseP.h:104
TopLevelTPConverter::m_mainConverter
MAIN_CNV m_mainConverter
Definition
TopLevelTPConverter.h:217
TopLevelTPConverter::setMainCnvPStorage
void setMainCnvPStorage(STORAGE *storage)
Set the persistent storage space for the main TP converter.
Definition
TopLevelTPConverter.h:152
TopLevelTPConverter::addMainTPConverter
void addMainTPConverter()
Add the main TP converter to the internal list - should be called from user-defined constructor.
Definition
TopLevelTPConverter.h:146
TrackParticleTruthCollectionContainerCnv_tlp3::setPStorage
virtual void setPStorage(TrackParticleTruthCollectionContainer_tlp3 *storage)
Definition
TrackParticleTruthCollectionContainerCnv_tlp3.cxx:16
TrackParticleTruthCollectionContainerCnv_tlp3::TrackParticleTruthCollectionContainerCnv_tlp3
TrackParticleTruthCollectionContainerCnv_tlp3()
Definition
TrackParticleTruthCollectionContainerCnv_tlp3.cxx:9
TrackParticleTruthCollectionContainer_tlp3
Definition
TrackParticleTruthCollectionContainer_tlp3.h:19
TrackParticleTruthCollectionContainer_tlp3::m_trackPartTruthCollConts
std::vector< TrackParticleTruthCollectionContainer_p3 > m_trackPartTruthCollConts
Definition
TrackParticleTruthCollectionContainer_tlp3.h:30
msg
MsgStream & msg
Definition
testRead.cxx:32
Generated on
for ATLAS Offline Software by
1.14.0