From 00e7cbc91669475a83e177c0c144753dfcfbfde8 Mon Sep 17 00:00:00 2001 From: ValVau <109755950+ValVau@users.noreply.github.com> Date: Mon, 21 Oct 2024 12:15:18 +0000 Subject: [PATCH] Polishing documentation --- scripts/2Dhistograms.py | 4 +++- scripts/correlation_plots.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/2Dhistograms.py b/scripts/2Dhistograms.py index e3a0ed9f..c5cc2c31 100644 --- a/scripts/2Dhistograms.py +++ b/scripts/2Dhistograms.py @@ -406,7 +406,8 @@ def load_data( event_counts.append((key, len(df))) # Store the number of events and the key # Define ranking factors for each subfolder - ###FIXME: sumw has to change, whenever you run a different set. Pay attention!!! + ### FIXME: sumw has to change, whenever you run a different set. Pay attention!!! + ### FIXME: The former factor is the xs, the second - sumw! ranking_factors = { "QCD_PT-15to20_MuEnrichedPt5_TuneCP5_13p6TeV_pythia8": 295600 / 142083, "QCD_PT-20to30_MuEnrichedPt5_TuneCP5_13p6TeV_pythia8": 2689000 / 5926, @@ -459,6 +460,7 @@ def load_data( weighted_event_counts.sort(key=lambda x: x[1], reverse=True) # Display the ranking + ### Ranking done by the yields: from the highest to the lowest print("Ranking by weighted number of events:") for rank, (key, weighted_count, parent_subfolder) in enumerate( weighted_event_counts, start=1 diff --git a/scripts/correlation_plots.py b/scripts/correlation_plots.py index c402b7f1..c8cb6a1a 100644 --- a/scripts/correlation_plots.py +++ b/scripts/correlation_plots.py @@ -415,7 +415,8 @@ def load_data( event_counts.append((key, len(df))) # Store the number of events and the key # Define ranking factors for each subfolder - ###FIXME: sumw has to change, whenever you run a different set. Pay attention!!! + ### FIXME: sumw has to change, whenever you run a different set. Pay attention!!! + ### FIXME: The former factor is the xs, the second - sumw! ranking_factors = { "QCD_PT-15to20_MuEnrichedPt5_TuneCP5_13p6TeV_pythia8": 295600 / 142083, "QCD_PT-20to30_MuEnrichedPt5_TuneCP5_13p6TeV_pythia8": 2689000 / 5926, @@ -481,6 +482,7 @@ def load_data( weighted_event_counts.sort(key=lambda x: x[1], reverse=True) # Display the ranking + ### Ranking done by the yields: from the highest to the lowest print("Ranking by weighted number of events:") for rank, (key, weighted_count, parent_subfolder) in enumerate( weighted_event_counts, start=1