Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 25, 2024
1 parent 1d7339b commit 6cdcc53
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/egamma_tnp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
warnings.filterwarnings("ignore", category=FutureWarning, module="coffea.*")
__version__ = _version.__version__
__all__ = (
"binning",
"ElectronTagNProbeFromMiniNTuples",
"ElectronTagNProbeFromNanoAOD",
"ElectronTagNProbeFromNanoNTuples",
"PhotonTagNProbeFromMiniNTuples",
"PhotonTagNProbeFromNanoAOD",
"ElectronTagNProbeFromNanoNTuples",
"PhotonTagNProbeFromNanoNTuples",
"binning",
)


Expand Down
4 changes: 2 additions & 2 deletions src/egamma_tnp/ntuple_efficiency.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def find_probes(self, events, cut_and_count, mass_range, vars):
vars_probes = [v for v in all_probe_events.fields if v.startswith("el_")]
vars = vars_tags + vars_probes

vars = vars + ["event", "run", "lumi"] + [x for x in all_probe_events.fields if "weight" in x or "Weight" in x and x != "psWeight"]
vars = vars + ["event", "run", "lumi"] + [x for x in all_probe_events.fields if "weight" in x or ("Weight" in x and x != "psWeight")]

if all_probe_events.metadata.get("isMC"):
vars = [*vars, "truePU"]
Expand Down Expand Up @@ -322,7 +322,7 @@ def find_probes(self, events, cut_and_count, mass_range, vars):
vars_probes = [v for v in all_probe_events.fields if v.startswith("el_")]
vars = vars_tags + vars_probes

vars = vars + ["event", "run", "lumi"] + [x for x in all_probe_events.fields if "weight" in x or "Weight" in x and x != "psWeight"]
vars = vars + ["event", "run", "lumi"] + [x for x in all_probe_events.fields if "weight" in x or ("Weight" in x and x != "psWeight")]

if all_probe_events.metadata.get("isMC"):
vars = [*vars, "truePU"]
Expand Down
18 changes: 9 additions & 9 deletions src/egamma_tnp/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@
)

__all__ = (
"redirect_files",
"fill_pt_eta_phi_cutncount_histograms",
"fill_pt_eta_phi_mll_histograms",
"fill_nd_cutncount_histograms",
"fill_nd_mll_histograms",
"calculate_photon_SC_eta",
"calculate_photon_SC_eta_numpy",
"convert_2d_mll_hists_to_1d_hists",
"convert_nd_mll_hists_to_1d_hists",
"create_hists_root_file_for_fitter",
"get_ratio_histogram",
"delta_r_SC",
"custom_delta_r",
"calculate_photon_SC_eta",
"calculate_photon_SC_eta_numpy",
"dask_calculate_photon_SC_eta",
"delta_r_SC",
"fill_nd_cutncount_histograms",
"fill_nd_mll_histograms",
"fill_pt_eta_phi_cutncount_histograms",
"fill_pt_eta_phi_mll_histograms",
"get_ratio_histogram",
"redirect_files",
)


Expand Down

0 comments on commit 6cdcc53

Please sign in to comment.