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

Re-implementation of the LHCb Collider DY Datasets #1826

Closed
wants to merge 38 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
c7bd39a
add dataset_names.yml
scarlehoff Oct 9, 2023
730a872
atlas jets
t7phy Oct 18, 2023
01a655f
cms jets
t7phy Oct 18, 2023
d41ab11
address comments atlas jet
t7phy Oct 23, 2023
c95aa17
address comments atlas dijet
t7phy Oct 23, 2023
f15340f
address comments cms jet
t7phy Oct 23, 2023
b2e9195
Merge pull request #1821 from NNPDF/ncd_new_jets
scarlehoff Oct 23, 2023
af37420
Implementing subsets of LHCb data
Radonirinaunimi Oct 25, 2023
655c1b9
Update dataset namings
Radonirinaunimi Oct 25, 2023
cc85bb9
Address comments from pre-review
Radonirinaunimi Oct 26, 2023
77a6e4e
Combined di-electron and di-muon for Z 13TeV
Radonirinaunimi Oct 26, 2023
eb45404
Add tentative implementation for ATLAS DY 7 TeV low-mass measurement
cschwan Oct 27, 2023
4d5538d
Apply suggestions from code review
cschwan Oct 27, 2023
bea9feb
Rename NC DY -> Z0
Radonirinaunimi Oct 29, 2023
58b3a21
fix setname in renaming NC DY -> Z0
Radonirinaunimi Oct 29, 2023
41717e2
add NC & CC DY productions in muon rapidity at 7TeV
Radonirinaunimi Oct 30, 2023
db3dbab
add NC & CC DY productions in muon rapidity at 8TeV
Radonirinaunimi Oct 30, 2023
a08cd76
fix some metadata entries in NC & CC DY at 7 TeV
Radonirinaunimi Oct 30, 2023
e80889c
fix center of mass energy in DY 8 TeV
Radonirinaunimi Oct 30, 2023
efea1bf
Init LHCB_WENU_8TEV_RATIO
niclaurenti Nov 2, 2023
efec805
fix various issues
Radonirinaunimi Nov 8, 2023
13df742
Update dataset name mapping
Radonirinaunimi Nov 8, 2023
f871d7c
Uncomment extra-labels in lhcb
Radonirinaunimi Nov 9, 2023
aba42f4
include conversion factor under theory
Radonirinaunimi Nov 9, 2023
39f708f
clean up and keep only LHCb
Radonirinaunimi Nov 10, 2023
15013e3
Fix incorrect set name
Radonirinaunimi Nov 13, 2023
8197945
fixed remaining problematic datasets
Radonirinaunimi Nov 13, 2023
ac996c0
swap old and new and add an example with a variant
scarlehoff Nov 14, 2023
4702dc3
add dataset_names.yml
scarlehoff Oct 9, 2023
6bbea80
atlas jets
t7phy Oct 18, 2023
12abba3
cms jets
t7phy Oct 18, 2023
6567d91
address comments atlas jet
t7phy Oct 23, 2023
f56f44c
address comments atlas dijet
t7phy Oct 23, 2023
e64d092
address comments cms jet
t7phy Oct 23, 2023
ce5aa48
Merge branch 'new_commondata_collected' into collider_dy_ncd
scarlehoff Nov 17, 2023
7268200
Fix minor details in descriptions
Radonirinaunimi Nov 28, 2023
666c786
fix ambiguities in defining syst treatments
Radonirinaunimi Nov 28, 2023
f414e35
replace sqrt_s -> sqrts
Radonirinaunimi Dec 20, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions buildmaster/ATLAS_DY_7TEV_LOMASS_EXT/data.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
data_central:
- 12.41
- 22.57
- 14.64
- 6.73
- 2.81
- 1.27
124 changes: 124 additions & 0 deletions buildmaster/ATLAS_DY_7TEV_LOMASS_EXT/filter.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
import yaml

def filter_ATLAS_DY_7TEV_LOMASS_EXT():
with open("metadata.yaml", "r") as file:
metadata = yaml.safe_load(file)

version = metadata["hepdata"]["version"]
tables = metadata["implemented_observables"][0]["tables"]
npoints = metadata["implemented_observables"][0]["npoints"]

data_central = []
kin = []
error = []
input = []

hepdata_tables = [
"rawdata/HEPData-ins1288706-v" + str(version) + "-Table_6.yaml",
"rawdata/HEPData-ins1288706-v" + str(version) + "-Table_7.yaml",
]

for table in hepdata_tables:
with open(table, "r") as file:
input.append(yaml.safe_load(file))

for j in range(npoints[0]):
data_central_value = input[0]["dependent_variables"][0]["values"][j]["value"]
data_central.append(data_central_value)
mll_low = float(input[0]["independent_variables"][0]["values"][j]["low"])
mll_hig = float(input[0]["independent_variables"][0]["values"][j]["high"])
kin_value = {
"mll": {
"min": mll_low,
"mid": 0.5 * (mll_low + mll_hig),
"max": mll_hig,
},
"mll2": {
"min": mll_low * mll_low,
"mid": (0.5 * (mll_low + mll_hig))**2,
"max": mll_hig * mll_hig,
},
"sqrts": {"min": 7000.0, "mid": 7000.0, "max": 7000.0},
}
kin.append(kin_value)

error_value = {
"stat_1": float(
input[0]["dependent_variables"][0]["values"][j]["errors"][0][
"symerror"
].rstrip("%")
),
"sys_reco": float(input[1]["dependent_variables"][0]["values"][j]["value"]),
"sys_trig": float(input[1]["dependent_variables"][1]["values"][j]["value"]),
"sys_iso": float(input[1]["dependent_variables"][2]["values"][j]["value"]),
"sys_mjet": float(input[1]["dependent_variables"][3]["values"][j]["value"]),
"sys_pTsc": float(input[1]["dependent_variables"][4]["values"][j]["value"]),
"sys_res": float(input[1]["dependent_variables"][5]["values"][j]["value"]),
"sys_MC": float(input[1]["dependent_variables"][6]["values"][j]["value"]),
"sys_lumi": 3.5,
}
error.append(error_value)

error_definition = {
"stat_1": {
"description": "statistical uncertainty",
"treatment": "MULT",
"type": "UNCORR",
},
"sys_reco": {
"description": "TODO",
"treatment": "MULT",
"type": "CORR",
},
"sys_trig": {
"description": "TODO",
"treatment": "MULT",
"type": "CORR",
},
"sys_iso": {
"description": "TODO",
"treatment": "MULT",
"type": "CORR",
},
"sys_mjet": {
"description": "TODO",
"treatment": "MULT",
"type": "CORR",
},
"sys_pTsc": {
"description": "TODO",
"treatment": "MULT",
"type": "CORR",
},
"sys_res": {
"description": "TODO",
"treatment": "MULT",
"type": "CORR",
},
"sys_MC": {
"description": "TODO",
"treatment": "MULT",
"type": "CORR",
},
"sys_lumi": {
"description": "TODO",
"treatment": "MULT",
"type": "ATLASLUMI11",
},
}

data_central_yaml = {"data_central": data_central}
kinematics_yaml = {"bins": kin}
uncertainties_yaml = {"definition": error_definition, "bins": error}

with open("data.yaml", "w") as file:
yaml.dump(data_central_yaml, file, sort_keys=False)

with open("kinematics.yaml", "w") as file:
yaml.dump(kinematics_yaml, file, sort_keys=False)

with open("uncertainties.yaml", "w") as file:
yaml.dump(uncertainties_yaml, file, sort_keys=False)


filter_ATLAS_DY_7TEV_LOMASS_EXT()
73 changes: 73 additions & 0 deletions buildmaster/ATLAS_DY_7TEV_LOMASS_EXT/kinematics.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
bins:
- mll:
min: 12.0
mid: 14.5
max: 17.0
mll2:
min: 144.0
mid: 210.25
max: 289.0
sqrts:
min: 7000.0
mid: 7000.0
max: 7000.0
- mll:
min: 17.0
mid: 19.5
max: 22.0
mll2:
min: 289.0
mid: 380.25
max: 484.0
sqrts:
min: 7000.0
mid: 7000.0
max: 7000.0
- mll:
min: 22.0
mid: 25.0
max: 28.0
mll2:
min: 484.0
mid: 625.0
max: 784.0
sqrts:
min: 7000.0
mid: 7000.0
max: 7000.0
- mll:
min: 28.0
mid: 32.0
max: 36.0
mll2:
min: 784.0
mid: 1024.0
max: 1296.0
sqrts:
min: 7000.0
mid: 7000.0
max: 7000.0
- mll:
min: 36.0
mid: 41.0
max: 46.0
mll2:
min: 1296.0
mid: 1681.0
max: 2116.0
sqrts:
min: 7000.0
mid: 7000.0
max: 7000.0
- mll:
min: 46.0
mid: 56.0
max: 66.0
mll2:
min: 2116.0
mid: 3136.0
max: 4356.0
sqrts:
min: 7000.0
mid: 7000.0
max: 7000.0
49 changes: 49 additions & 0 deletions buildmaster/ATLAS_DY_7TEV_LOMASS_EXT/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
setname: "ATLAS_DY_7TEV_LOMASS_EXT"

version: 1
version_comment: "Initial implementation"

arXiv:
url: "https://arxiv.org/abs/1404.1212"
iNSPIRE:
url: "https://inspirehep.net/literature/1288706"
hepdata:
url: "https://www.hepdata.net/record/ins1288706"
version: 1

nnpdf_metadata:
nnpdf31_process: "EWK_MLL"
Radonirinaunimi marked this conversation as resolved.
Show resolved Hide resolved
experiment: "ATLAS"

implemented_observables:
- observable_name: "TODO"
observable:
description: "TODO"
label: "TODO"
units: "TODO"
cschwan marked this conversation as resolved.
Show resolved Hide resolved
# data is in table 6, breakdown of systematic uncertainties is in table 7
tables: [6, 7]
npoints: [6, 0]
process_type: "EWK_MLL"
plotting:
Radonirinaunimi marked this conversation as resolved.
Show resolved Hide resolved
dataset_label: "TODO"
plot_x: TODO
figure_by:
- TODO
Radonirinaunimi marked this conversation as resolved.
Show resolved Hide resolved
kinematic_coverage:
- TODO
- TODO
- TODO
cschwan marked this conversation as resolved.
Show resolved Hide resolved
kinematics:
variables:
var_1: {description: "TODO", label: "TODO", units: "TODO"}
var_2: {description: "TODO", label: "TODO", units: "TODO"}
var_3: {description: "TODO", label: "TODO", units: "TODO"}
cschwan marked this conversation as resolved.
Show resolved Hide resolved
Radonirinaunimi marked this conversation as resolved.
Show resolved Hide resolved
file: kinematics.yaml
data_central: data.yaml
data_uncertainties:
- uncertainties.yaml
theory:
FK_tables:
- - TODO
operation: 'null'
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
dependent_variables:
- header: {name: D(SIG)/DM, units: PB/GEV}
qualifiers:
- {name: RE, value: P P --> MU+ MU- X}
- {name: SQRT(S), units: GeV, value: '7000.0'}
values:
- errors:
- {label: stat, symerror: 4.2%}
- {label: sys, symerror: 12.6%}
value: 12.41
- errors:
- {label: stat, symerror: 3.1%}
- {label: sys, symerror: 12.3%}
value: 22.57
- errors:
- {label: stat, symerror: 3.3%}
- {label: sys, symerror: 9.5%}
value: 14.64
- errors:
- {label: stat, symerror: 4.0%}
- {label: sys, symerror: 7.4%}
value: 6.73
- errors:
- {label: stat, symerror: 5.2%}
- {label: sys, symerror: 5.7%}
value: 2.81
- errors:
- {label: stat, symerror: 4.7%}
- {label: sys, symerror: 5.2%}
value: 1.27
- header: {name: TOTAL ERROR, units: PCT}
qualifiers:
- {name: RE, value: P P --> MU+ MU- X}
- {name: SQRT(S), units: GeV, value: '7000.0'}
values:
- {value: 13.3}
- {value: 12.7}
- {value: 10.0}
- {value: 8.5}
- {value: 7.8}
- {value: 7.1}
- header: {name: D}
qualifiers:
- {name: RE, value: P P --> MU+ MU- X}
- {name: SQRT(S), units: GeV, value: '7000.0'}
values:
- {value: 1.0}
- {value: 0.98}
- {value: 0.98}
- {value: 0.99}
- {value: 1.02}
- {value: 1.16}
- header: {name: A}
qualifiers:
- {name: RE, value: P P --> MU+ MU- X}
- {name: SQRT(S), units: GeV, value: '7000.0'}
values:
- {value: 0.04}
- {value: 0.2}
- {value: 0.3}
- {value: 0.35}
- {value: 0.39}
- {value: 0.43}
- header: {name: delta(A)_scale down, units: PCT}
qualifiers:
- {name: RE, value: P P --> MU+ MU- X}
- {name: SQRT(S), units: GeV, value: '7000.0'}
values:
- {value: 7.1}
- {value: 3.7}
- {value: 0.4}
- {value: 0.3}
- {value: 0.3}
- {value: 0.4}
- header: {name: delta(A)_scale up, units: PCT}
qualifiers:
- {name: RE, value: P P --> MU+ MU- X}
- {name: SQRT(S), units: GeV, value: '7000.0'}
values:
- {value: 7.5}
- {value: 4.2}
- {value: 0.8}
- {value: 0.3}
- {value: 0.4}
- {value: 0.7}
- header: {name: delta(A)_pdf_alpha_s down, units: PCT}
qualifiers:
- {name: RE, value: P P --> MU+ MU- X}
- {name: SQRT(S), units: GeV, value: '7000.0'}
values:
- {value: 4.1}
- {value: 3.0}
- {value: 2.3}
- {value: 1.8}
- {value: 1.3}
- {value: 1.0}
- header: {name: delta(A)_pdf_alpha_s up, units: PCT}
qualifiers:
- {name: RE, value: P P --> MU+ MU- X}
- {name: SQRT(S), units: GeV, value: '7000.0'}
values:
- {value: 2.7}
- {value: 2.0}
- {value: 1.6}
- {value: 1.2}
- {value: 0.9}
- {value: 0.6}
independent_variables:
- header: {name: M, units: GEV}
values:
- {high: 17.0, low: 12.0}
- {high: 22.0, low: 17.0}
- {high: 28.0, low: 22.0}
- {high: 36.0, low: 28.0}
- {high: 46.0, low: 36.0}
- {high: 66.0, low: 46.0}
Loading
Loading