-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tentative implementation for ATLAS DY 7 TeV low-mass measurement
- Loading branch information
Showing
7 changed files
with
548 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
experiment: "ATLAS" | ||
|
||
implemented_observables: | ||
- observable_name: "TODO" | ||
observable: | ||
description: "TODO" | ||
label: "TODO" | ||
units: "TODO" | ||
# data is in table 6, breakdown of systematic uncertainties is in table 7 | ||
tables: [6, 7] | ||
npoints: [6, 0] | ||
process_type: "EWK_MLL" | ||
plotting: | ||
dataset_label: "TODO" | ||
plot_x: TODO | ||
figure_by: | ||
- TODO | ||
kinematic_coverage: | ||
- TODO | ||
- TODO | ||
- TODO | ||
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"} | ||
file: kinematics.yaml | ||
data_central: data.yaml | ||
data_uncertainties: | ||
- uncertainties.yaml | ||
theory: | ||
FK_tables: | ||
- - TODO | ||
operation: 'null' |
116 changes: 116 additions & 0 deletions
116
buildmaster/ATLAS_DY_7TEV_LOMASS_EXT/rawdata/HEPData-ins1288706-v1-Table_6.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
Oops, something went wrong.