Skip to content
Snippets Groups Projects
Commit 06c471e6 authored by John Chapman's avatar John Chapman
Browse files

Clean up of HepMcParticleLinkCnv_p1.cxx and HepMcParticleLinkCnv_p2.cxx

parent d356c23b
No related branches found
No related tags found
No related merge requests found
///////////////////////// -*- C++ -*- /////////////////////////////
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
*/
// HepMcParticleLinkCnv_p1.cxx
// Implementation file for class HepMcParticleLinkCnv_p1
// Author: S.Binet<binet@cern.ch>
///////////////////////////////////////////////////////////////////
// STL includes
// Framework includes
#include "GaudiKernel/MsgStream.h"
// GeneratorObjectsAthenaPool includes
#include "GeneratorObjectsTPCnv/HepMcParticleLinkCnv_p1.h"
///////////////////////////////////////////////////////////////////
/// Public methods:
///////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////
/// Public methods:
///////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////
/// Const methods:
///////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////
/// Const methods:
///////////////////////////////////////////////////////////////////
void HepMcParticleLinkCnv_p1::persToTrans( const HepMcParticleLink_p1* persObj,
HepMcParticleLink* transObj,
MsgStream &/*msg*/ )
HepMcParticleLink* transObj,
MsgStream &/*msg*/ )
{
// msg << MSG::DEBUG << "Loading HepMcParticleLink from persistent state..."
// << endmsg;
if (transObj->m_ptrs.m_dict == nullptr)
transObj->init_dict();
transObj->m_extBarcode =
transObj->m_extBarcode =
HepMcParticleLink::ExtendedBarCode( persObj->m_barcode,
persObj->m_mcEvtIndex );
// msg << MSG::DEBUG << "Loaded HepMcParticleLink from persistent state [OK]"
// << endmsg;
persObj->m_mcEvtIndex );
return;
}
void HepMcParticleLinkCnv_p1::transToPers( const HepMcParticleLink* transObj,
HepMcParticleLink_p1* persObj,
MsgStream &/*msg*/ )
void HepMcParticleLinkCnv_p1::transToPers( const HepMcParticleLink* transObj,
HepMcParticleLink_p1* persObj,
MsgStream &/*msg*/ )
{
// msg << MSG::DEBUG << "Creating persistent state of HepMcParticleLink..."
// << endmsg;
persObj->m_mcEvtIndex = transObj->eventIndex();
persObj->m_barcode = transObj->m_extBarcode.barcode();
// msg << MSG::DEBUG << "Created persistent state of HepMcGenParticleLink [OK]"
// << endmsg;
return;
}
///////////////////////////////////////////////////////////////////
// Protected methods:
///////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////
// Protected methods:
///////////////////////////////////////////////////////////////////
///////////////////////// -*- C++ -*- /////////////////////////////
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
*/
// Framework includes
......@@ -23,17 +23,11 @@ void HepMcParticleLinkCnv_p2::persToTrans( const HepMcParticleLink_p2* persObj,
HepMcParticleLink* transObj,
MsgStream &/*msg*/ )
{
// msg << MSG::DEBUG << "Loading HepMcParticleLink from persistent state..."
// << endmsg;
if (transObj->m_ptrs.m_dict == nullptr)
transObj->init_dict();
transObj->m_extBarcode =
HepMcParticleLink::ExtendedBarCode( persObj->m_barcode,
persObj->m_mcEvtIndex );
// msg << MSG::DEBUG << "Loaded HepMcParticleLink from persistent state [OK]"
// << endmsg;
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment