Skip to content

Alice 3 fixes#52

Closed
mpuccio wants to merge 33 commits intof3sch:its/trk/stagfrom
mpuccio:alice-3-fixes
Closed

Alice 3 fixes#52
mpuccio wants to merge 33 commits intof3sch:its/trk/stagfrom
mpuccio:alice-3-fixes

Conversation

@mpuccio
Copy link

@mpuccio mpuccio commented Mar 16, 2026

No description provided.

AizatDaribayeva and others added 30 commits March 3, 2026 10:35
* Fix full cyl building for ACTS

* Please consider the following formatting changes

---------

Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
…up#15123)

* Do not parse TPC correction options if TPC is absent

* Do not init TPC corr.loader in SVFinder in absence of TPC
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
The present commit adds support to complement
the geometry created from CAD STEP files with materials.

For now the script can process materials in a CSV
file, where each line maps the CAD part name to a material string.

An example is this
```
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
CAD,Mechanical/Part,ST1782525_01,AA.04,FIRST PART,1.51881,St. Steel EN 1.4306 (304L)
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
CAD,Mechanical/Part,ST2487461_01,AA.04,SECOND PART,2.344,Alu EN AW-5083 (H116)
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
CAD,Mechanical/Part,ST2487721_01,AA.02,THIRD PART,0.313133,Carbon Fiber
```
where `ST2487721_01` are the part names referenced in the STEP file.

The conversion script will read the material names (e.g., Alu EN AW-5083 (H116))
and attempt a mapping to known materials in the Geant4 NIST database of materials
based on string matching as well as material density.

The user should check the emitted materials in the resulting geometry
file (geom.C) and possibly edit/correct the code. Another possibility
would be to fix the CSV file from the start and only reference Geant4 NIST
names.

The commit also contains a small utility to extract a JSON G4 NIST database
from the Geant4 engine. The resulting JSON file `G4_NIST_DB.json` is also
part of the commit and can be extended by the user with further definitions.

A complete conversion example, including materials would like this:
```bash
python3 O2_CADtoTGeo.py STEPFILE.stp --mesh [--mesh-prec 1.2]    \
         --out-path tgeo_geometry_output_folder -o geom.C        \
	 --materials-csv MATERIALS.csv                           \
	 --g4-nist-json G4_NIST_DB.json
```

Code generated with help of a code assistent.
- simplify geometry building
- unify indices, variables
…ALICE3 response + set reasonable threshold (AliceO2Group#15135)

* ALICE3-TRK: fix orientation of response function, handling both ALICE3 and APTS response + log messages modification

* ALICE3-TRK: set more reasonable threshold for the digitization process
…#15122)

* [ALICE 3] Implementation of peacock layour for services

* Please consider the following formatting changes

* [ALICE 3] Fixes for code checker

* [ALICE 3] More fixes for code checker

* [ALICE 3] Fix one more overlap in the tracker services in the LoI geometry; plus cosmetics

---------

Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
scannito and others added 3 commits March 12, 2026 04:33
* TRKLayer refactoring

* Naming

* Fix

* Fix constructors

* Andrea's modifications

* Naming

* Removed header
@mpuccio mpuccio requested a review from f3sch as a code owner March 16, 2026 17:24
@mpuccio mpuccio closed this Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.