ATLAS Offline Software
Loading...
Searching...
No Matches
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
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:63
BCM_RDO_ContainerCnv.h
BCM_RDO_ContainerCnv::createPersistent
virtual BCM_RDO_Container_p0 * createPersistent(BCM_RDO_Container *transCont)
Definition
BCM_RDO_ContainerCnv.cxx:12
BCM_RDO_ContainerCnv::createTransient
virtual BCM_RDO_Container * createTransient()
Definition
BCM_RDO_ContainerCnv.cxx:20
BCM_RDO_ContainerCnv::m_Converter
BCM_RDO_ContainerCnv_p0 m_Converter
Definition
BCM_RDO_ContainerCnv.h:25
BCM_RDO_Container_p0
Definition
BCM_RDO_Container_p0.h:14
BCM_RDO_Container
Definition
BCM_RDO_Container.h:27
DataVector::size
size_type size() const noexcept
Returns the number of elements in the collection.
T_AthenaPoolCustomCnv< BCM_RDO_Container, BCM_RDO_Container_p0 >::poolReadObject
P * poolReadObject()
Generated on
for ATLAS Offline Software by
1.14.0