16#include "GaudiKernel/MsgStream.h"
31#define LOG_MSG(log,lvl,msg) \
33 if( log.level() <= lvl ) log << lvl << msg << endmsg
38 MsgStream&
msg )
const
40 LOG_MSG(
msg, MSG::DEBUG,
"Loading INav4MomAssocs from persistent state..." );
45 for ( INav4MomAssocs_p3::INav4MomStores_t::const_iterator
55 for ( std::size_t i = 0, iEnd = pers->
m_assocs.size(); i != iEnd; ++i ) {
62 for ( std::size_t j = 0, jEnd = val.size(); j != jEnd; ++j ) {
69 LOG_MSG(
msg, MSG::DEBUG,
"Loaded INav4MomAssocs from persistent state [OK]" );
77 MsgStream&
msg )
const
79 LOG_MSG(
msg, MSG::DEBUG,
"Creating persistent state of INav4MomAssocs...");
82 std::vector<DataLink<INav4MomAssocs> > assocStores = trans->
getAssocStores();
96 for (; begObj != endObj; ++begObj)
101 persAssoc.second.resize( begObj.getNumberOfAssociations() );
106 for (; begAsso != endAsso; ++begAsso) {
115 LOG_MSG(
msg, MSG::DEBUG,
"Created persistent state of INav4MomAssocs [OK]");
ElementLink_p3< uint32_t > ElementLinkInt_p3
INav4MomAssocs::object_link INav4MomLink_t
#define LOG_MSG(log, lvl, msg)
AssociationObjectIterator object_iterator
ElementLink< asso_container_type > asso_link
size_t size()
get number of associations
object_iterator endObject() const
end iterator for objects
AssociationVectorIterator asso_iterator
ElementLink< object_container_type > object_link
void addAssociation(const object_container_type *objectContainer, const object_index_type &objectIndex, const asso_container_type *assoContainer, const asso_index_type &assoIndex)
object_iterator beginObject() const
begin iterator for objects
DataLink< INav4MomAssocs > DLink_t
Object reference supporting deferred reading from StoreGate.
IAssocStoresCnv_t m_assocStoresCnv
converter for DataLink to INav4MomAssocs
virtual void persToTrans(const INav4MomAssocs_p3 *pers, INav4MomAssocs *trans, MsgStream &msg) const override
Method creating the transient representation of INav4MomAssocs from its persistent representation INa...
virtual void transToPers(const INav4MomAssocs *trans, INav4MomAssocs_p3 *pers, MsgStream &msg) const override
Method creating the persistent representation INav4MomAssocs_p3 from its transient representation INa...
INav4MomCnv_t m_inav4MomLinkCnv
converter for ElementLink to INavigable4MomentumCollection
std::pair< ElementLinkInt_p3, ElemLinkVect_t > AssocElem_t
INav4MomStores_t m_assocStores
std::vector< ElementLinkInt_p3 > ElemLinkVect_t
void addAssocStore(const DataLink< INav4MomAssocs > &assocStore)
Retrieve all the associated-to objects which have been associated to the given.
std::vector< DataLink< INav4MomAssocs > > getAssocStores() const
Return links to all other association stores.
Cache thinning decisions for converters.
Helpers to retrieve the current thinning cache from the event context.
const SG::ThinningCache * getThinningCache()
Retrieve the current thinning cache from the current event context.