# Generating data from PDF using parameterised range

**URL:** <https://root-forum.cern.ch/t/generating-data-from-pdf-using-parameterised-range/12395>\
**Category:** Roofit and RooStats\
**Created:** [May 10, 2011, 7:16am UTC](https://root-forum.cern.ch/t/generating-data-from-pdf-using-parameterised-range/12395 "2011-05-10T07:16:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![clementn](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/5e9695/32.png) [@clementn](https://root-forum.cern.ch/u/clementn)\
**Post date:** [May 10, 2011, 7:16am UTC](https://root-forum.cern.ch/t/generating-data-from-pdf-using-parameterised-range/12395/1 "2011-05-10T07:16:16Z")

</div>

In a multidimensional PDF with the range of one variable parameterised by another variable, using setNormRange the integrator is able to correctly obtain a normalisation value. When attempting to create a dataset using generate() however, the parameterised range appears to be ignored, creating calculation warnings and segfaults.

I know it is possible to use reduce() to filter the range after generation, but this is a waste of cpu. If there is a way to get generate() to acknowledge a parameterised range I would appreciate know how.

On a sidenote, the calculation of the normalisation is taking an enormous time due to the complexity of the formula, is there no way to manually input the normalisation for a PDF?
