Conversation
|
Have you tested querying these values? I don't think this works without explicit calls to |
Oof! I haven't tried it out yet, but I'll report back when I do! If need be, I'll do a pass to add explicit calls where needed... |
Confirmed: you do indeed need an explicit call in each constructor. I just pushed a round of commits to add these calls to all sensitive detectors. I also now have a working example of how to extract the type flags during reconstruction/analysis. I'll do a pass with it to make sure I've haven't missed/messed up anything, and then post here and add the example to either snippets or benchmarks... |
Can you consider if it makes sense to upstream an addition to dd4hep? Symmetric colliders have forward in both directions, so this is EIC-inspired but in some sense of broader relevance too (for all those other asymmetric colliders in development.......). |
Yeah! I definitely think it makes sense upstream it to dd4hep! I suppose the FCC-eh proposal (or LHeC) might some other big use cases 🤷 (Though I also read a fun paper about running a muon collider with asymmetric beam energies a little bit ago...) |
|
Should we propose |
I think that also makes sense! It definitely would be useful to be able to distinguish between detectors that are physically in the endcap vs. those that are along the beamline. |
|
Acts is not happy with this one: |
Hmmm... I'm also seeing a bunch about the tagger :/ |
…Assembly Adds <detectorType name="compound"/> tags to modules that act as detector assemblies to fix ACTS translation warnings about inconsistent detector information. Changes applied to: - Tagger1 and Tagger2 modules in taggers.xml and beamline_electron.xml - Module entries in lumi/spec_tracker.xml - VertexBarrelSubAssembly in definitions_craterlake.xml These flags inform ACTS/DD4hep to treat these DetElements as compound hierarchies that require proper translation.
|
All right! I think I squashed the ACTS warnings with the latest round of commits (thanks to some help from Copilot), and also resolved the merge conflict. This should be ready for another review! |
|
Marking irrelevant detectors as beampipe (itself) messes with Acts geometry conversion. |
| name="VertexBarrelSubAssembly" | ||
| type="DD4hep_SubdetectorAssembly" | ||
| vis="TrackerSubAssemblyVis"> | ||
| <detectorType name="compound"/> |
There was a problem hiding this comment.
I'm suspicious of these changes. Why would there only need to be a compound type for one of these assemblies?




Briefly, what does this PR introduce?
This PR adds DD4hep
DetTypeflags to all sensitive detectors and to beampipes. An example of how to extract these flags from calorimeter and tracker hits (where the latter includes PID output) is provided in snippets here.Note that since only
FORWARDis defined as a flag, I opted to label the FF/FB elements asENDCAP. Then, following what was done in the central tracker, only detectors and beampipes are labeled; support and other structures are not.What kind of change does this PR introduce?
DetType_{ELECTROMAGNETIC, HADRONIC}flags #993 )Please check if this PR fulfills the following:
Does this PR introduce breaking changes? What changes might users need to make to their code?
No.
Does this PR change default behavior?
No.