TakeSnapshot

Take a snapshot of the current status of a RooFit workspace.

Usage:

+TakeSnapshot {
  +Morphing {
    +SnSh_SM {
      <base="SnSh_AllVars_Nominal">
      <setPars.AL=1.0>
      <setPars.AT=1.0>
    }
  }
}

One or more snapshots can be given as subfolders. Optionally, a base snapshot can be given. If this is omitted, the current status is used (and a warning is emitted).

The tags setPars, constPars and floatPars can be used to edit parameters before taking the snapshot. The tag fitResult can be used to load the values of an existing fit result (stored as a result to this or any other workspace in memory) and save it as a snapshot. This feature can be used to transfer fit results from one workspace to another, by loading a different, unrelated fit result and importing it to a workspace as a snapshot. The tag writeFitResult can be used to write a reflection of the snapshot as a fit result.