Skip to content

Commit

Permalink
use density since the histogram's weight scales are so different
Browse files Browse the repository at this point in the history
  • Loading branch information
tomeichlersmith committed Oct 9, 2023
1 parent ad64e86 commit 1580575
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Validation/src/Validation/dark_brem.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def kinematics(d : Differ, out_dir = None) :
]
for h, name in features :
log.info(f'plotting {h}')
d.plot1d(f'db_kinematics/db_kinematics_{h}', name, out_dir = out_dir)
d.plot1d(f'db_kinematics/db_kinematics_{h}', name, out_dir = out_dir, density=True, ylabel='Weighted Fraction')

log.info('plotting dark_brem_element')
d.plot1d(
Expand All @@ -45,7 +45,9 @@ def kinematics(d : Differ, out_dir = None) :
"Cu 29",
"W 74",
"unlisted",
]
],
density=True,
ylabel='Weighted Fraction'
)

log.info('plotting dark_brem_material')
Expand All @@ -62,5 +64,7 @@ def kinematics(d : Differ, out_dir = None) :
"Al",
"W",
"PVT"
]
],
density=True,
ylabel='Weighted Fraction'
)

0 comments on commit 1580575

Please sign in to comment.