Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Added histograms for ctag fixed WP SF #100

Merged
merged 12 commits into from
Dec 16, 2024
Prev Previous commit
Next Next commit
new hist only for cutbased wf
  • Loading branch information
Agostino De Iorio committed Dec 11, 2024
commit 825f0138d3cfefb6a52333c1b41ef29611df886c
8 changes: 4 additions & 4 deletions src/BTVNanoCommissioning/workflows/ctag_Wctt_valid_sf.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ def process_shift(self, events, shift_name):
histoname = {
"WcM": "ctag_Wc_sf",
"WcE": "ectag_Wc_sf",
"cutbased_WcM": "ctag_Wc_sf",
"cutbased_WcE": "ectag_Wc_sf",
"cutbased_WcM": "ctag_cutbased_Wc_sf",
"cutbased_WcE": "ectag_cutbased_Wc_sf",
"semittM": "ctag_Wc_sf", # same histogram representation as W+c
"semittE": "ectag_Wc_sf", # same histogram representation as W+c
}
Expand Down Expand Up @@ -396,7 +396,7 @@ def process_shift(self, events, shift_name):
smuon_jet_passc = {}
c_algos = []
c_wps = []
if "Wc" in self.selMod:
if "cutbased_Wc" in self.selMod:
osss = shmu.charge * ssmu.charge * -1
c_algos = btag_wp_dict[self._campaign].keys()
for c_algo in c_algos:
Expand Down Expand Up @@ -649,7 +649,7 @@ def process_shift(self, events, shift_name):
ak.values_astype(events[event_level].Pileup.nTrueInt, int),
weight=weight,
)
if "Wc" in self.selMod:
if "cutbased_Wc" in self.selMod:
for c_algo in c_algos:
for c_wp in c_wps:
if not "No" in c_wp:
Expand Down
Loading