# Alternative to RooKeysPDF?

**URL:** <https://root-forum.cern.ch/t/alternative-to-rookeyspdf/12889>\
**Category:** Roofit and RooStats\
**Created:** [August 4, 2011, 11:49am UTC](https://root-forum.cern.ch/t/alternative-to-rookeyspdf/12889 "2011-08-04T11:49:20Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![tmf](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/ea666f/32.png) [@tmf](https://root-forum.cern.ch/u/tmf)\
**Post date:** [August 4, 2011, 11:49am UTC](https://root-forum.cern.ch/t/alternative-to-rookeyspdf/12889/1 "2011-08-04T11:49:20Z")

</div>

I’m creating a shape template using RooKeysPDF from MC, which takes very long time (RooDateset used has 100k entries, so this is pretty normal I guess). Is there some alternative (faster) PDF generation method available inside RooFit (most probably smoothing is not needed due to huge number of entries). Alternatively - is there a way inside RooFit to limit the size of the dataset to given number of events (e.g. take first 5k)?

Thank you,  
Tomasz

---

_[View the full topic](https://root-forum.cern.ch/t/alternative-to-rookeyspdf/12889)._
