A question about RooDataSet

Hello
I am new user to RooFit. I can use RooDataSet::addColoumn(RooAbsArg& var, Bool_t adjustRange = kTRUE) to calculate multiple functions with the given dataset. However, I can’t find a function such as “getColumn(XXX)” to return a column. How can I get a certain column value and store it in a new RooDataSet?

Thanks a lot for your help!

Regards Hao

Hi,

You can use “reduce” to to that:
root.cern.ch/root/html/RooAbsDat … ata:reduce

You can find an example on Page 90 of RooFit manual:
ftp://root.cern.ch/root/doc/RooFit_User … .91-33.pdf

i.e.,

Cheers, Jibo