Skip to content

Commit 30448f6

Browse files
committed
Just use "QCD" for QCD samples, and prepend data's type in subsample names
1 parent 238ccce commit 30448f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

data/index_private_nano.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def _get_sample_from_subsample(subsample_name, is_data):
8080
elif "Hto2Tau" in subsample_name or "HTo2Tau" in subsample_name:
8181
return "Htautau"
8282
elif "QCD-4Jets_HT" in subsample_name:
83-
return "QCD-4Jets_HT"
83+
return "QCD"
8484
elif "QCD_PT" in subsample_name:
8585
return "QCD_PT"
8686
elif "TTto" in subsample_name:
@@ -218,8 +218,8 @@ def xrootd_index_private_nano(
218218
# For data, concatenate files from related subsamples
219219
# e.g. EGamma0 and EGamma1 should be combined
220220
if f1 not in files[year][sample]:
221-
files[year][sample][f1] = []
222-
files[year][sample][f1].extend(tfiles)
221+
files[year][sample][f"{sample}_{f1}"] = []
222+
files[year][sample][f"{sample}_{f1}"].extend(tfiles)
223223
print(f"\t\t\t\t\t{len(tfiles)} files added")
224224

225225
if not is_data:

0 commit comments

Comments
 (0)