|
| __this_dir__ = os.path.dirname(__file__) |
|
dictionary | example_value_dict |
|
string | jec = "Summer19UL16_V7_MC" |
|
string | algo = "AK4PFchs" |
|
string | algo_ak8 = "AK8PFPuppi" |
|
string | lvl = "L2Relative" |
|
string | lvl_compound = "L1L2L3Res" |
|
string | unc = "Total" |
|
| fname = os.path.join(__this_dir__, "../POG/JME/2016postVFP_UL/jet_jerc.json.gz") |
|
| cset = core.CorrectionSet.from_file(os.path.join(fname)) |
|
| fname_ak8 = os.path.join(__this_dir__, "../POG/JME/2016postVFP_UL/fatJet_jerc.json.gz") |
|
| cset_ak8 = core.CorrectionSet.from_file(os.path.join(fname_ak8)) |
|
| fname_jersmear = os.path.join(__this_dir__, "../POG/JME/jer_smear.json.gz") |
|
| cset_jersmear = core.CorrectionSet.from_file(os.path.join(fname_jersmear)) |
|
string | key = "{}_{}_{}".format(jec, lvl, algo) |
|
string | key_ak8 = "{}_{}_{}".format(jec, lvl, algo_ak8) |
|
| sf = cset[key] |
|
| sf_ak8 = cset_ak8[key_ak8] |
|
list | sf_input_names = [inp.name for inp in sf.inputs] |
|
def | inputs = get_corr_inputs(example_value_dict, sf) |
|
string | jer = "Summer20UL16_JRV3_MC" |
|
| jersf_value = sf.evaluate(*inputs) |
|
| jer_value = sf.evaluate(*inputs) |
|
string | key_jersmear = "JERSmear" |
|
| sf_jersmear = cset_jersmear[key_jersmear] |
|
| jersmear_factor = sf_jersmear.evaluate(*inputs) |
|