@@ -175,7 +175,7 @@ def thcov_ht(combine_by_type_ht, H2_list, HL_list, groups_data_by_process, pdf,
175175
176176 # Loop over the parameter
177177 for i in range (len (x_abmp )):
178- PC_2 , PC_L = compute_ht_parametrisation (i , x_abmp , kin_dict , exp , H2_list , HL_list )
178+ PC_2 , PC_L = compute_ht_parametrisation (i , x_abmp , kin_dict , exp , H2_list , HL_list , reverse = reverse )
179179 if target == 'proton' :
180180 deltas [f"p({ i + 1 } +,0)" ] += [PC_2 ]
181181 deltas [f"p(0,{ i + 1 } +)" ] += [PC_L ]
@@ -211,9 +211,9 @@ def thcov_ht(combine_by_type_ht, H2_list, HL_list, groups_data_by_process, pdf,
211211def extract_target (dataset ):
212212 if dataset .op == "NULL" :
213213 if "_P_" in dataset .name or "HERA" in dataset .name :
214- return "proton"
214+ return "proton"
215215 elif "_D_" in dataset .name :
216- return "deuteron"
216+ return "deuteron"
217217 else :
218218 raise ValueError (f"No target detected for { dataset .name } " )
219219 elif dataset .op == "RATIO" :
@@ -270,7 +270,7 @@ def compute_ht_parametrisation(
270270 N2 , NL = compute_normalisation_by_experiment (exp , x , y , Q2 )
271271
272272 PC_2 = N2 * H_2 (x ) / Q2
273- PC_L = NL * H_2 (x ) / Q2
273+ PC_L = NL * H_L (x ) / Q2
274274 return PC_2 , PC_L
275275
276276
0 commit comments