A question about RooDataSet

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


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


Cheers, Jibo