Hi everyone,
I was looking since yesterday for something which seems not to exist in Roofit.
I wanted to have a variable (inherited from RooAbsReal) which takes values from a TGraph given one server variable. So I have written a class called “RooGraphVar” . I put it in attachement and feel free to use it (you need to compile it with .L RooGraphVar.cxx+).
Here is an example with red crosses representing the TGraph (variable x), the blue solid line is a RooPlot of an RooGraphVar object with linear interpolation and the purple line a RooPlot of an RooGraphVar object with a spline interpolation.
RooGraphVar.h (1.4 KB)
RooGraphVar.cxx (2.63 KB)
