Add v15 ROC calculation script for issue #100 - #123
Open
1SelenaRao wants to merge 1 commit into
Open
Conversation
- Copy roc_calcs_v14.py to roc_calcs_v15.py - Update ecal_layerZs to v15 geometry (400um Si) per ldmx-sw EcalGeometry.v15() - Point file_paths at v4.5.4_signal samples (/home/vamitamas/Samples8GeV/v4.5.4_signal/) - Fix pass_name from 'signal' to 'sim' to match actual branch names in v15 production files - Make roc_frac a CLI arg to support both 0.68 and 0.95 containment runs - Add slurm job scripts for both containment fractions
tvami
reviewed
Jul 18, 2026
| dist_energy[layer_index].append( (dist_ele_traj, edep) ) | ||
| debugPrint(f' Hit appended to dist_energy at {layer_index = }; {dist_ele_traj = }, {edep = }') | ||
|
|
||
| roc_values = np.zeros(34) |
Collaborator
There was a problem hiding this comment.
we actually have 32 layers in the v14 geom
tvami
reviewed
Jul 18, 2026
| debugPrint(f' Event has {bin_index = }', debug) | ||
|
|
||
| dist_energy = defaultdict(list) | ||
| energy_total = np.zeros(34) |
Collaborator
There was a problem hiding this comment.
we actually have 32 layers in the v14 geom
tvami
reviewed
Jul 18, 2026
|
|
||
| ang_bins = [0, 10, 15, 25, 30, 40, 50, 60, 70] | ||
| num_ang_bins = len(ang_bins) - 1 | ||
| num_ecal_layers = 34 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds roc_calcs_v15.py for issue #100 — computes ECal radius-of-containment
for v15 geometry (400μm Si), at both 68% and 95% containment.
Closes #100