Skip to content

Commit

Permalink
Pass the global maps to subset and association coll conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Sep 27, 2023
1 parent bf18fcb commit c157190
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions k4MarlinWrapper/src/components/Lcio2EDM4hep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,10 @@ StatusCode Lcio2EDM4hepTool::convertCollections(lcio::LCEventImpl* the_event) {
LCIO2EDM4hepConv::resolveRelations(lcio2edm4hepMaps, globalObjMap);

for (const auto& [name, coll, type] : subsetColls) {
registerCollection(name, LCIO2EDM4hepConv::fillSubset(coll, lcio2edm4hepMaps, type), coll);
registerCollection(name, LCIO2EDM4hepConv::fillSubset(coll, globalObjMap, type), coll);
}

for (auto&& assocColl : LCIO2EDM4hepConv::createAssociations(lcio2edm4hepMaps, lcRelationColls)) {
for (auto&& assocColl : LCIO2EDM4hepConv::createAssociations(globalObjMap, lcRelationColls)) {
registerCollection(std::move(assocColl)); // TODO: Potentially handle metadata here?
}

Expand Down

0 comments on commit c157190

Please sign in to comment.