ATLAS Offline Software
InnerDetector
InDetEventCnv
InDetEventTPCnv
src
InDetLowBetaInfo
InDetLowBetaCandidateCnv_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/InDetLowBetaCandidateCnv_tlp1.h
"
6
7
8
InDetLowBetaCandidateCnv_tlp1::InDetLowBetaCandidateCnv_tlp1
() {
9
// add the "main" base class converter (ie. InDetLowBetaCandidateCnv)
10
addMainTPConverter
();
11
}
12
13
void
InDetLowBetaCandidateCnv_tlp1::setPStorage
(
InDetLowBetaCandidate_tlp1
* storage) {
14
// for the base class converter
15
setMainCnvPStorage
(&storage->
m_lowBetaCandidate
);
16
}
17
18
19
void
T_TPCnv<InDet::InDetLowBetaCandidate, InDetLowBetaCandidate_tlp1 >::persToTrans
20
(
const
InDetLowBetaCandidate_tlp1
*pers,
21
InDet::InDetLowBetaCandidate
*trans,
22
MsgStream &
msg
) {
23
// FIXME: TPConverter uses the same non-const member m_pStorage
24
// for both reading and writing, but we want it to be const
25
// in the former case.
26
InDetLowBetaCandidate_tlp1
*pers_nc
ATLAS_THREAD_SAFE
=
27
const_cast<
InDetLowBetaCandidate_tlp1
*
>
(pers);
28
setPStorage(pers_nc);
29
m_mainConverter.pstoreToTrans(0, trans,
msg
);
30
}
31
32
void
T_TPCnv<InDet::InDetLowBetaCandidate, InDetLowBetaCandidate_tlp1 >::transToPers
(
const
InDet::InDetLowBetaCandidate
*trans,
33
InDetLowBetaCandidate_tlp1
*pers,
34
MsgStream &
msg
) {
35
// if (log.level() <= MSG::DEBUG) msg << MSG::DEBUG << "::transToPers called " << endmsg;
36
this->setTLPersObject(pers);
37
m_mainConverter.virt_toPersistent(trans,
msg
);
38
this->clearTLPersObject();
39
}
InDetLowBetaCandidate_tlp1::m_lowBetaCandidate
std::vector< InDetLowBetaCandidate_p1 > m_lowBetaCandidate
Definition:
InDetLowBetaCandidate_tlp1.h:17
TopLevelTPConverter::addMainTPConverter
void addMainTPConverter()
Add the main TP converter to the internal list - should be called from user-defined constructor.
Definition:
TopLevelTPConverter.h:146
InDetLowBetaCandidateCnv_tlp1.h
InDetLowBetaCandidateCnv_tlp1::setPStorage
virtual void setPStorage(InDetLowBetaCandidate_tlp1 *storage)
Definition:
InDetLowBetaCandidateCnv_tlp1.cxx:13
InDetLowBetaCandidateCnv_tlp1::InDetLowBetaCandidateCnv_tlp1
InDetLowBetaCandidateCnv_tlp1()
Definition:
InDetLowBetaCandidateCnv_tlp1.cxx:8
InDet::InDetLowBetaCandidate
Definition:
InDetLowBetaCandidate.h:24
ATLAS_THREAD_SAFE
#define ATLAS_THREAD_SAFE
Definition:
checker_macros.h:211
InDetLowBetaCandidate_tlp1
Definition:
InDetLowBetaCandidate_tlp1.h:11
TopLevelTPConverter::setMainCnvPStorage
void setMainCnvPStorage(STORAGE *storage)
Set the persistent storage space for the main TP converter.
Definition:
TopLevelTPConverter.h:152
T_TPCnv
Definition:
T_AthenaPoolTPConverter.h:17
python.AutoConfigFlags.msg
msg
Definition:
AutoConfigFlags.py:7
Generated on Thu Nov 7 2024 21:16:58 for ATLAS Offline Software by
1.8.18