Skip to content

Make o2-create-aligned-geometry-workflow respect align-geom.mDetectors - #16207

Merged
sawenzel merged 1 commit into
AliceO2Group:devfrom
sawenzel:swenzel/aligned-geometry-honour-align-geom
Nov 26, 2026
Merged

sawenzel merged 1 commit into
AliceO2Group:devfrom
sawenzel:swenzel/aligned-geometry-honour-align-geom

Conversation

@sawenzel

Copy link
Copy Markdown
Collaborator

So far the tool ignored the align-geom configurable and always applied the alignment of all detectors, so an MC transported without alignment was reconstructed with the aligned geometry.

Assisted by Claude Code.

So far the tool ignored the align-geom configurable and always applied
the alignment of all detectors, so an MC transported without alignment
was reconstructed with the aligned geometry.

@shahor02 shahor02 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The change is ok, but why do you say MC transported without alignment was reconstructed with the aligned geometry ?
The reconstruction is done with the cashed geometry where dummy alignment ITS object is provided, so both simulation reconstruction are done with ideal ITS.

@sawenzel

Copy link
Copy Markdown
Collaborator Author

@shahor02 : Want I wanted to say is that if someone gave align-geom.mDetectors=None to an O2DPG workflow, it would have been picked up by o2-sim ---> simulation would have no alignment. Whereas reco would have taken it's geometry from the cache prepared from the aligned-geometry-workflow, which ignored align-geom.mDetectors so far.

@shahor02

Copy link
Copy Markdown
Collaborator

OK, align-geom was made for different use cases, but surely, one can harden the o2-create-aligned-geometry-workflow using it.

@sawenzel
sawenzel merged commit 79e7f5e into AliceO2Group:dev Nov 26, 2026
11 of 12 checks passed
sawenzel added a commit to sawenzel/O2DPG that referenced this pull request Nov 30, 2026
This makes the geomprefetch task align the same detectors as o2-sim and adds
a unit test.

- geomprefetch built GLO/Config/GeometryAligned with the alignment of all
  detectors, even when align-geom.mDetectors in -confKey switched it off in
  transport.
- align-geom.mDetectors is now read from -confKey, trimmed as
  ConfigurableParam does, and passed to o2-create-aligned-geometry-workflow.
- align-geom.mDetectors=none now gives the ideal geometry in transport and
  reconstruction.
- The ITS GeometryTGeo of geomprefetch is now also used when ITS is not
  aligned in transport, not only without the parallel world.
- This needs the AliceO2 change that makes the tool honour
  align-geom.mDetectors; older versions ignore the key.

AliceO2Group/AliceO2#16207
sawenzel added a commit to AliceO2Group/O2DPG that referenced this pull request Nov 30, 2026
This makes the geomprefetch task align the same detectors as o2-sim and adds
a unit test.

- geomprefetch built GLO/Config/GeometryAligned with the alignment of all
  detectors, even when align-geom.mDetectors in -confKey switched it off in
  transport.
- align-geom.mDetectors is now read from -confKey, trimmed as
  ConfigurableParam does, and passed to o2-create-aligned-geometry-workflow.
- align-geom.mDetectors=none now gives the ideal geometry in transport and
  reconstruction.
- The ITS GeometryTGeo of geomprefetch is now also used when ITS is not
  aligned in transport, not only without the parallel world.
- This needs the AliceO2 change that makes the tool honour
  align-geom.mDetectors; older versions ignore the key.

AliceO2Group/AliceO2#16207
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants