Skip to content

Support to use VecGeom geometry navigation in the material scan - #15655

Open
sawenzel wants to merge 1 commit into
AliceO2Group:devfrom
trwenz:matbud-vecgeom
Open

Support to use VecGeom geometry navigation in the material scan#15655
sawenzel wants to merge 1 commit into
AliceO2Group:devfrom
trwenz:matbud-vecgeom

Conversation

@sawenzel

Copy link
Copy Markdown
Collaborator

This commit provides support to use VecGeom as an alternative geometry backend to perform the material budget LUT creation.

It is the first time that ALICE interfaces full VecGeom navigation. This should be a useful milestone towards adoption at detector simulation level.

First scans indicate performance advantages of 2x over TGeo but a precise performance investigation will be done later. This commit will be the foundation for this and/or serve for debugging issues or driving further development in VecGeom itself.

Note that the original method name populateFromTGeo remains untouched for API stability, despite the fact that the method can now internally use VecGeom.

@sawenzel
sawenzel requested a review from shahor02 as a code owner July 31, 2026 14:05
@sawenzel

Copy link
Copy Markdown
Collaborator Author

Needs alisw/alidist#6284

@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2/fullCI_slc9 for afe49d3 at 2026-07-31 16:09:

No log files found

Full log here.

This commit provides support to use VecGeom as an alternative
geometry backend to perform the material budget LUT creation.

It is the first time that ALICE interfaces full VecGeom navigation.
This should be a useful milestone towards adoption at detector
simulation level.

First scans indicate performance advantages of 2x over TGeo but
a precise performance investigation will be done later. This commit
will be the foundation for this and/or serve for debugging issues
or driving further development in VecGeom itself.

Note that the original method name `populateFromTGeo` remains untouched
for API stability, despite the fact that the method can now internally
use VecGeom.
@trwenz

trwenz commented Jul 31, 2026

Copy link
Copy Markdown

As Illustration, here are the CPU times comparing the ROOT Implementation (already after TGeo-Upgrades for which Pull Request with Root has been opened, not yet integrated) to VecGeom for the innermost 20 Layers. It may vary for certain outer layers, but I have observed an approximate factor 2 in the build of the whole Matbudget LUT.
Screenshot 2026-07-31 at 16 27 57

@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2/fullCI_slc9 for 030b4c6 at 2026-07-31 16:34:

No log files found

Full log here.

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