ATLAS Offline Software
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 
18  InDetLowBetaContainer_tlp1 *storage) {
21 }
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 }
InDetLowBetaContainerCnv_tlp1::m_lowBetaCandidateCnv
InDetLowBetaCandidateCnv_p1 m_lowBetaCandidateCnv
Definition: InDetLowBetaContainerCnv_tlp1.h:27
TPAbstractPolyCnvBase::setPStorage
void setPStorage(std::vector< PERS > *storage)
Tell this converter which storage vector it should use to store or retrieve persistent representation...
Definition: TPConverter.h:551
InDetLowBetaContainerCnv_tlp1::setPStorage
virtual void setPStorage(InDetLowBetaContainer_tlp1 *storage)
Definition: InDetLowBetaContainerCnv_tlp1.cxx:17
skel.it
it
Definition: skel.GENtoEVGEN.py:396
TopLevelTPConverter::addMainTPConverter
void addMainTPConverter()
Add the main TP converter to the internal list - should be called from user-defined constructor.
Definition: TopLevelTPConverter.h:146
TopLevelTPCnvBase::addTPConverter
virtual void addTPConverter(ITPConverter *cnv)
Add a TP converter to this top level converter.
Definition: TopLevelTPCnvBase.cxx:11
InDetLowBetaContainer_tlp1
Definition: InDetLowBetaContainer_tlp1.h:13
InDet::InDetLowBetaContainer
Definition: InDetLowBetaContainer.h:23
DataModel_detail::iterator
(Non-const) Iterator class for DataVector/DataList.
Definition: DVLIterator.h:184
InDetLowBetaContainer_tlp1::m_lowBetaCandidate
std::vector< InDetLowBetaCandidate_p1 > m_lowBetaCandidate
Definition: InDetLowBetaContainer_tlp1.h:20
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
InDetLowBetaContainerCnv_tlp1.h
InDetLowBetaContainer_tlp1::m_lowBetaContainers
std::vector< InDetLowBetaContainer_p1 > m_lowBetaContainers
Definition: InDetLowBetaContainer_tlp1.h:19
DataVector::end
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
DEBUG
#define DEBUG
Definition: page_access.h:11
InDetLowBetaContainerCnv_tlp1::InDetLowBetaContainerCnv_tlp1
InDetLowBetaContainerCnv_tlp1()
Definition: InDetLowBetaContainerCnv_tlp1.cxx:9
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
ATLAS_THREAD_SAFE
#define ATLAS_THREAD_SAFE
Definition: checker_macros.h:211
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
DataVector::begin
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.