Commit 68543a4e authored by Christos Anastopoulos's avatar Christos Anastopoulos
Browse files

EMTrackMatchBuilder pass EventContext to Element Links

parent 8318d3c2
......@@ -138,15 +138,14 @@ EMTrackMatchBuilder::trackExecute(
std::vector<EL> trackParticleLinks;
trackParticleLinks.reserve(trkMatches.size());
const std::string key = EL(*trackPC, 0).dataID();
IProxyDict* sg = SG::CurrentEventStore::store();
for (const TrackMatch& m : trkMatches) {
ATH_MSG_DEBUG("Match dR: " << m.dR << " second dR: " << m.seconddR
<< " hasPix: " << m.hasPix
<< " hitsScore: " << m.hitsScore);
if (key.empty()) {
trackParticleLinks.emplace_back(*trackPC, m.trackNumber, sg);
trackParticleLinks.emplace_back(*trackPC, m.trackNumber, ctx);
} else {
trackParticleLinks.emplace_back(key, m.trackNumber, sg);
trackParticleLinks.emplace_back(key, m.trackNumber, ctx);
}
}
eg->setTrackParticles(trackParticleLinks);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment