Suppose I have such code:
double lowbound=0, upbound=1;
RooRealVar x("x","x",lowbound,upbound);
RooRealVar y("y","y",lowbound,upbound);
In RooWorkspace factory can I use symbols/variables in the same way as lowbound/upbound above? I prefer not to write
w.factory("x[0,1]");
w.factory("y[0,1]");
since this may lead to refactoring problem.