Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

fix: write single hit collection for Roman Pots and Off-Momentum Trackers #23

Merged
merged 1 commit into from
Sep 22, 2022

Conversation

wdconinc
Copy link
Contributor

@wdconinc wdconinc commented Sep 20, 2022

Briefly, what does this PR introduce?

About half a year ago (or longer), when switching fully from dd4pod to edm4hep, we had to put all hits in a dedicated collection instead of reusing the collections across subdetectors. This reverts the behavior as DD4hep versions 1.21 and later have fixed this issues.

What kind of change does this PR introduce?

  • Bug fix (issue #__)
  • New feature (issue #__)
  • Documentation update
  • Other: __

Please check if this PR fulfills the following:

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

Yes. This now requires DD4hep 1.21 or newer for correct behavior (more recent than LCG 101).

Does this PR change default behavior?

Yes. By default the hits collections for roman pots and off-momentum trackers will not be numbered anymore.

@wdconinc wdconinc self-assigned this Sep 20, 2022
@wdconinc wdconinc enabled auto-merge (squash) September 21, 2022 22:02
@wdconinc wdconinc merged commit cf15cd7 into master Sep 22, 2022
@wdconinc wdconinc deleted the single-hit-collection branch September 22, 2022 00:52
@ajentsch
Copy link
Contributor

ajentsch commented Sep 22, 2022

Hey @wdconinc , just for me to understand (sorry for coming to this late - I was on travel most of last week, and didn't get back to the office until Tuesday).

Will I still be able to access hits in various layers independently? The reconstruction will require that I use the hit information from layers 1+2 and layers 3+4 independently for the matrix calculations.

@wdconinc
Copy link
Contributor Author

This shouldn't change anything for the algorithms you are using: you were accepting a collection of tracker hits before and that same collection should still contain the exact same hits. What changes is simply where those hits are combined: previously they were written as separate collections by ddsim and combined in a juggler algorithm. Now they are combined in ddsim and juggler doesn't need to do the combination anymore. The only algorithms that would be affected are, for example, those that explicitly accept a collection of hits for layers 1+2 and a separate collection of hits for layers 3+4. That does not apply to the FarForwardParticles or FarForwardParticlesOMD algorithms. I hope that makes sense.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants