Building PDFs by adding up numbers in RooDataSets

Hello all,

     I have coefficients in RooDataSets that are categorized into run numbers and each of those run numbers have multiple sub-run numbers. I want to build PDFs using RooSimPdfBuilder from those coefficients but what I want to do is not covered from what I've seen. For any given run, I want to add up those "sub-run" coefficients that occur in that run label in some linear combination. This linear combination is dependent on the current fit parameters. I then take that result and use that as a PDF coefficient for that run. Is there any possible way to do this? Thank you for your time