dimitra97 / summerStudent2024

A repository for the summer student, to exchange code, issues etc.
0 stars 0 forks source link

MDTs Conversion #2

Open dimitra97 opened 3 months ago

dimitra97 commented 3 months ago

-Conversion of the bounding boxes and putting the surfaces inside

Next steps:

Berggren-Jonas commented 3 months ago

I have implemented a recursive function that goes through the tree of each specified FPV and calls the matching function on each element. There the matching function checks if the name (e.g "Tube") and material (e.g. "Aluminium) matches the querry. I add a flag where the user can specify if the FPV should be converted to a bounding box.

python3 geomodel_vol.py -i ATLAS-R3-MUONTEST_v3.db -q Muon --convert-boundingboxes --output-obj -o muons -ml Aluminium -n Tube BML1_MDT03_1_3_1 converted_mdt00

Berggren-Jonas commented 3 months ago

converting all MDTs with cached sensitive surfaces to obj uses at most 3.9GB skipping the conversion to obj uses at most 688MB

Because of the seg fault issue I can't test the obj conversion without caching the surfaces, but without caching and without obj conversion I get 688GB of peak memory consumption. So I guess caching isn't that expensive.

Berggren-Jonas commented 3 months ago

I can't see if the total detector is converted correctly since my laptop can't handle the resulting 1.9GB obj