ATLAS Offline Software
Loading...
Searching...
No Matches
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
6
7
9 // add the "main" base class converter (ie. InDetLowBetaCandidateCnv)
11}
12
14 // for the base class converter
16}
17
18
20 (const InDetLowBetaCandidate_tlp1 *pers,
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.
27 const_cast<InDetLowBetaCandidate_tlp1*>(pers);
28 setPStorage(pers_nc);
29 m_mainConverter.pstoreToTrans(0, trans, msg);
30}
31
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}
#define ATLAS_THREAD_SAFE
virtual void setPStorage(InDetLowBetaCandidate_tlp1 *storage)
std::vector< InDetLowBetaCandidate_p1 > m_lowBetaCandidate
virtual void clearTLPersObject() override
Discard the persistent object.
virtual void setTLPersObject(void *persObj) override
Take ownership of the persistent object.
void setMainCnvPStorage(STORAGE *storage)
Set the persistent storage space for the main TP converter.
void addMainTPConverter()
Add the main TP converter to the internal list - should be called from user-defined constructor.
MsgStream & msg
Definition testRead.cxx:32