Skip to content

Conversation

ArturU043
Copy link
Collaborator

@ArturU043 ArturU043 commented Sep 24, 2025

This PR adds an additional feature to get_structure() :

The python function that runs in the backend collects all information metadata branches.
Any FileMetaDataAuxDyn. branch is read with uproot, and the value is saved to json.

The stdout structure format now shows relevant info:

File Metadata ℹ️ :

── amiTag: e8514_e8528_s4369_s4370_r16083_r15970_p6697
── beamEnergy: 6800000.0
── beamType: collisions
── conditionsTag: OFLCOND-MC23-SDR-RUN3-05-03
── generatorsInfo: Powheg(v.2_r3631)+Pythia8(v.308)+EvtGen(v.2.1.1)
── geometryVersion: ATLAS-R3S-2021-03-02-00
── isDataOverlay: 0
── mcCampaign: mc23e
── mcProcID: 601237.0
── simFlavour: FullG4_QS

Unit tests were adapted.

@gordonwatts gordonwatts added the enhancement New feature or request label Sep 27, 2025
Copy link

@gordonwatts gordonwatts left a comment

Choose a reason for hiding this comment

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

Ok - super minor. Just replace that f and then I like it! Looking forward to using it as soon as you push it!

@ArturU043 ArturU043 merged commit 918abdd into main Sep 30, 2025
4 checks passed
@ArturU043 ArturU043 deleted the feat/get-metadata branch September 30, 2025 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants