|
ATLAS Offline Software
|
Go to the documentation of this file.
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::"
#define ATH_MSG(MSG)
Another convenience macro for printing messages in the converter.
void clear()
Erase all the elements in the collection.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
xAODL2StandAloneMuonContainerCnv_v1()
Default constructor.
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.
size_type size() const noexcept
Returns the number of elements in the collection.