ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetEventCnv
InDetEventTPCnv
src
InDetLowBetaInfo
InDetLowBetaContainerCnv_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 "
InDetEventTPCnv/InDetLowBetaInfo/InDetLowBetaContainerCnv_tlp1.h
"
6
7
8
9
InDetLowBetaContainerCnv_tlp1::InDetLowBetaContainerCnv_tlp1
() {
10
// add the "main" base class converter
11
addMainTPConverter
();
12
13
// Add all converters defined in this top level converter:
14
addTPConverter
(&
m_lowBetaCandidateCnv
);
15
}
16
17
void
InDetLowBetaContainerCnv_tlp1::setPStorage
(
18
InDetLowBetaContainer_tlp1
*storage) {
19
setMainCnvPStorage
(&storage->
m_lowBetaContainers
);
20
m_lowBetaCandidateCnv
.setPStorage(&storage->
m_lowBetaCandidate
);
21
}
22
23
void
T_TPCnv<InDet::InDetLowBetaContainer, InDetLowBetaContainer_tlp1>::persToTrans
24
(
const
InDetLowBetaContainer_tlp1
*pers,
25
InDet::InDetLowBetaContainer
*trans,
26
MsgStream &
msg
) {
27
// FIXME: TPConverter uses the same non-const member m_pStorage
28
// for both reading and writing, but we want it to be const
29
// in the former case.
30
InDetLowBetaContainer_tlp1
*pers_nc
ATLAS_THREAD_SAFE
=
31
const_cast<
InDetLowBetaContainer_tlp1
*
>
(pers);
32
this->
setTLPersObject
(pers_nc);
33
m_mainConverter
.pstoreToTrans(0, trans,
msg
);
34
this->
clearTLPersObject
();
35
36
#if 0
37
if
(log.level() <= MSG::DEBUG)
38
{
39
InDet::InDetLowBetaContainer::iterator
it = trans->
begin
();
40
while
(it != trans->
end
()) {
41
if
(!(*it)){
42
msg
<< MSG::DEBUG <<
"InDetLowBetaContainer TP container with NULL element "
43
<<
endmsg
;
44
}
45
it++;
46
}
47
}
48
#endif
49
}
50
51
void
T_TPCnv<InDet::InDetLowBetaContainer, InDetLowBetaContainer_tlp1>::
52
transToPers
(
const
InDet::InDetLowBetaContainer
*trans,
53
InDetLowBetaContainer_tlp1
*pers,
54
MsgStream &
msg
) {
55
// if (log.level() <= MSG::DEBUG) msg << MSG::DEBUG << "::transToPers called " << endmsg;
56
this->
setTLPersObject
(pers);
57
m_mainConverter
.virt_toPersistent(trans,
msg
);
58
this->
clearTLPersObject
();
59
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
InDetLowBetaContainerCnv_tlp1.h
ATLAS_THREAD_SAFE
#define ATLAS_THREAD_SAFE
Definition
checker_macros.h:211
DataVector< InDet::InDetLowBetaCandidate >::iterator
DataModel_detail::iterator< DataVector > iterator
Definition
DataVector.h:842
DataVector::end
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
DataVector::begin
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
InDetLowBetaContainerCnv_tlp1::m_lowBetaCandidateCnv
InDetLowBetaCandidateCnv_p1 m_lowBetaCandidateCnv
Definition
InDetLowBetaContainerCnv_tlp1.h:27
InDetLowBetaContainerCnv_tlp1::InDetLowBetaContainerCnv_tlp1
InDetLowBetaContainerCnv_tlp1()
Definition
InDetLowBetaContainerCnv_tlp1.cxx:9
InDetLowBetaContainerCnv_tlp1::setPStorage
virtual void setPStorage(InDetLowBetaContainer_tlp1 *storage)
A stub for a method that should be provided by the converter creator.
Definition
InDetLowBetaContainerCnv_tlp1.cxx:17
InDetLowBetaContainer_tlp1
Definition
InDetLowBetaContainer_tlp1.h:13
InDetLowBetaContainer_tlp1::m_lowBetaCandidate
std::vector< InDetLowBetaCandidate_p1 > m_lowBetaCandidate
Definition
InDetLowBetaContainer_tlp1.h:20
InDetLowBetaContainer_tlp1::m_lowBetaContainers
std::vector< InDetLowBetaContainer_p1 > m_lowBetaContainers
Definition
InDetLowBetaContainer_tlp1.h:19
InDet::InDetLowBetaContainer
Definition
InDetLowBetaContainer.h:23
T_TPCnv
Definition
T_AthenaPoolTPConverter.h:17
TopLevelTPConverter< InDetLowBetaContainerCnv_p1, InDetLowBetaContainer_tlp1 >::clearTLPersObject
virtual void clearTLPersObject() override
Definition
TopLevelTPCnvBaseP.h:99
TopLevelTPConverter< InDetLowBetaContainerCnv_p1, InDetLowBetaContainer_tlp1 >::setTLPersObject
virtual void setTLPersObject(void *persObj) override
Definition
TopLevelTPCnvBaseP.h:104
TopLevelTPConverter< InDetLowBetaContainerCnv_p1, InDetLowBetaContainer_tlp1 >::addTPConverter
virtual void addTPConverter(ITPConverter *cnv)
Definition
TopLevelTPCnvBase.cxx:11
TopLevelTPConverter< InDetLowBetaContainerCnv_p1, InDetLowBetaContainer_tlp1 >::m_mainConverter
InDetLowBetaContainerCnv_p1 m_mainConverter
Definition
TopLevelTPConverter.h:217
TopLevelTPConverter< InDetLowBetaContainerCnv_p1, InDetLowBetaContainer_tlp1 >::setMainCnvPStorage
void setMainCnvPStorage(STORAGE *storage)
Definition
TopLevelTPConverter.h:152
TopLevelTPConverter< InDetLowBetaContainerCnv_p1, InDetLowBetaContainer_tlp1 >::addMainTPConverter
void addMainTPConverter()
Definition
TopLevelTPConverter.h:146
msg
MsgStream & msg
Definition
testRead.cxx:32
Generated on
for ATLAS Offline Software by
1.17.0