11#include "GaudiKernel/MsgStream.h"
19#define MSGLVL MSG::DEBUG
22#define ATH_MSG( MSG ) \
24 if( log.level() <= MSGLVL ) { \
25 log << MSGLVL << MSG << endmsg; \
36 MsgStream& log )
const {
39 ATH_MSG(
"Converting xAOD::L2StandAloneMuonContainer_v1 to current version..." );
42 for (
size_t i = 0; i < oldObj->
size(); i++)
43 newObj->
push_back (std::make_unique<xAOD::L2StandAloneMuon>());
46 ATH_MSG(
"Converting xAOD::L2StandAloneMuonContainer_v1 to current version "
58 MsgStream& log )
const {
61 <<
"Somebody called xAODL2StandAloneMuonContainer_v1::transToPers"
63 throw std::runtime_error(
"Somebody called xAODL2StandAloneMuonContainer_v1::"
value_type push_back(value_type pElem)
Add an element to the end of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
void clear()
Erase all the elements in the collection.
virtual void transToPers(const xAOD::L2StandAloneMuonContainer *, xAOD::L2StandAloneMuonContainer_v1 *, MsgStream &log) const override
Dummy function inherited from the base class.
virtual void persToTrans(const xAOD::L2StandAloneMuonContainer_v1 *oldObj, xAOD::L2StandAloneMuonContainer *newObj, MsgStream &log) const override
Function converting from the old type to the current one.
xAODL2StandAloneMuonContainerCnv_v1()
Default constructor.
DataVector< L2StandAloneMuon_v1 > L2StandAloneMuonContainer_v1
Define the trigger calorimeter cluster container as a simple DataVector.
L2StandAloneMuonContainer_v2 L2StandAloneMuonContainer
Define the latest version of the muon SA container.