diff --git a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODCaloClusterTrigAuxContainerCnv.cxx b/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODCaloClusterTrigAuxContainerCnv.cxx index 671eb288d5ae6fbb866eb33c605d8acd74c4dedb..67bf50789f5c008fbbbd91dcc66b9022ce6e74f5 100644 --- a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODCaloClusterTrigAuxContainerCnv.cxx +++ b/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODCaloClusterTrigAuxContainerCnv.cxx @@ -1,83 +1,6 @@ /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration */ -// $Id: xAODCaloClusterTrigAuxContainerCnv.cxx 705793 2015-11-04 13:13:26Z krasznaa $ - -// System include(s): -#include -#include - -// Gaudi/Athena include(s): -#include "AthenaKernel/IThinningSvc.h" - -// EDM include(s): -#include "AthContainers/tools/copyThinned.h" -#include "xAODCaloEvent/versions/CaloClusterAuxContainer_v1.h" -#include "xAODCaloEvent/versions/CaloClusterAuxContainer_v2.h" - -// Local include(s): -#include "xAODCaloClusterTrigAuxContainerCnv.h" -#include "xAODCaloClusterTrigAuxContainerOfflineCnv_v1.h" -#include "xAODCaloClusterTrigAuxContainerOfflineCnv_v2.h" - -xAODCaloClusterTrigAuxContainerCnv:: -xAODCaloClusterTrigAuxContainerCnv( ISvcLocator* svcLoc ) - : xAODCaloClusterTrigAuxContainerCnvBase( svcLoc ) { - -} - -xAOD::CaloClusterTrigAuxContainer* -xAODCaloClusterTrigAuxContainerCnv:: -createPersistent( xAOD::CaloClusterTrigAuxContainer* trans ) { - - // Create a copy of the container: - return SG::copyThinned( *trans, IThinningSvc::instance() ); -} - -xAOD::CaloClusterTrigAuxContainer* -xAODCaloClusterTrigAuxContainerCnv::createTransient() { - - // The known ID(s) for this container: - static const pool::Guid v1_guid( "F25EBF21-75CD-4CB7-B33E-76B46213A49B" ); - static const pool::Guid - v2_offline_guid( "451393B0-69CD-11E4-A739-02163E00A64D" ); - static const pool::Guid - v1_offline_guid( "CE498B3B-A32D-43A3-B9B3-C13D136BACFC" ); - - // Check which version of the container we're reading: - if( compareClassGuid( v1_guid ) ) { - - // It's the latest version, read it directly: - return poolReadObject< xAOD::CaloClusterTrigAuxContainer >(); - - } else if( compareClassGuid( v2_offline_guid ) ) { - - // The converter: - static xAODCaloClusterTrigAuxContainerOfflineCnv_v2 converter; - - // Read in the offline v2 version: - std::unique_ptr< xAOD::CaloClusterAuxContainer_v2 > - old( poolReadObject< xAOD::CaloClusterAuxContainer_v2 >() ); - - // Return the converter object: - return converter.createTransient( old.get(), msg() ); - - } else if( compareClassGuid( v1_offline_guid ) ) { - - // The converter: - static xAODCaloClusterTrigAuxContainerOfflineCnv_v1 converter; - - // Read in the offline v1 version: - std::unique_ptr< xAOD::CaloClusterAuxContainer_v1 > - old( poolReadObject< xAOD::CaloClusterAuxContainer_v1 >() ); - - // Return the converter object: - return converter.createTransient( old.get(), msg() ); - } - - // If we didn't recognise the ID: - throw std::runtime_error( "Unsupported version of " - "xAOD::CaloClusterTrigAuxContainer found" ); - return 0; -} +// Event/xAOD/xAODTrigCaloAthenaPool/src/xAODCaloClusterTrigAuxContainerCnv.cxx +// Dummy source so the build system knows this is a custom converter. diff --git a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODCaloClusterTrigAuxContainerCnv.h b/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODCaloClusterTrigAuxContainerCnv.h index f3970f4fb152137949fa04ca7d2fb7766e6b9a12..c6032560943e6ac0d92825835d5c5141c9953389 100644 --- a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODCaloClusterTrigAuxContainerCnv.h +++ b/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODCaloClusterTrigAuxContainerCnv.h @@ -1,7 +1,7 @@ // Dear emacs, this is -*- c++ -*- /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration */ // $Id: xAODCaloClusterTrigAuxContainerCnv.h @@ -9,43 +9,19 @@ #define XAODTRIGCALOATHENAPOOL_XAODCALOCLUSTERTRIGAUXCONTAINERCNV_H // Gaudi/Athena include(s): -#include "AthenaPoolCnvSvc/T_AthenaPoolCustomCnv.h" +#include "AthenaPoolCnvSvc/T_AthenaPoolAuxContainerCnv.h" +#include "AthenaPoolCnvSvc/T_AuxContainerCopyTPCnv.h" // EDM include(s): #include "xAODTrigCalo/CaloClusterTrigAuxContainer.h" +#include "xAODCaloClusterTrigAuxContainerOfflineCnv_v1.h" +#include "xAODCaloClusterTrigAuxContainerOfflineCnv_v2.h" + + +typedef T_AthenaPoolAuxContainerCnv< xAOD::CaloClusterTrigAuxContainer, + xAODCaloClusterTrigAuxContainerOfflineCnv_v2, + xAODCaloClusterTrigAuxContainerOfflineCnv_v1 > + xAODCaloClusterTrigAuxContainerCnv; -/// Base class for the converter -typedef T_AthenaPoolCustomCnv< xAOD::CaloClusterTrigAuxContainer, - xAOD::CaloClusterTrigAuxContainer > - xAODCaloClusterTrigAuxContainerCnvBase; - -/** - * @short POOL converter for the xAOD::CaloClusterTrigAuxContainer class - * - * @author Aranzazu Ruiz Martinez - * @author Attila Krasznahorkay - * - * $Revision: 705793 $ - * $Date: 2015-11-04 14:13:26 +0100 (Wed, 04 Nov 2015) $ - */ -class xAODCaloClusterTrigAuxContainerCnv : - public xAODCaloClusterTrigAuxContainerCnvBase { - - // Declare the factory as our friend: - friend class CnvFactory< xAODCaloClusterTrigAuxContainerCnv >; - -protected: - /// Converter constructor -public: - xAODCaloClusterTrigAuxContainerCnv( ISvcLocator* svcLoc ); -protected: - - /// Function preparing the container to be written out - virtual xAOD::CaloClusterTrigAuxContainer* - createPersistent( xAOD::CaloClusterTrigAuxContainer* trans ); - /// Function reading in the object from the input file - virtual xAOD::CaloClusterTrigAuxContainer* createTransient(); - -}; // class xAODCaloClusterTrigAuxContainerCnv #endif // XAODTRIGCALOATHENAPOOL_XAODCALOCLUSTERTRIGAUXCONTAINERCNV_H diff --git a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODCaloClusterTrigAuxContainerOfflineCnv_v1.cxx b/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODCaloClusterTrigAuxContainerOfflineCnv_v1.cxx deleted file mode 100644 index a3ec32a303beecf084c7cbdeee697a31ed98e3f2..0000000000000000000000000000000000000000 --- a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODCaloClusterTrigAuxContainerOfflineCnv_v1.cxx +++ /dev/null @@ -1,76 +0,0 @@ -/* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration -*/ - -// $Id: xAODCaloClusterTrigAuxContainerOfflineCnv_v1.cxx 705793 2015-11-04 13:13:26Z krasznaa $ - -// System include(s): -#include - -// Gaudi/Athena include(s): -#include "GaudiKernel/MsgStream.h" - -// Core EDM include(s): -#include "AthContainers/tools/copyAuxStoreThinned.h" - -// Local include(s): -#include "xAODCaloClusterTrigAuxContainerOfflineCnv_v1.h" - -/// Convenience macro for setting the level of output messages -#define MSGLVL MSG::DEBUG - -/// Another convenience macro for printing messages in the converter -#define ATH_MSG( MSG ) \ - do { \ - if( log.level() <= MSGLVL ) { \ - log << MSGLVL << MSG << endmsg; \ - } \ - } while( 0 ) - -xAODCaloClusterTrigAuxContainerOfflineCnv_v1:: -xAODCaloClusterTrigAuxContainerOfflineCnv_v1() - : T_AthenaPoolTPCnvBase< xAOD::CaloClusterTrigAuxContainer, - xAOD::CaloClusterAuxContainer_v1 >() { - -} - -void xAODCaloClusterTrigAuxContainerOfflineCnv_v1:: -persToTrans( const xAOD::CaloClusterAuxContainer_v1* oldObj, - xAOD::CaloClusterTrigAuxContainer* newObj, - MsgStream& log ) { - - // Greet the user: - ATH_MSG( "Converting xAOD::CaloClusterAuxContainer_v1 to " - "xAOD::CaloClusterTrigAuxContainer..." ); - - // Clear the transient object: - newObj->resize( 0 ); - - // Copy the payload of the v1 object into the latest one by misusing - // the thinning code a bit... - SG::copyAuxStoreThinned( *oldObj, *newObj, 0 ); - - // Print what happened: - ATH_MSG( "Converting xAOD::CaloClusterAuxContainer_v1 to " - "xAOD::CaloClusterTrigAuxContainer [OK]" ); - - return; -} - -/// This function should never be called, as we are not supposed to convert -/// object before writing. -/// -void xAODCaloClusterTrigAuxContainerOfflineCnv_v1:: -transToPers( const xAOD::CaloClusterTrigAuxContainer*, - xAOD::CaloClusterAuxContainer_v1*, - MsgStream& log ) { - - log << MSG::ERROR - << "Somebody called xAODCaloClusterTrigAuxContainerOfflineCnv_v1::" - << "transToPers" << endmsg; - throw std::runtime_error( "Somebody called " - "xAODCaloClusterTrigAuxContainerOfflineCnv_v1::" - "transToPers" ); - - return; -} diff --git a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODCaloClusterTrigAuxContainerOfflineCnv_v1.h b/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODCaloClusterTrigAuxContainerOfflineCnv_v1.h index e1a0297414d4c9765779235bd91d9179afc13032..ca634bd73f25613e366bc92bc50687800b04aa7b 100644 --- a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODCaloClusterTrigAuxContainerOfflineCnv_v1.h +++ b/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODCaloClusterTrigAuxContainerOfflineCnv_v1.h @@ -1,7 +1,7 @@ // Dear emacs, this is -*- c++ -*- /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration */ // $Id: xAODCaloClusterTrigAuxContainerOfflineCnv_v1.h 705793 2015-11-04 13:13:26Z krasznaa $ @@ -9,12 +9,13 @@ #define XAODTRIGCALOATHENAPOOL_XAODCALOCLUSTERTRIGAUXCONTAINEROFFLINECNV_V1_H // Gaudi/Athena include(s): -#include "AthenaPoolCnvSvc/T_AthenaPoolTPConverter.h" +#include "AthenaPoolCnvSvc/T_AuxContainerCopyTPCnv.h" // EDM include(s): #include "xAODCaloEvent/versions/CaloClusterAuxContainer_v1.h" #include "xAODTrigCalo/CaloClusterTrigAuxContainer.h" + /// Converter class used to read xAOD::CaloClusterAuxContainer_v1 /// /// Since we switched from using the offline xAOD::CaloClusterAuxContainer @@ -23,28 +24,9 @@ /// objects into the trigger ones automatically, to be able to read old /// RAW files correctly. /// -/// @author Attila Krasznahorkay -/// -/// $Revision: 705793 $ -/// $Date: 2015-11-04 14:13:26 +0100 (Wed, 04 Nov 2015) $ -/// -class xAODCaloClusterTrigAuxContainerOfflineCnv_v1 : - public T_AthenaPoolTPCnvBase< xAOD::CaloClusterTrigAuxContainer, - xAOD::CaloClusterAuxContainer_v1 > { - -public: - /// Default constructor - xAODCaloClusterTrigAuxContainerOfflineCnv_v1(); - - /// Function converting from the old type to the current one - virtual void persToTrans( const xAOD::CaloClusterAuxContainer_v1* oldObj, - xAOD::CaloClusterTrigAuxContainer* newObj, - MsgStream& log ); - /// Dummy function inherited from the base class - virtual void transToPers( const xAOD::CaloClusterTrigAuxContainer*, - xAOD::CaloClusterAuxContainer_v1*, - MsgStream& log ); - -}; // class xAODCaloClusterTrigAuxContainerOfflineCnv_v1 +typedef T_AuxContainerCopyTPCnv< xAOD::CaloClusterTrigAuxContainer, + xAOD::CaloClusterAuxContainer_v1 > + xAODCaloClusterTrigAuxContainerOfflineCnv_v1; + #endif // XAODTRIGCALOATHENAPOOL_XAODCALOCLUSTERTRIGAUXCONTAINEROFFLINECNV_V1_H diff --git a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODCaloClusterTrigAuxContainerOfflineCnv_v2.cxx b/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODCaloClusterTrigAuxContainerOfflineCnv_v2.cxx deleted file mode 100644 index 144d9f7bdc65d3d5608352d4a8c069f8fe82f974..0000000000000000000000000000000000000000 --- a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODCaloClusterTrigAuxContainerOfflineCnv_v2.cxx +++ /dev/null @@ -1,76 +0,0 @@ -/* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration -*/ - -// $Id: xAODCaloClusterTrigAuxContainerOfflineCnv_v2.cxx 705793 2015-11-04 13:13:26Z krasznaa $ - -// System include(s): -#include - -// Gaudi/Athena include(s): -#include "GaudiKernel/MsgStream.h" - -// Core EDM include(s): -#include "AthContainers/tools/copyAuxStoreThinned.h" - -// Local include(s): -#include "xAODCaloClusterTrigAuxContainerOfflineCnv_v2.h" - -/// Convenience macro for setting the level of output messages -#define MSGLVL MSG::DEBUG - -/// Another convenience macro for printing messages in the converter -#define ATH_MSG( MSG ) \ - do { \ - if( log.level() <= MSGLVL ) { \ - log << MSGLVL << MSG << endmsg; \ - } \ - } while( 0 ) - -xAODCaloClusterTrigAuxContainerOfflineCnv_v2:: -xAODCaloClusterTrigAuxContainerOfflineCnv_v2() - : T_AthenaPoolTPCnvBase< xAOD::CaloClusterTrigAuxContainer, - xAOD::CaloClusterAuxContainer_v2 >() { - -} - -void xAODCaloClusterTrigAuxContainerOfflineCnv_v2:: -persToTrans( const xAOD::CaloClusterAuxContainer_v2* oldObj, - xAOD::CaloClusterTrigAuxContainer* newObj, - MsgStream& log ) { - - // Greet the user: - ATH_MSG( "Converting xAOD::CaloClusterAuxContainer_v2 to " - "xAOD::CaloClusterTrigAuxContainer..." ); - - // Clear the transient object: - newObj->resize( 0 ); - - // Copy the payload of the v1 object into the latest one by misusing - // the thinning code a bit... - SG::copyAuxStoreThinned( *oldObj, *newObj, 0 ); - - // Print what happened: - ATH_MSG( "Converting xAOD::CaloClusterAuxContainer_v2 to " - "xAOD::CaloClusterTrigAuxContainer [OK]" ); - - return; -} - -/// This function should never be called, as we are not supposed to convert -/// object before writing. -/// -void xAODCaloClusterTrigAuxContainerOfflineCnv_v2:: -transToPers( const xAOD::CaloClusterTrigAuxContainer*, - xAOD::CaloClusterAuxContainer_v2*, - MsgStream& log ) { - - log << MSG::ERROR - << "Somebody called xAODCaloClusterTrigAuxContainerOfflineCnv_v2::" - << "transToPers" << endmsg; - throw std::runtime_error( "Somebody called " - "xAODCaloClusterTrigAuxContainerOfflineCnv_v2::" - "transToPers" ); - - return; -} diff --git a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODCaloClusterTrigAuxContainerOfflineCnv_v2.h b/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODCaloClusterTrigAuxContainerOfflineCnv_v2.h index 31cfb4bdaacbf4ce6fba89cca910629ffc72d7ed..da82aecff6d9482683da496b3cf8216fb89df1f9 100644 --- a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODCaloClusterTrigAuxContainerOfflineCnv_v2.h +++ b/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODCaloClusterTrigAuxContainerOfflineCnv_v2.h @@ -1,7 +1,7 @@ // Dear emacs, this is -*- c++ -*- /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration */ // $Id: xAODCaloClusterTrigAuxContainerOfflineCnv_v2.h 705793 2015-11-04 13:13:26Z krasznaa $ @@ -9,7 +9,7 @@ #define XAODTRIGCALOATHENAPOOL_XAODCALOCLUSTERTRIGAUXCONTAINEROFFLINECNV_V2_H // Gaudi/Athena include(s): -#include "AthenaPoolCnvSvc/T_AthenaPoolTPConverter.h" +#include "AthenaPoolCnvSvc/T_AuxContainerCopyTPCnv.h" // EDM include(s): #include "xAODCaloEvent/versions/CaloClusterAuxContainer_v2.h" @@ -23,28 +23,9 @@ /// objects into the trigger ones automatically, to be able to read old /// RAW files correctly. /// -/// @author Attila Krasznahorkay -/// -/// $Revision: 705793 $ -/// $Date: 2015-11-04 14:13:26 +0100 (Wed, 04 Nov 2015) $ -/// -class xAODCaloClusterTrigAuxContainerOfflineCnv_v2 : - public T_AthenaPoolTPCnvBase< xAOD::CaloClusterTrigAuxContainer, - xAOD::CaloClusterAuxContainer_v2 > { - -public: - /// Default constructor - xAODCaloClusterTrigAuxContainerOfflineCnv_v2(); - - /// Function converting from the old type to the current one - virtual void persToTrans( const xAOD::CaloClusterAuxContainer_v2* oldObj, - xAOD::CaloClusterTrigAuxContainer* newObj, - MsgStream& log ); - /// Dummy function inherited from the base class - virtual void transToPers( const xAOD::CaloClusterTrigAuxContainer*, - xAOD::CaloClusterAuxContainer_v2*, - MsgStream& log ); +typedef T_AuxContainerCopyTPCnv< xAOD::CaloClusterTrigAuxContainer, + xAOD::CaloClusterAuxContainer_v2 > + xAODCaloClusterTrigAuxContainerOfflineCnv_v2; -}; // class xAODCaloClusterTrigAuxContainerOfflineCnv_v2 #endif // XAODTRIGCALOATHENAPOOL_XAODCALOCLUSTERTRIGAUXCONTAINEROFFLINECNV_V2_H diff --git a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigCaloClusterAuxContainerCnv.cxx b/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigCaloClusterAuxContainerCnv.cxx deleted file mode 100644 index 4e30d4392f6be609f62e0c2cbd14b3a885ec2036..0000000000000000000000000000000000000000 --- a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigCaloClusterAuxContainerCnv.cxx +++ /dev/null @@ -1,44 +0,0 @@ -/* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration -*/ - -// $Id: xAODTrigCaloClusterAuxContainerCnv.cxx - -// System include(s): -#include - -// Local include(s): -#include "xAODTrigCaloClusterAuxContainerCnv.h" - -xAODTrigCaloClusterAuxContainerCnv::xAODTrigCaloClusterAuxContainerCnv( ISvcLocator* svcLoc ) - : xAODTrigCaloClusterAuxContainerCnvBase( svcLoc ) { - -} - -xAOD::TrigCaloClusterAuxContainer* -xAODTrigCaloClusterAuxContainerCnv:: -createPersistent( xAOD::TrigCaloClusterAuxContainer* trans ) { - - // Create a copy of the container: - xAOD::TrigCaloClusterAuxContainer* result = - new xAOD::TrigCaloClusterAuxContainer( *trans ); - - return result; -} - -xAOD::TrigCaloClusterAuxContainer* xAODTrigCaloClusterAuxContainerCnv::createTransient() { - - // The known ID(s) for this container: - static const pool::Guid v1_guid( "4A2F55AF-D465-42A8-A4CF-2DB84D9628E5" ); - - // Check which version of the container we're reading: - if( compareClassGuid( v1_guid ) ) { - // It's the latest version, read it directly: - return poolReadObject< xAOD::TrigCaloClusterAuxContainer >(); - } - - // If we didn't recognise the ID: - throw std::runtime_error( "Unsupported version of " - "xAOD::TrigCaloClusterAuxContainer found" ); - return 0; -} diff --git a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigCaloClusterAuxContainerCnv.h b/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigCaloClusterAuxContainerCnv.h deleted file mode 100644 index ed69acdb85798b160e0d0371b74fb1f8c4a3bd42..0000000000000000000000000000000000000000 --- a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigCaloClusterAuxContainerCnv.h +++ /dev/null @@ -1,51 +0,0 @@ -// Dear emacs, this is -*- c++ -*- - -/* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration -*/ - -// $Id: xAODTrigCaloClusterAuxContainerCnv.h -#ifndef XAODTRIGCALOATHENAPOOL_XAODTRIGCALOCLUSTERAUXCONTAINERCNV_H -#define XAODTRIGCALOATHENAPOOL_XAODTRIGCALOCLUSTERAUXCONTAINERCNV_H - -// Gaudi/Athena include(s): -#include "AthenaPoolCnvSvc/T_AthenaPoolCustomCnv.h" - -// EDM include(s): -#include "xAODTrigCalo/TrigCaloClusterAuxContainer.h" - -/// Base class for the converter -typedef T_AthenaPoolCustomCnv< xAOD::TrigCaloClusterAuxContainer, - xAOD::TrigCaloClusterAuxContainer > - xAODTrigCaloClusterAuxContainerCnvBase; - -/** - * @short POOL converter for the xAOD::TrigCaloClusterAuxContainer class - * - * @author Aranzazu Ruiz Martinez - * @author Attila Krasznahorkay - * - * $Revision: 592328 $ - * $Date: 2014-04-10 12:58:05 +0200 (Thu, 10 Apr 2014) $ - */ -class xAODTrigCaloClusterAuxContainerCnv : - public xAODTrigCaloClusterAuxContainerCnvBase { - - // Declare the factory as our friend: - friend class CnvFactory< xAODTrigCaloClusterAuxContainerCnv >; - -protected: - /// Converter constructor -public: - xAODTrigCaloClusterAuxContainerCnv( ISvcLocator* svcLoc ); -protected: - - /// Function preparing the container to be written out - virtual xAOD::TrigCaloClusterAuxContainer* - createPersistent( xAOD::TrigCaloClusterAuxContainer* trans ); - /// Function reading in the object from the input file - virtual xAOD::TrigCaloClusterAuxContainer* createTransient(); - -}; // class xAODTrigCaloClusterAuxContainerCnv - -#endif // XAODTRIGCALOATHENAPOOL_XAODTRIGCALOCLUSTERAUXCONTAINERCNV_H diff --git a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigCaloClusterContainerCnv.cxx b/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigCaloClusterContainerCnv.cxx deleted file mode 100644 index cfa0cecff05db1014f906d294e5a05b01b20a201..0000000000000000000000000000000000000000 --- a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigCaloClusterContainerCnv.cxx +++ /dev/null @@ -1,76 +0,0 @@ -/* - Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration -*/ - - -// System include(s): -#include - -// Local include(s): -#include "xAODTrigCaloClusterContainerCnv.h" - -namespace { - - /// Helper function setting up the container's link to its auxiliary store - void setStoreLink( SG::AuxVectorBase* cont, const std::string& key ) { - - // The link to set up: - DataLink< SG::IConstAuxStore > link( key + "Aux." ); - - // Give it to the container: - cont->setStore( link ); - - return; - } - -} // private namespace - -xAODTrigCaloClusterContainerCnv:: -xAODTrigCaloClusterContainerCnv( ISvcLocator* svcLoc ) - : xAODTrigCaloClusterContainerCnvBase( svcLoc ) { - -} - -StatusCode xAODTrigCaloClusterContainerCnv::createObj( IOpaqueAddress* pAddr, - DataObject*& pObj ) { - - // Get the key of the container that we're creating: - m_key = *( pAddr->par() + 1 ); - ATH_MSG_VERBOSE( "Key of the xAOD::TrigCaloClusterContainer: " << m_key ); - - // Let the base class do its thing: - return AthenaPoolConverter::createObj( pAddr, pObj ); -} - -xAOD::TrigCaloClusterContainer* -xAODTrigCaloClusterContainerCnv:: -createPersistent( xAOD::TrigCaloClusterContainer* trans ) { - - // Create a view copy of the container: - xAOD::TrigCaloClusterContainer* result = - new xAOD::TrigCaloClusterContainer( trans->begin(), trans->end(), - SG::VIEW_ELEMENTS ); - - // Return the new container: - return result; -} - -xAOD::TrigCaloClusterContainer* -xAODTrigCaloClusterContainerCnv::createTransient() { - - // The known ID(s) for this container: - static const pool::Guid v1_guid( "0C7F7869-C67A-4E4A-8793-358F8B32DFEA" ); - - // Check if we're reading the most up to date type: - if( compareClassGuid( v1_guid ) ) { - xAOD::TrigCaloClusterContainer* c = - poolReadObject< xAOD::TrigCaloClusterContainer >(); - setStoreLink( c, m_key ); - return c; - } - - // If we didn't recognise the ID, let's complain: - throw std::runtime_error( "Unsupported version of " - "xAOD::TrigCaloClusterContainer found" ); - return 0; -} diff --git a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigCaloClusterContainerCnv.h b/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigCaloClusterContainerCnv.h deleted file mode 100644 index c415d8e1b882e1ed33b3020aade4c6871d6063c6..0000000000000000000000000000000000000000 --- a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigCaloClusterContainerCnv.h +++ /dev/null @@ -1,62 +0,0 @@ -// Dear emacs, this is -*- c++ -*- - -/* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration -*/ - -// $Id: xAODTrigCaloClusterContainerCnv.h 592328 2014-04-10 10:58:05Z krasznaa $ -#ifndef XAODTRIGCALOATHENAPOOL_XAODTRIGCALOCLUSTERCONTAINERCNV_H -#define XAODTRIGCALOATHENAPOOL_XAODTRIGCALOCLUSTERCONTAINERCNV_H - -// System include(s): -#include - -// Gaudi/Athena include(s): -#include "AthenaPoolCnvSvc/T_AthenaPoolCustomCnv.h" - -// EDM include(s): -#include "xAODTrigCalo/TrigCaloClusterContainer.h" - -/// Type definition for the converter's base -typedef T_AthenaPoolCustomCnv< xAOD::TrigCaloClusterContainer, - xAOD::TrigCaloClusterContainer > - xAODTrigCaloClusterContainerCnvBase; - -/** - * @short POOL converter for the xAOD::TrigCaloClusterContainer class - * - * Simple converter class making the xAOD::TrigCaloClusterContainer - * class known to POOL. - * - * @author Aranzazu Ruiz Martinez - * @author Attila Krasznahorkay - * - * $Revision: 592328 $ - * $Date: 2014-04-10 12:58:05 +0200 (Thu, 10 Apr 2014) $ - */ -class xAODTrigCaloClusterContainerCnv : - public xAODTrigCaloClusterContainerCnvBase { - - // Declare the factory as our friend: - friend class CnvFactory< xAODTrigCaloClusterContainerCnv >; - -public: - /// Converter constructor - xAODTrigCaloClusterContainerCnv( ISvcLocator* svcLoc ); - - // Re-implemented function in order to get access to the SG key - virtual StatusCode createObj( IOpaqueAddress* pAddr, DataObject*& pObj ); - - /// Function preparing the container to be written out - virtual xAOD::TrigCaloClusterContainer* - createPersistent( xAOD::TrigCaloClusterContainer* trans ); - /// Function reading in the persistent object - virtual xAOD::TrigCaloClusterContainer* createTransient(); - -private: - /// StoreGate key of the container just being created - std::string m_key; - -}; // class xAODTrigCaloClusterContainerCnv - -#endif // XAODTRIGCALOATHENAPOOL_XAODTRIGCALOCLUSTERCONTAINERCNV_H diff --git a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigEMClusterAuxContainerCnv.cxx b/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigEMClusterAuxContainerCnv.cxx index c586b47fe6d252b9662754b8c3fe212b79973982..c4cf4661c84d7de32070938800ced71736a1f732 100644 --- a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigEMClusterAuxContainerCnv.cxx +++ b/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigEMClusterAuxContainerCnv.cxx @@ -1,66 +1,7 @@ /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration */ -// $Id: xAODTrigEMClusterAuxContainerCnv.cxx 711098 2015-11-27 09:37:40Z krasznaa $ +// Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigEMClusterAuxContainerCnv.cxx +// Dummy source so the build system knows this is a custom converter. -// System include(s): -#include -#include - -// Gaudi/Athena include(s): -#include "AthenaKernel/IThinningSvc.h" - -// EDM include(s): -#include "AthContainers/tools/copyThinned.h" -#include "xAODTrigCalo/versions/TrigEMClusterAuxContainer_v1.h" - -// Local include(s): -#include "xAODTrigEMClusterAuxContainerCnv.h" -#include "xAODTrigEMClusterAuxContainerCnv_v1.h" - -xAODTrigEMClusterAuxContainerCnv:: -xAODTrigEMClusterAuxContainerCnv( ISvcLocator* svcLoc ) - : xAODTrigEMClusterAuxContainerCnvBase( svcLoc ) { - -} - -xAOD::TrigEMClusterAuxContainer* -xAODTrigEMClusterAuxContainerCnv:: -createPersistent( xAOD::TrigEMClusterAuxContainer* trans ) { - - // Create a copy of the container: - return SG::copyThinned( *trans, IThinningSvc::instance() ); -} - -xAOD::TrigEMClusterAuxContainer* -xAODTrigEMClusterAuxContainerCnv::createTransient() { - - // The known ID(s) for this container: - static const pool::Guid v1_guid( "CE08F151-A2BA-44ED-B854-7D8B9C8679DE" ); - static const pool::Guid v2_guid( "2AC227DF-EE58-4469-AE60-F066F75DC0DD" ); - - // Check which version of the container we're reading: - if( compareClassGuid( v2_guid ) ) { - - // It's the latest version, read it directly: - return poolReadObject< xAOD::TrigEMClusterAuxContainer >(); - - } else if( compareClassGuid( v1_guid ) ) { - - // The converter: - static xAODTrigEMClusterAuxContainerCnv_v1 converter; - - // Read in the old object: - std::unique_ptr< xAOD::TrigEMClusterAuxContainer_v1 > - old( poolReadObject< xAOD::TrigEMClusterAuxContainer_v1 >() ); - - // Return the converted object: - return converter.createTransient( old.get(), msg() ); - } - - // If we didn't recognise the ID: - throw std::runtime_error( "Unsupported version of " - "xAOD::TrigEMClusterAuxContainer found" ); - return 0; -} diff --git a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigEMClusterAuxContainerCnv.h b/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigEMClusterAuxContainerCnv.h index 33644e4593509f09d544f72c9783b06673c05cdb..5f794cf1c5b7a44cd5ababfa23c5f94b24045085 100644 --- a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigEMClusterAuxContainerCnv.h +++ b/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigEMClusterAuxContainerCnv.h @@ -1,7 +1,7 @@ // Dear emacs, this is -*- c++ -*- /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration */ // $Id: xAODTrigEMClusterAuxContainerCnv.h 711098 2015-11-27 09:37:40Z krasznaa $ @@ -9,43 +9,22 @@ #define XAODTRIGCALOATHENAPOOL_XAODTRIGEMCLUSTERAUXCONTAINERCNV_H // Gaudi/Athena include(s): -#include "AthenaPoolCnvSvc/T_AthenaPoolCustomCnv.h" +#include "AthenaPoolCnvSvc/T_AthenaPoolAuxContainerCnv.h" +#include "AthenaPoolCnvSvc/T_AuxContainerCopyTPCnv.h" + // EDM include(s): #include "xAODTrigCalo/TrigEMClusterAuxContainer.h" +#include "xAODTrigCalo/versions/TrigEMClusterAuxContainer_v1.h" + + +typedef T_AuxContainerCopyTPCnv< xAOD::TrigEMClusterAuxContainer, + xAOD::TrigEMClusterAuxContainer_v1 > + xAODTrigEMClusterAuxContainerCnv_v1; + +typedef T_AthenaPoolAuxContainerCnv< xAOD::TrigEMClusterAuxContainer, + xAODTrigEMClusterAuxContainerCnv_v1 > + xAODTrigEMClusterAuxContainerCnv; -/// Base class for the converter -typedef T_AthenaPoolCustomCnv< xAOD::TrigEMClusterAuxContainer, - xAOD::TrigEMClusterAuxContainer > - xAODTrigEMClusterAuxContainerCnvBase; - -/** - * @short POOL converter for the xAOD::TrigEMClusterAuxContainer class - * - * @author Aranzazu Ruiz Martinez - * @author Attila Krasznahorkay - * - * $Revision: 711098 $ - * $Date: 2015-11-27 10:37:40 +0100 (Fri, 27 Nov 2015) $ - */ -class xAODTrigEMClusterAuxContainerCnv : - public xAODTrigEMClusterAuxContainerCnvBase { - - // Declare the factory as our friend: - friend class CnvFactory< xAODTrigEMClusterAuxContainerCnv >; - -protected: - /// Converter constructor -public: - xAODTrigEMClusterAuxContainerCnv( ISvcLocator* svcLoc ); -protected: - - /// Function preparing the container to be written out - virtual xAOD::TrigEMClusterAuxContainer* - createPersistent( xAOD::TrigEMClusterAuxContainer* trans ); - /// Function reading in the object from the input file - virtual xAOD::TrigEMClusterAuxContainer* createTransient(); - -}; // class xAODTrigEMClusterAuxContainerCnv #endif // XAODTRIGCALOATHENAPOOL_XAODTRIGEMCLUSTERAUXCONTAINERCNV_H diff --git a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigEMClusterAuxContainerCnv_v1.cxx b/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigEMClusterAuxContainerCnv_v1.cxx deleted file mode 100644 index 8ac8badca0959fe0dc6429004c7f7d5f3895ce3f..0000000000000000000000000000000000000000 --- a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigEMClusterAuxContainerCnv_v1.cxx +++ /dev/null @@ -1,75 +0,0 @@ -/* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration -*/ - -// $Id: xAODTrigEMClusterAuxContainerCnv_v1.cxx 621103 2014-10-10 12:30:01Z $ - -// System include(s): -#include - -// Gaudi/Athena include(s): -#include "GaudiKernel/MsgStream.h" - -// Core EDM include(s): -#include "AthContainers/tools/copyAuxStoreThinned.h" - -// Local include(s): -#include "xAODTrigEMClusterAuxContainerCnv_v1.h" -#include "xAODTrigCalo/TrigEMClusterContainer.h" -#include "xAODTrigCalo/versions/TrigEMClusterContainer_v1.h" - -/// Convenience macro for setting the level of output messages -#define MSGLVL MSG::DEBUG - -/// Another convenience macro for printing messages in the converter -#define ATH_MSG( MSG ) \ - do { \ - if( log.level() <= MSGLVL ) { \ - log << MSGLVL << MSG << endmsg; \ - } \ - } while( 0 ) - -xAODTrigEMClusterAuxContainerCnv_v1::xAODTrigEMClusterAuxContainerCnv_v1() - : T_AthenaPoolTPCnvBase< xAOD::TrigEMClusterAuxContainer, - xAOD::TrigEMClusterAuxContainer_v1 >() { - -} - -void xAODTrigEMClusterAuxContainerCnv_v1:: -persToTrans( const xAOD::TrigEMClusterAuxContainer_v1* oldObj, - xAOD::TrigEMClusterAuxContainer* newObj, - MsgStream& log ) { - - // Greet the user: - ATH_MSG( "Converting xAOD::TrigEMClusterAuxContainer_v1 to current version..." ); - - // Clear the transient object: - newObj->resize( 0 ); - - // Copy the payload of the v1 object into the latest one by misusing - // the thinning code a bit... - SG::copyAuxStoreThinned( *oldObj, *newObj, 0 ); - - // Print what happened: - ATH_MSG( "Converting xAOD::TrigEMClusterAuxContainer_v1 to current version " - "[OK]" ); - - return; -} - -/// This function should never be called, as we are not supposed to convert -/// object before writing. -/// -void xAODTrigEMClusterAuxContainerCnv_v1:: -transToPers( const xAOD::TrigEMClusterAuxContainer*, - xAOD::TrigEMClusterAuxContainer_v1*, - MsgStream& log ) { - - log << MSG::ERROR - << "Somebody called xAODTrigEMClusterAuxContainerCnv_v1::transToPers" - << endmsg; - throw std::runtime_error( "Somebody called xAODTrigEMClusterAuxContainerCnv_v1::" - "transToPers" ); - - return; -} diff --git a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigEMClusterAuxContainerCnv_v1.h b/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigEMClusterAuxContainerCnv_v1.h index 980aff8ca8279d2ebd99730543c7fe3358ffbee7..20251a1079aa5a99752c325cd1213e879f7ecec0 100644 --- a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigEMClusterAuxContainerCnv_v1.h +++ b/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigEMClusterAuxContainerCnv_v1.h @@ -1,7 +1,7 @@ // Dear emacs, this is -*- c++ -*- /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration */ // $Id: xAODTrigEMClusterAuxContainerCnv_v1.h 619884 2014-10-03 15:00:40Z $ @@ -9,7 +9,7 @@ #define XAODTRIGCALOATHENAPOOL_XAODTRIGEMCLUSTERAUXCONTAINERCNV_V1_H // Gaudi/Athena include(s): -#include "AthenaPoolCnvSvc/T_AthenaPoolTPConverter.h" +#include "AthenaPoolCnvSvc/T_AuxContainerCopyTPCnv.h" // EDM include(s): #include "xAODTrigCalo/versions/TrigEMClusterAuxContainer_v1.h" @@ -21,28 +21,9 @@ /// to the latest version of the class. In a way that makes this converter /// usable both from the POOL converter, and the BS converter. /// -/// @author Attila Krasznahorkay -/// -/// $Revision: 619884 $ -/// $Date: 2014-10-03 17:00:40 +0200 (Fri, 03 Oct 2014) $ -/// -class xAODTrigEMClusterAuxContainerCnv_v1 : - public T_AthenaPoolTPCnvBase< xAOD::TrigEMClusterAuxContainer, - xAOD::TrigEMClusterAuxContainer_v1 > { - -public: - /// Default constructor - xAODTrigEMClusterAuxContainerCnv_v1(); - - /// Function converting from the old type to the current one - virtual void persToTrans( const xAOD::TrigEMClusterAuxContainer_v1* oldObj, - xAOD::TrigEMClusterAuxContainer* newObj, - MsgStream& log ); - /// Dummy function inherited from the base class - virtual void transToPers( const xAOD::TrigEMClusterAuxContainer*, - xAOD::TrigEMClusterAuxContainer_v1*, - MsgStream& log ); +typedef T_AuxContainerCopyTPCnv< xAOD::TrigEMClusterAuxContainer, + xAOD::TrigEMClusterAuxContainer_v1 > + xAODTrigEMClusterAuxContainerCnv_v1; -}; // class xAODTrigEMClusterAuxContainerCnv_v1 #endif // XAODTRIGCALOATHENAPOOL_XAODTRIGEMCLUSTERAUXCONTAINERCNV_V1_H diff --git a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigEMClusterContainerCnv.cxx b/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigEMClusterContainerCnv.cxx deleted file mode 100644 index 25d456f9df07b33835ecfefa5f37b2681781e03c..0000000000000000000000000000000000000000 --- a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigEMClusterContainerCnv.cxx +++ /dev/null @@ -1,76 +0,0 @@ -/* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration -*/ - -// $Id: xAODTrigEMClusterContainerCnv.cxx - -// System include(s): -#include - -// Local include(s): -#include "xAODTrigEMClusterContainerCnv.h" - -namespace { - - /// Helper function setting up the container's link to its auxiliary store - void setStoreLink( SG::AuxVectorBase* cont, const std::string& key ) { - - // The link to set up: - DataLink< SG::IConstAuxStore > link( key + "Aux." ); - - // Give it to the container: - cont->setStore( link ); - - return; - } - -} // private namespace - -xAODTrigEMClusterContainerCnv:: -xAODTrigEMClusterContainerCnv( ISvcLocator* svcLoc ) - : xAODTrigEMClusterContainerCnvBase( svcLoc ) { - -} - -StatusCode xAODTrigEMClusterContainerCnv::createObj( IOpaqueAddress* pAddr, - DataObject*& pObj ) { - - // Get the key of the container that we're creating: - m_key = *( pAddr->par() + 1 ); - ATH_MSG_VERBOSE( "Key of the xAOD::TrigEMClusterContainer: " << m_key ); - - // Let the base class do its thing: - return AthenaPoolConverter::createObj( pAddr, pObj ); -} - -xAOD::TrigEMClusterContainer* -xAODTrigEMClusterContainerCnv:: -createPersistent( xAOD::TrigEMClusterContainer* trans ) { - - // Create a view copy of the container: - xAOD::TrigEMClusterContainer* result = - new xAOD::TrigEMClusterContainer( trans->begin(), trans->end(), - SG::VIEW_ELEMENTS ); - - // Return the new container: - return result; -} - -xAOD::TrigEMClusterContainer* xAODTrigEMClusterContainerCnv::createTransient() { - - // The known ID(s) for this container: - static const pool::Guid v1_guid( "B37C59EC-1A1E-467C-BFCE-52EA08694C60" ); - - // Check if we're reading the most up to date type: - if( compareClassGuid( v1_guid ) ) { - xAOD::TrigEMClusterContainer* c = - poolReadObject< xAOD::TrigEMClusterContainer >(); - setStoreLink( c, m_key ); - return c; - } - - // If we didn't recognise the ID, let's complain: - throw std::runtime_error( "Unsupported version of " - "xAOD::TrigEMClusterContainer found" ); - return 0; -} diff --git a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigEMClusterContainerCnv.h b/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigEMClusterContainerCnv.h deleted file mode 100644 index 0d3baab8dbc1f7bab9347ecfa2819fd2ab363c61..0000000000000000000000000000000000000000 --- a/Event/xAOD/xAODTrigCaloAthenaPool/src/xAODTrigEMClusterContainerCnv.h +++ /dev/null @@ -1,58 +0,0 @@ -// Dear emacs, this is -*- c++ -*- - -/* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration -*/ - -// $Id: xAODTrigEMClusterContainerCnv.h -#ifndef XAODTRIGCALOATHENAPOOL_XAODTRIGEMCLUSTERCONTAINERCNV_H -#define XAODTRIGCALOATHENAPOOL_XAODTRIGEMCLUSTERCONTAINERCNV_H - -// Gaudi/Athena include(s): -#include "AthenaPoolCnvSvc/T_AthenaPoolCustomCnv.h" - -// EDM include(s): -#include "xAODTrigCalo/TrigEMClusterContainer.h" - -/// Type definition for the converter's base -typedef T_AthenaPoolCustomCnv< xAOD::TrigEMClusterContainer, - xAOD::TrigEMClusterContainer > - xAODTrigEMClusterContainerCnvBase; - -/** - * @short POOL converter for the xAOD::TrigEMClusterContainer class - * - * Simple converter class making the xAOD::TrigEMClusterContainer - * class known to POOL. - * - * @author Aranzazu Ruiz Martinez - * @author Attila Krasznahorkay - * - * $Revision: 592328 $ - * $Date: 2014-04-10 12:58:05 +0200 (Thu, 10 Apr 2014) $ - */ -class xAODTrigEMClusterContainerCnv : public xAODTrigEMClusterContainerCnvBase { - - // Declare the factory as our friend: - friend class CnvFactory< xAODTrigEMClusterContainerCnv >; - -public: - /// Converter constructor - xAODTrigEMClusterContainerCnv( ISvcLocator* svcLoc ); - - // Re-implemented function in order to get access to the SG key - virtual StatusCode createObj( IOpaqueAddress* pAddr, DataObject*& pObj ); - - /// Function preparing the container to be written out - virtual xAOD::TrigEMClusterContainer* - createPersistent( xAOD::TrigEMClusterContainer* trans ); - /// Function reading in the persistent object - virtual xAOD::TrigEMClusterContainer* createTransient(); - -private: - /// StoreGate key of the container just being created - std::string m_key; - -}; // class xAODTrigEMClusterContainerCnv - -#endif // XAODTRIGCALOATHENAPOOL_XAODTRIGEMCLUSTERCONTAINERCNV_H