Getting a RooRealVar from a RooArgList

I have a RooArgList which contains a RooRealVar:

root [36] b
(class RooArgList)31638416
root [37] b.Print(“s”)

  1. RooRealVar:: a1 = -0.2

I can’t for the life of me find the method which will give me the roorealvar object. All I wan’t is to get the value -0.2, but I can’t find a way of doing this, there seems to be no explict method and I can’t recast.


Hi James,

The method will return you a RooAbsArg* pointer to a1.
You can cast that to (RooRealVar*) and then use it as RooRealVar.