ATLAS Offline Software
Loading...
Searching...
No Matches
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
6
7
8
10 // add the "main" base class converter
12
13 // Add all converters defined in this top level converter:
15}
16
22
24 (const InDetLowBetaContainer_tlp1 *pers,
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.
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 {
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
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}
#define endmsg
#define ATLAS_THREAD_SAFE
DataModel_detail::iterator< DataVector > iterator
Definition DataVector.h:842
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
InDetLowBetaCandidateCnv_p1 m_lowBetaCandidateCnv
virtual void setPStorage(InDetLowBetaContainer_tlp1 *storage)
std::vector< InDetLowBetaCandidate_p1 > m_lowBetaCandidate
std::vector< InDetLowBetaContainer_p1 > m_lowBetaContainers
virtual void clearTLPersObject() override
Discard the persistent object.
virtual void setTLPersObject(void *persObj) override
Take ownership of the persistent object.
virtual void addTPConverter(ITPConverter *cnv)
Add a TP converter to this top level converter.
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