Commit 20f8c4c0 authored by Scott Snyder's avatar Scott Snyder Committed by Graeme Stewart
Browse files

Use copyThinned to copy the aux stores when writing. (xAODTrigEgammaAthenaPool-00-00-03)

	* Tagging xAODTrigEgammaAthenaPool-00-00-03.
	* src/xAODTrigElectronAuxContainerCnv.cxx,
	src/xAODTrigPhotonAuxContainerCnv.cxx: Use copyThinned to copy the
	aux stores when writing.
parent ad78546c
......@@ -11,10 +11,12 @@ use AtlasPolicy AtlasPolicy-*
private
# Base package(s):
use GaudiInterface GaudiInterface-* External
#use GaudiInterface GaudiInterface-* External
# POOL package(s):
use AthenaPoolUtilities AthenaPoolUtilities-* Database/AthenaPOOL
use AthContainers AthContainers-* Control
use AthenaKernel AthenaKernel-* Control
# EDM package(s):
use xAODTrigEgamma xAODTrigEgamma-* Event/xAOD
......
......@@ -9,6 +9,8 @@
// Local include(s):
#include "xAODTrigElectronAuxContainerCnv.h"
#include "AthContainers/tools/copyThinned.h"
#include "AthenaKernel/IThinningSvc.h"
xAODTrigElectronAuxContainerCnv::xAODTrigElectronAuxContainerCnv( ISvcLocator* svcLoc )
: xAODTrigElectronAuxContainerCnvBase( svcLoc ) {
......@@ -20,10 +22,7 @@ xAODTrigElectronAuxContainerCnv::
createPersistent( xAOD::TrigElectronAuxContainer* trans ) {
// Create a copy of the container:
xAOD::TrigElectronAuxContainer* result =
new xAOD::TrigElectronAuxContainer( *trans );
return result;
return SG::copyThinned (*trans, IThinningSvc::instance());
}
xAOD::TrigElectronAuxContainer* xAODTrigElectronAuxContainerCnv::createTransient() {
......
......@@ -9,6 +9,8 @@
// Local include(s):
#include "xAODTrigPhotonAuxContainerCnv.h"
#include "AthContainers/tools/copyThinned.h"
#include "AthenaKernel/IThinningSvc.h"
xAODTrigPhotonAuxContainerCnv::xAODTrigPhotonAuxContainerCnv( ISvcLocator* svcLoc )
: xAODTrigPhotonAuxContainerCnvBase( svcLoc ) {
......@@ -20,10 +22,7 @@ xAODTrigPhotonAuxContainerCnv::
createPersistent( xAOD::TrigPhotonAuxContainer* trans ) {
// Create a copy of the container:
xAOD::TrigPhotonAuxContainer* result =
new xAOD::TrigPhotonAuxContainer( *trans );
return result;
return SG::copyThinned (*trans, IThinningSvc::instance());
}
xAOD::TrigPhotonAuxContainer* xAODTrigPhotonAuxContainerCnv::createTransient() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment