I am trying to set the range of a fit in roofit. I have tried
RooFitResult*fitting = pdf.fitTo(*data, Range(sel.c_str()));
However I get the error message:
Error: Function Range(sel.c_str()) is not defined in current scope
I get this same error if I try to setRange before. I am using root 5.16.8 rooFit V2.07.