Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the conversion of edm4hep::Clusters to LCIO::Clusters #36

Merged
merged 7 commits into from
Nov 6, 2023

Conversation

tmadlener
Copy link
Contributor

@tmadlener tmadlener commented Nov 3, 2023

BEGINRELEASENOTES

  • Make sure to convert the full content of edm4hep::Clusters to LCIO clusters, including subdetectorEnergies and the related calorimeter hits. Set the contribution 1.0 because that seems to be the only value in use.
  • Add tests that cover this part of the converter.

ENDRELEASENOTES

  • Add subdetector energy conversion
  • Fix missing relation resolving for CalorimeterHits

Fixes #35

for (const auto& edm_calohit : edm_cluster.getHits()) {
if (edm_calohit.isAvailable()) {
if (const auto lcio_calohit = k4EDM4hep2LcioConv::detail::mapLookupFrom(edm_calohit, update_pairs.caloHits)) {
lcio_cluster->addHit(lcio_calohit.value(), 0);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EDM4hep doesn't have a weight for the calo hits(?). What is the proper value to set here?

Copy link
Contributor Author

@tmadlener tmadlener Nov 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tracking this in key4hep/EDM4hep#236

@tmadlener tmadlener changed the title [WIP] Fix the conversion of edm4hep::Clusters to LCIO::Clusters Fix the conversion of edm4hep::Clusters to LCIO::Clusters Nov 6, 2023
This seems to be the only value in actual use
@tmadlener tmadlener merged commit 95a8929 into key4hep:main Nov 6, 2023
2 of 4 checks passed
@tmadlener tmadlener deleted the convert-subdet-energies branch November 6, 2023 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EDM4hep -> LCIO conversion of clusters is buggy
1 participant