Reading values from RooDataSet

Hi,

Suppose I have a root file containing a RooDataSet called _tset which contains a set of parameters a, b, c, …, how can I extract the value of one of these. I can see the content doing:
_test->store()->tree()->Scan()
which shows the values of a, b c,…
but I’d like to have a syntax which can read the info from a ROOT macro.

Thanks,

Devdatta.

Hello,

You can get a dataset row with RooDataSet::get() and then get the value of the RooRealVar you want from the returned list:

root.cern.ch/root/html/RooDataSe … ataSet:get
root.cern.ch/root/html/RooAbsCol … ction:find

Regards,

– Gregory

Hi Gregory,

Got it! Thanks.

Devdatta.