Skip to content

Commit 9818238

Browse files
committed
updates to datasets and defaults
1 parent 4b75cb4 commit 9818238

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

hbw/config/datasets.py

+11-4
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@
5252
"data_e_e",
5353
"data_e_f",
5454
],
55+
}
56+
57+
data_egamma = {
5558
"2022preEE": [
5659
"data_egamma_c",
5760
"data_egamma_d",
@@ -211,16 +214,16 @@
211214
"qcd_em_pt300toInf_pythia",
212215
],
213216
"2022postEE": [
214-
"qcd_em_pt10to30_pythia", # missing process + probably empty anyways
215-
"qcd_em_pt30to50_pythia",
217+
# "qcd_em_pt10to30_pythia", # missing process + probably empty anyways
218+
# "qcd_em_pt30to50_pythia", # empty after selection
216219
"qcd_em_pt50to80_pythia",
217220
"qcd_em_pt80to120_pythia",
218221
"qcd_em_pt120to170_pythia",
219222
"qcd_em_pt170to300_pythia",
220223
"qcd_em_pt300toInf_pythia",
221224
],
222225
"2022preEE": [
223-
"qcd_em_pt10to30_pythia", # missing process + probably empty anyways
226+
# "qcd_em_pt10to30_pythia", # missing process + probably empty anyways
224227
"qcd_em_pt30to50_pythia",
225228
"qcd_em_pt50to80_pythia",
226229
"qcd_em_pt80to120_pythia",
@@ -301,8 +304,11 @@
301304
"ggHH_kl_2p45_kt_1_dl_hbbhww_powheg",
302305
"ggHH_kl_5_kt_1_dl_hbbhww_powheg",
303306
],
307+
"2022preEE": [
308+
"ggHH_kl_1_kt_1_dl_hbbhww_powheg",
309+
],
304310
"2022postEE": [
305-
# empty for now
311+
"ggHH_kl_1_kt_1_dl_hbbhww_powheg",
306312
],
307313
}
308314

@@ -378,6 +384,7 @@ def get_dataset_names(cpn_tag: int | str, as_list: bool = False) -> DotDict[str:
378384
dataset_names = DotDict.wrap(
379385
data_mu=data_mu.get(cpn_tag, []),
380386
data_e=data_e.get(cpn_tag, []),
387+
data_egamma=data_egamma.get(cpn_tag, []),
381388
tt=tt.get(cpn_tag, []),
382389
st=st.get(cpn_tag, []),
383390
w_lnu=w_lnu.get(cpn_tag, []),

hbw/config/defaults_and_groups.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def set_config_defaults_and_groups(config_inst):
142142
"signal": ["ggHH_*", "qqHH_*"], "gghh": ["ggHH_*"], "qqhh": ["qqHH_*"],
143143
}
144144
config_inst.x.process_groups["dmuch"] = ["data_mu"] + config_inst.x.process_groups["much"]
145-
config_inst.x.process_groups["dech"] = ["data_e"] + config_inst.x.process_groups["ech"]
145+
config_inst.x.process_groups["dech"] = ["data_e", "data_egamma"] + config_inst.x.process_groups["ech"]
146146

147147
# dataset groups for conveniently looping over certain datasets
148148
# (used in wrapper_factory and during plotting)
@@ -167,8 +167,8 @@ def set_config_defaults_and_groups(config_inst):
167167
"sl_ech": ["1e", "1e__resolved", "1e__boosted"],
168168
"sl_much_resolved": ["1mu__resolved", "1mu__resolved__1b", "1mu__resolved__2b"],
169169
"sl_ech_resolved": ["1e__resolved", "1e__resolved__1b", "1e__resolved__2b"],
170-
"sl_much_boosted": ["1mu__boosted", "1mu_boosted__1b", "1mu_boosted__2b"],
171-
"sl_ech_boosted": ["1e__boosted", "1e__boosted__1b", "1e__boosted__2b"],
170+
"sl_much_boosted": ["1mu__boosted"],
171+
"sl_ech_boosted": ["1e__boosted"],
172172
"default": ["incl", "1e", "1mu"],
173173
"test": ["incl", "1e"],
174174
"dilep": ["incl", "2e", "2mu", "emu"],
@@ -240,7 +240,7 @@ def set_config_defaults_and_groups(config_inst):
240240
"unstack_signal": {proc.name: {"unstack": True} for proc in config_inst.processes if "HH" in proc.name},
241241
"scale_signal": {
242242
proc.name: {"unstack": True, "scale": 10000}
243-
for proc in config_inst.processes if "HH" in proc.name
243+
for proc, _, _ in config_inst.walk_processes() if proc.has_tag("is_signal")
244244
},
245245
"dilep": {
246246
"ggHH_kl_0_kt_1_dl_hbbhww": {"scale": 10000, "unstack": True},

hbw/tasks/wrapper.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def requires(self):
3434
for j_channel in ("resolved", "boosted"):
3535
reqs[f"control_plots_{l_channel}_{j_channel}"] = PlotVariables1D.req(
3636
self,
37-
processes=(f"{l_channel}ch",),
37+
processes=(f"d{l_channel}ch",),
3838
# processes=("ggHH_kl_1_kt_1_sl_hbbhww",),
3939
process_settings=[["scale_signal"]],
4040
variables=[f"sl_{j_channel}"],
@@ -150,7 +150,6 @@ def requires(self):
150150
return reqs
151151

152152
def output(self):
153-
154153
# use the input also as output
155154
# (makes it easier to fetch and delete outputs)
156155
return self.requires()

0 commit comments

Comments
 (0)