How to print the formula expression used in generic pdf from a workspace

Hi all,

In the following attached code, the generic pdf is imported to a workspace and saved to a root file. In the next step, I need to access the workspace and change the coefficients in the formula expression and then rewrite to the workspace. Is it possible ? A small (generalised) code and the output root file are attached here.

thank you.
cheers - Niladri
wspace_signal.root (7.48 KB)
savewpace.cc (739 Bytes)

Hi,

You should be able to write a new generic pdf and replace it in the workspace. For doing this you can use the EDIT functionality of the workspace. See for example the tutorial

tutorials/roofit/rf513_wsfactory_tools.C

Lorenzo