Skip to content

Commit

Permalink
Rename function to reflect new convention
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Oct 4, 2024
1 parent 261a60a commit f4a926a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion converter/include/k4SimDelphes/DelphesEDM4HepConverter.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ namespace k4SimDelphes {
*/
CollectionMapT getCollections() { return std::move(m_collections); }

edm4hep::RecoMCParticleLinkCollection* createExternalRecoAssociations(
edm4hep::RecoMCParticleLinkCollection* createExternalRecoMCLinks(
const std::unordered_map<UInt_t, edm4hep::MCParticle>& mc_map);

private:
Expand Down
2 changes: 1 addition & 1 deletion converter/src/DelphesEDM4HepConverter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ namespace k4SimDelphes {
return {};
}

edm4hep::RecoMCParticleLinkCollection* DelphesEDM4HepConverter::createExternalRecoAssociations(
edm4hep::RecoMCParticleLinkCollection* DelphesEDM4HepConverter::createExternalRecoMCLinks(
const std::unordered_map<UInt_t, edm4hep::MCParticle>& mc_map) {
auto mcRecoRelations = new edm4hep::RecoMCParticleLinkCollection();
for (const auto& particleID : mc_map) {
Expand Down
2 changes: 1 addition & 1 deletion framework/k4SimDelphes/src/k4SimDelphesAlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ StatusCode k4SimDelphesAlg::execute(const EventContext&) const {
auto collections = m_edm4hepConverter->getCollections();
for (auto& c : collections) {
if (c.first == "MCRecoAssociations") {
auto new_c = m_edm4hepConverter->createExternalRecoAssociations(mapSimDelphes);
auto new_c = m_edm4hepConverter->createExternalRecoMCLinks(mapSimDelphes);
DataWrapper<podio::CollectionBase>* wrapper = new DataWrapper<podio::CollectionBase>();
wrapper->setData(new_c);
m_podioDataSvc->registerObject("/Event", "/" + std::string(c.first), wrapper).ignore();
Expand Down

0 comments on commit f4a926a

Please sign in to comment.