Skip to content

Plot Arbitrary Limits with SFramework

Jonas Neundorf requested to merge jonas/arbitrarylimits into highmass-work

Release notes

Add an optional yFormula tag to the PlotLimits action that can be used to convert a fit parameter into a model parameter when there is no linear relation between the two.

Details

In some cases, you may want to set limits on a model parameter that is not directly proportional to the cross section. You can use TFormula expressions to translate the y value used for plotting into the model parameter, e.g.

        # identify the tags to be used from each data source
        <y="exp_upper_med", yUp.1="exp_upper_p1s", yDn.1="exp_upper_m1s", yUp.2="exp_upper_p2s", yDn.2="exp_upper_m2s", yFormula="sqrt($(y))"> @ ?;

All tags are expanded automatically. However, only the $(y) tag is "double-expanded", i.e. replaced by the numerical value of, in this example, "exp_upper_med". if yScale is specified, the result of the formula will be scaled by that factor.

Merge request reports