ATLAS Offline Software
InnerDetector
InDetEventCnv
InDetBCM_EventAthenaPool
src
BCM_RDO_ContainerCnv.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// Pool converter for BCM_RDO_Container
6
// Author: Dominique Tardif <Dominique.Tardif@cern.ch>
7
8
#include "
BCM_RDO_ContainerCnv.h
"
9
10
#include "GaudiKernel/MsgStream.h"
11
12
BCM_RDO_Container_p0
*
BCM_RDO_ContainerCnv::createPersistent
(
BCM_RDO_Container
* transCont) {
13
MsgStream
log
(
msgSvc
(),
"BCM_RDO_ContainerCnv"
);
14
if
(
log
.level()<=
MSG::DEBUG
)
log
<<
MSG::DEBUG
<<
"In BCM_RDO_ContainerCnv::createPersistent"
<<
endmsg
;
15
BCM_RDO_Container_p0
* persCont =
m_Converter
.
createPersistent
(transCont,
log
);
16
if
(
log
.level()<=
MSG::DEBUG
)
log
<<
MSG::DEBUG
<<
"Wrote persistent BCM RDO Container with "
<< persCont->size() <<
" entries"
<<
endmsg
;
17
return
persCont;
18
}
19
20
BCM_RDO_Container
*
BCM_RDO_ContainerCnv::createTransient
() {
21
MsgStream
log
(
msgSvc
(),
"BCM_RDO_ContainerCnv"
);
22
if
(
log
.level()<=
MSG::DEBUG
)
log
<<
MSG::DEBUG
<<
"In BCM_RDO_ContainerCnv::createTransient"
<<
endmsg
;
23
std::unique_ptr<BCM_RDO_Container_p0> persCont(poolReadObject<BCM_RDO_Container_p0>());
24
BCM_RDO_Container
* transCont =
m_Converter
.
createTransient
(persCont.get(),
log
);
25
if
(
log
.level()<=
MSG::DEBUG
)
log
<<
MSG::DEBUG
<<
"Made transient BCM RDO Container with "
<< transCont->
size
() <<
" entries"
<<
endmsg
;
26
return
transCont;
27
}
BCM_RDO_ContainerCnv.h
TPPolyCnvBase::createTransient
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
BCM_RDO_ContainerCnv::createTransient
virtual BCM_RDO_Container * createTransient()
Definition:
BCM_RDO_ContainerCnv.cxx:20
TPAbstractPolyCnvBase::createPersistent
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition:
StdJOSetup.py:36
BCM_RDO_Container
Definition:
BCM_RDO_Container.h:27
endmsg
#define endmsg
Definition:
AnalysisConfig_Ntuple.cxx:63
BCM_RDO_ContainerCnv::createPersistent
virtual BCM_RDO_Container_p0 * createPersistent(BCM_RDO_Container *transCont)
Definition:
BCM_RDO_ContainerCnv.cxx:12
BCM_RDO_Container_p0
Definition:
BCM_RDO_Container_p0.h:14
BCM_RDO_ContainerCnv::m_Converter
BCM_RDO_ContainerCnv_p0 m_Converter
Definition:
BCM_RDO_ContainerCnv.h:25
DEBUG
#define DEBUG
Definition:
page_access.h:11
python.CaloCondTools.log
log
Definition:
CaloCondTools.py:20
DataVector::size
size_type size() const noexcept
Returns the number of elements in the collection.
Generated on Thu Nov 7 2024 21:10:42 for ATLAS Offline Software by
1.8.18