Skip to content
Snippets Groups Projects
Commit dfdeb557 authored by Niklas Stefan Nolte's avatar Niklas Stefan Nolte :fire:
Browse files

mimick incidentsvc

parent b4285888
No related branches found
No related tags found
No related merge requests found
Pipeline #1427376 failed
......@@ -145,7 +145,7 @@ bool LHCb::LinksByKey::firstReference( int key, const DataObject* container, LHC
linkID = link->ID();
}
int index;
int index{0};
if ( findIndex( key, index ) ) {
reference = m_linkReference[m_keyIndex[index].second];
if ( 0 <= linkID ) {
......
......@@ -87,10 +87,10 @@ private: // methods
/// get the MCTrackInfo object
inline MCTrackInfo& mcTkInfo() const {
if ( UNLIKELY( !m_tkInfo ) ) {
m_tkInfo = std::make_unique<MCTrackInfo>( evtSvc(), msgSvc() );
if ( !m_tkInfo ) { Exception( "Failed to load MCTrackInfo" ); }
}
auto cEvt = Gaudi::Hive::currentContext().evt();
if (currentEvtContextID == cEvt && m_tkInfo) return *m_tkInfo;
currentEvtContextID = cEvt;
m_tkInfo = std::make_unique<MCTrackInfo>( evtSvc(), msgSvc() );
return *m_tkInfo;
}
......@@ -111,6 +111,7 @@ private: // data
/// Pointer to MCTrackInfo object
mutable std::unique_ptr<MCTrackInfo> m_tkInfo;
mutable uint64_t currentEvtContextID{0};
/// MCParticle selector
IMCParticleSelector* m_mcSel = nullptr;
......
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