11 #include "GaudiKernel/MsgStream.h" 
   22 #define MSGLVL MSG::DEBUG 
   25 #define ATH_MSG( MSG )                          \ 
   27       if( log.level() <= MSGLVL ) {             \ 
   28          log << MSGLVL << MSG << endmsg;        \ 
   39              MsgStream& 
log )
 const {
 
   42    ATH_MSG( 
"Converting xAOD::RODHeaderAuxContainer_v1 to current " 
   50    for( 
size_t i = 0; 
i < oldObj->
size(); ++
i ) {
 
   53    oldInt.setStore( oldObj );
 
   55    newInt.setStore( newObj );
 
   65       newRH->
initialize( oldRH->version(), oldRH->sourceId(), oldRH->run(),
 
   66                          oldRH->lvl1Id(), oldRH->bcid(), oldRH->trigType(),
 
   67                          oldRH->detType(), oldRH->statusWords(),
 
   68                          oldRH->payloadSize() );
 
   79          accStatusWords( 
"statusWords" );
 
   81          accPayloadSize( 
"payloadSize" );
 
   82       static const std::array< const SG::AuxElement::TypelessConstAccessor*, 9 >
 
   83          knownVars{ { &accVersion, &accSourceId, &accRun, &accLvl1Id, &accBcid,
 
   84                &accTrigType, &accDetType, &accStatusWords, &accPayloadSize } };
 
   87       const size_t oindex = oldRH->index();
 
   88       const size_t nindex = newRH->
index();
 
   99          for( 
const auto * 
acc : knownVars ) {
 
  100             if( auxid == 
acc->auxid() ) {
 
  110          r.copy( auxid, newInt, nindex, oldInt, oindex, 1 );
 
  115    ATH_MSG( 
"Converting xAOD::RODHeaderAuxContainer_v1 to current version " 
  126              MsgStream& 
log )
 const {
 
  128    log << MSG::ERROR << 
"xAODRODHeaderAuxContainerCnv_v1::transToPers got " 
  130    throw std::runtime_error( 
"xAODRODHeaderAuxContainerCnv_v1::transToPers "