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 25a7e82
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 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
}
7 changes: 3 additions & 4 deletions tests/src/compare_delphes_converter_outputs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ template <typename DelphesT, typename EDM4HepT, typename MsgF, typename... MsgAr
void assertSameKinematics(const DelphesT* delphesCand, const EDM4HepT& edm4hepCand, MsgF msgF, MsgArgs&&... msgArgs) {
if (!compareKinematics(delphesCand, edm4hepCand)) {
const auto& p4 = delphesCand->P4();
std::cerr << msgF(std::forward<MsgArgs>(msgArgs)...) << ": "
<< "(" << p4.Px() << ", " << p4.Py() << ", " << p4.Pz() << ", " << p4.E() << ")"
<< " vs " << k4SimDelphes::getP4(edm4hepCand) << std::endl;
std::cerr << msgF(std::forward<MsgArgs>(msgArgs)...) << ": " << "(" << p4.Px() << ", " << p4.Py() << ", " << p4.Pz()
<< ", " << p4.E() << ")" << " vs " << k4SimDelphes::getP4(edm4hepCand) << std::endl;
std::exit(1);
}
}
Expand Down Expand Up @@ -397,7 +396,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 25a7e82

Please sign in to comment.