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-* ...@@ -11,10 +11,12 @@ use AtlasPolicy AtlasPolicy-*
private private
# Base package(s): # Base package(s):
use GaudiInterface GaudiInterface-* External #use GaudiInterface GaudiInterface-* External
# POOL package(s): # POOL package(s):
use AthenaPoolUtilities AthenaPoolUtilities-* Database/AthenaPOOL use AthenaPoolUtilities AthenaPoolUtilities-* Database/AthenaPOOL
use AthContainers AthContainers-* Control
use AthenaKernel AthenaKernel-* Control
# EDM package(s): # EDM package(s):
use xAODTrigEgamma xAODTrigEgamma-* Event/xAOD use xAODTrigEgamma xAODTrigEgamma-* Event/xAOD
......
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
// Local include(s): // Local include(s):
#include "xAODTrigElectronAuxContainerCnv.h" #include "xAODTrigElectronAuxContainerCnv.h"
#include "AthContainers/tools/copyThinned.h"
#include "AthenaKernel/IThinningSvc.h"
xAODTrigElectronAuxContainerCnv::xAODTrigElectronAuxContainerCnv( ISvcLocator* svcLoc ) xAODTrigElectronAuxContainerCnv::xAODTrigElectronAuxContainerCnv( ISvcLocator* svcLoc )
: xAODTrigElectronAuxContainerCnvBase( svcLoc ) { : xAODTrigElectronAuxContainerCnvBase( svcLoc ) {
...@@ -20,10 +22,7 @@ xAODTrigElectronAuxContainerCnv:: ...@@ -20,10 +22,7 @@ xAODTrigElectronAuxContainerCnv::
createPersistent( xAOD::TrigElectronAuxContainer* trans ) { createPersistent( xAOD::TrigElectronAuxContainer* trans ) {
// Create a copy of the container: // Create a copy of the container:
xAOD::TrigElectronAuxContainer* result = return SG::copyThinned (*trans, IThinningSvc::instance());
new xAOD::TrigElectronAuxContainer( *trans );
return result;
} }
xAOD::TrigElectronAuxContainer* xAODTrigElectronAuxContainerCnv::createTransient() { xAOD::TrigElectronAuxContainer* xAODTrigElectronAuxContainerCnv::createTransient() {
......
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
// Local include(s): // Local include(s):
#include "xAODTrigPhotonAuxContainerCnv.h" #include "xAODTrigPhotonAuxContainerCnv.h"
#include "AthContainers/tools/copyThinned.h"
#include "AthenaKernel/IThinningSvc.h"
xAODTrigPhotonAuxContainerCnv::xAODTrigPhotonAuxContainerCnv( ISvcLocator* svcLoc ) xAODTrigPhotonAuxContainerCnv::xAODTrigPhotonAuxContainerCnv( ISvcLocator* svcLoc )
: xAODTrigPhotonAuxContainerCnvBase( svcLoc ) { : xAODTrigPhotonAuxContainerCnvBase( svcLoc ) {
...@@ -20,10 +22,7 @@ xAODTrigPhotonAuxContainerCnv:: ...@@ -20,10 +22,7 @@ xAODTrigPhotonAuxContainerCnv::
createPersistent( xAOD::TrigPhotonAuxContainer* trans ) { createPersistent( xAOD::TrigPhotonAuxContainer* trans ) {
// Create a copy of the container: // Create a copy of the container:
xAOD::TrigPhotonAuxContainer* result = return SG::copyThinned (*trans, IThinningSvc::instance());
new xAOD::TrigPhotonAuxContainer( *trans );
return result;
} }
xAOD::TrigPhotonAuxContainer* xAODTrigPhotonAuxContainerCnv::createTransient() { 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