Skip to content

Step file input with sensor, hits and presupera output (format 3) - #18

Open
OmarAlterkait wants to merge 2 commits into
mainfrom
pr/format3
Open

OmarAlterkait wants to merge 2 commits into
mainfrom
pr/format3

Conversation

@OmarAlterkait

Copy link
Copy Markdown
Collaborator

Reads edep-sim step files and writes sensor, hits and presupera per readout (format 3). edep-sim files as input still give the format-2 output.

  • production/stepfile.py: step file reader; group 2 is a new group at every change of the step file's group or of volume, numbered per volume. --regroup defines groups in the simulation instead.
  • hits: cells per group, charge as int32 in units of hits_threshold/16. Pixel sensor values are int32. presupera: group_to_track, group2_to_group1.
  • config has the same settings in each file, including what is needed to recompute charge and photons, and the pixel units of the response file that was loaded.
  • load_step3, load_hits3, charge_and_photons in production/load.py; docs in docs/production/data-formats.md.

Also affects format 2: sensor datasets are written as one chunk each. Same values, different chunking.

Checked: full test suite including slow: 302 passed, 4 skipped. Same events, 10 events at equal thresholds, summed difference to the format-2 output: sensor 0.024% (wire) / 0.085% (pixel), hits 0.15% / 0.09%. Full chain from committed code on 10 and 200 events passes the consistency checks. No separate GPU closure test was run. Viewers and the notebook do not read format 3 yet.

Related: drinkingkazu/edep-sim#2 (writes the step files), drinkingkazu/pysupera#1, drinkingkazu/dprod#1 (to be merged last).

This branch has not been deployed

No deployments
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.

1 participant