Skip to content

Commit fa0ba36

Browse files
committed
Adding PC for dijet 3d distributions
1 parent 152fb16 commit fa0ba36

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

validphys2/src/validphys/theorycovariance/higher_twist_functions.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ def get_pc_type(
112112
if experiment is None:
113113
raise ValueError("The 'experiment' argument is required for DIJET process type.")
114114
return _get_dijet_pc_type(experiment, pc_dict)
115+
elif process_type == "DIJET_3D":
116+
return "H2j_3D"
115117
else:
116118
raise RuntimeError(f"{process_type} has not been implemented.")
117119

@@ -504,6 +506,15 @@ def compute_deltas_pc(dataset_sp: DataSetSpec, pdf: PDF, pc_dict: dict):
504506
pc_func = mult_jet_pc(nodes, m_jj, rap, dataset_sp, pdf)
505507
deltas.update(_apply_pars_combs(pars_combs, pc_type, pc_func))
506508

509+
elif process_type == "DIJET_3D":
510+
kinematics = dataset_sp.commondata.metadata.load_kinematics()
511+
ystar = kinematics['ystar'].to_numpy().reshape(-1)[cuts]
512+
m_jj = kinematics['m_jj'].to_numpy().reshape(-1)[cuts]
513+
514+
nodes = pc_dict[pc_type]['nodes']
515+
pc_func = mult_jet_pc(nodes, m_jj, ystar, dataset_sp, pdf)
516+
deltas.update(_apply_pars_combs(pars_combs, pc_type, pc_func))
517+
507518
else:
508519
raise RuntimeError(f"{process_type} has not been implemented.")
509520

0 commit comments

Comments
 (0)