RemoveParameters

This action purges a workspace from all parameters with names matching a given expression.

Note: This has been tested to work by comparing the results of a (ggF HWW) workspace build with and without MC stat. uncertainties enabled. When using this action one should be very well aware of the workspace's internal structure and the potential interplay of different parameters/objects.

This action also supports removing parameters from PiecewiseInterpolations and FlexibleInterpvars. When removing parameters from those one currently (=FIXME!!) has to make sure to list all related parameter names to obtain a workspace in a valid state. Example: theoQCDScaleggH*,nomtheoQCDScale_ggH . If the second one is not listed (or the wildcard at the end of the first entry) some elements are not matched, namely the nominal value of the parameter (which confuses, e.g., Hesse!) or the actual constraint term in the p.d.f.

Usage:

+RemoveParameters{
  +NameOfWorkspace {
    #comma separated list of (wildcarded) names of objects to remove
    <name = "*gamma_stat*,mc_stat*"> 
  }
}

To get an impression of the structure of a workspace and the naming of objects it contains consider printing it in a ROOT shell:

workspace->Print("t")