Skip to content

Commit

Permalink
Change default name in more places
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Dec 3, 2024
1 parent cdac65f commit c75000c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ namespace k4SimDelphes {
* Name of the RecoMCParticleLinkCollection holding the links of
* generated to reconstructed particles.
*/
std::string RecoMCParticleLinkCollectionName{"MCRecoAssociations"};
std::string RecoMCParticleLinkCollectionName{"RecoMCLink"};
};

template <typename T> std::ostream& operator<<(std::ostream& os, std::vector<T> const& container) {
Expand Down Expand Up @@ -160,7 +160,7 @@ namespace k4SimDelphes {
}

settings.RecoMCParticleLinkCollectionName =
confReader->GetString("EDM4HepOutput::RecoMCParticleLinkCollectionName", "MCRecoAssociations");
confReader->GetString("EDM4HepOutput::RecoMCParticleLinkCollectionName", "RecoMCLink");

return settings;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ module EDM4HepOutput EDM4HepOutput {
add MissingETCollections MissingET
add ScalarHTCollections ScalarHT
set RecoParticleCollectionName ReconstructedParticles
set MCRecoAssociationCollectionName MCRecoAssociations
set MCRecoAssociationCollectionName RecoMCLink
}
2 changes: 1 addition & 1 deletion tests/src/compare_delphes_converter_outputs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ int main(int, char* argv[]) {
return 1;
}

auto& mcRecoAssocColl = frame.get<edm4hep::RecoMCParticleLinkCollection>("MCRecoAssociations");
auto& mcRecoAssocColl = frame.get<edm4hep::RecoMCParticleLinkCollection>("RecoMCLink");

compareCollectionElements<Track>(tracks, recoColl, "EFlowTrack", 0, mcRecoAssocColl);
compareCollectionElements<Tower>(ecalClusters, recoColl, "EFlowPhoton", tracks->GetEntries(), mcRecoAssocColl);
Expand Down

0 comments on commit c75000c

Please sign in to comment.