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: write local position in mm in CalorimeterHitsMerger #1598

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

wdconinc
Copy link
Contributor

@wdconinc wdconinc commented Aug 23, 2024

Briefly, what does this PR introduce?

This PR fixes an issue where the local position of merged hits is written in DD4hep units instead of EDM4eic units. The subsequent clustering expects the local position to be in EDM4eic units of course.

What kind of change does this PR introduce?

Please check if this PR fulfills the following:

  • Tests for the changes have been added
  • Documentation has been added / updated
  • Changes have been communicated to collaborators @lkosarz

Does this PR introduce breaking changes? What changes might users need to make to their code?

No.

Does this PR change default behavior?

Fixes backward HCal clusters (should have changing number of clusters, distributed over 10x larger area).

@github-actions github-actions bot added the topic: calorimetry relates to calorimetry label Aug 23, 2024
@wdconinc wdconinc requested review from a team and rahmans1 and removed request for a team August 23, 2024 22:46
Copy link

@wdconinc wdconinc added this to the 24.09.0 milestone Aug 25, 2024
@lkosarz
Copy link
Contributor

lkosarz commented Aug 25, 2024

Thanks! That fixed Reco clusters, but MC clusters are still wrong. I was suspecting the issue was with the algorithms.

h_nHCal_cluster_MC_pos_xy_log
h_nHCal_cluster_Rec_pos_xy_log

@wdconinc
Copy link
Contributor Author

Truth clustering was never intended to work with merged hits. Every other detector has moved on to real clusters so there's little incentive to fix truth clustering, I'm afraid.

@lkosarz
Copy link
Contributor

lkosarz commented Aug 25, 2024

I checked the hits associated to truth clusters and they look OK, well separated. I also had a quick look at truth clustering codes and don't see an obvious weak point. It would be good to have correct truth clusters later, but if others abandoned them we may do the same in the end. For now, they are not really an useful reference.

@lkosarz lkosarz enabled auto-merge August 25, 2024 05:18
@lkosarz lkosarz added this pull request to the merge queue Aug 26, 2024
Merged via the queue into main with commit 627c9d1 Aug 26, 2024
86 of 87 checks passed
@lkosarz lkosarz deleted the calorimeter-hits-merge-local-mm branch August 26, 2024 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: calorimetry relates to calorimetry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants