Skip to content

Commit f49bbe1

Browse files
authored
Getting the parameters from the root file through square brackets (#496)
1 parent d37d464 commit f49bbe1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/do_plots.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@ def determine_lumi_scaling(config: dict[str, Any],
9393

9494
# Check if histograms were already scaled to lumi
9595
try:
96-
scaled: bool = infile.scaled.GetVal()
96+
scaled: bool = infile['scaled'].GetVal()
9797
except AttributeError:
9898
LOGGER.error('Input file does not contain scaling '
9999
'information!\n %s\nAborting...', infile.GetName())
100100
sys.exit(3)
101101

102102
if scaled:
103103
try:
104-
int_lumi_in_file: float = infile.intLumi.GetVal()
104+
int_lumi_in_file: float = infile['intLumi'].GetVal()
105105
except AttributeError:
106106
LOGGER.error('Can not load integrated luminosity '
107107
'value from the input file!\n %s\n'

0 commit comments

Comments
 (0)