Skip to content
Snippets Groups Projects

Prefer LinksByKey::link over LinksByKey::addReference

Merged Gerhard Raven requested to merge follow-LHCb!3923 into master
Files
4
@@ -26,7 +26,6 @@
// linker stuff
#include "Linker/LinkerTable.h"
#include "Linker/LinkerWithKey.h"
#include "CaloFutureUtils/CaloFutureAlgUtils.h"
// from LHCb
@@ -339,12 +338,10 @@ void CaloHypoCloner::cloneMCLinks( const LHCb::CaloHypo* hypo, const LHCb::CaloH
// If we found a table, try and use it
if ( table ) {
// location in TES of cloned hypos
const std::string cloneLoc = objectLocation( cloneHypo->parent() );
// Create a new linker for the cloned tracks
LHCb::LinksByKey* clonedLinks = LinkerWithKey<LHCb::MCParticle, LHCb::CaloHypo>::create(
evtSvc(), cloneLoc, LHCb::LinksByKey::Order::decreasingWeight );
// Create a new linker for the cloned tracks on the TES
LHCb::LinksByKey* clonedLinks = LHCb::LinksByKey::fetchFromOrCreateOnTES<LHCb::CaloHypo, LHCb::MCParticle>(
evtSvc(), objectLocation( cloneHypo->parent() ), LHCb::LinksByKey::Order::decreasingWeight );
// Loop over relations for original hypo
for ( const auto& Rentry : table.relations( hypo ) ) {
Loading