@@ -28,9 +28,9 @@ def unfold_results( results, category, channel, tau_value, h_truth, h_measured,
2828
2929 # turning off the unfolding errors for systematic samples
3030 if not category == 'central' :
31- unfoldCfg .Hreco = 0
31+ unfoldCfg .error_treatment = 0
3232 else :
33- unfoldCfg .Hreco = options .Hreco
33+ unfoldCfg .error_treatment = options .error_treatment
3434
3535 h_unfolded_data = unfolding .unfold ( h_data )
3636 del unfolding
@@ -379,9 +379,9 @@ def calculate_normalised_xsections( normalisation, category, channel, normalise_
379379 help = "Load fakes histogram and perform manual fake subtraction in TSVDUnfold" )
380380 parser .add_option ( "-u" , "--unfolding_method" , dest = "unfolding_method" , default = 'RooUnfoldSvd' ,
381381 help = "Unfolding method: RooUnfoldSvd (default), TSVDUnfold, RooUnfoldTUnfold, RooUnfoldInvert, RooUnfoldBinByBin, RooUnfoldBayes" )
382- parser .add_option ( "-H " , "--hreco " , type = 'int' ,
383- dest = "Hreco " , default = 2 ,
384- help = "Hreco parameter for error treatment in RooUnfold" )
382+ parser .add_option ( "-e " , "--error_treatment " , type = 'int' ,
383+ dest = "error_treatment " , default = unfoldCfg . error_treatment ,
384+ help = "parameter for error treatment in RooUnfold" )
385385 parser .add_option ( "-c" , "--centre-of-mass-energy" , dest = "CoM" , default = 13 ,
386386 help = "set the centre of mass energy for analysis. Default = 13 [TeV]" , type = int )
387387 parser .add_option ( "-C" , "--combine-before-unfolding" , dest = "combine_before_unfolding" , action = "store_true" ,
@@ -471,7 +471,7 @@ def calculate_normalised_xsections( normalisation, category, channel, normalise_
471471 phase_space = "VisiblePS"
472472
473473 load_fakes = options .load_fakes
474- unfoldCfg .Hreco = options .Hreco
474+ unfoldCfg .error_treatment = options .error_treatment
475475 method = options .unfolding_method
476476 combine_before_unfolding = options .combine_before_unfolding
477477 met_type = translate_options [options .metType ]
0 commit comments