Skip to content

[ALICE 3] FT3 fix magnetic field silently disabled when FT3 is active - #15828

Merged
njacazio merged 5 commits into
AliceO2Group:devfrom
bulukutlu:Alice3Fx3MaterialManagerFix
Sep 23, 2026
Merged

njacazio merged 5 commits into
AliceO2Group:devfrom
bulukutlu:Alice3Fx3MaterialManagerFix

Conversation

@bulukutlu

Copy link
Copy Markdown
Contributor

FT3Module::initialize_materials() registered its six support materials via raw `new TGeoMedium(name, id, mat), bypassing o2::base::MaterialManager. That 3-argument TGeoMedium constructor leaves all tracking parameters, including ifield, at 0, and since these ids were never coordinated with MaterialManager's auto-assigned global ids, they collided with other detectors' media -notably the CAVE air medium that fills the gaps between TRK's barrel layers.

Route these six materials/media through MaterialManager instead.

FT3Module::initialize_materials() registered its six support materials
via raw `new TGeoMedium(name, id, mat), bypassing o2::base::MaterialManager.
That 3-argument TGeoMedium constructor leaves all tracking parameters,
including ifield, at 0, and since these ids were never coordinated with
MaterialManager's auto-assigned global ids, they collided with other
detectors' media -notably the CAVE air medium that fills the gaps between
TRK's barrel layers.

Route these six materials/media through MaterialManager instead.
bulukutlu and others added 2 commits September 22, 2026 17:05
Removed commented-out code regarding material registration and its implications.
Please consider the following formatting changes to AliceO2Group#15828
@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2/fullCI_slc9 for f18bdbe at 2026-09-22 20:17:

No log files found

Full log here.

@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2/fullCI_slc9 for b8968e7 at 2026-09-23 06:24:

No log files found

Full log here.

@njacazio

Copy link
Copy Markdown
Collaborator

Ciao @bulukutlu thanks! I wonder, could it all be done in the Detector::createMaterials() and then called back in a FT3Module::loadMaterials() or so function so as to have everything defined consistently and be future proof?

@bulukutlu

Copy link
Copy Markdown
Contributor Author

Hi @njacazio,

indeed, @JustusRudolph you wanted to do such a modification, should I modify this PR to move the materials to Detector as suggested, or would you prefer to do this later?

@njacazio

Copy link
Copy Markdown
Collaborator

If it's not overkill I would do it now

@njacazio
njacazio enabled auto-merge (squash) September 23, 2026 12:05

@njacazio njacazio 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.

Hi, I merge since the CI is green. But let's unify the material definition in a coming PR please

@njacazio
njacazio merged commit af76bd1 into AliceO2Group:dev Sep 23, 2026
12 checks passed
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.

3 participants