# SumCoefRange() (or equivalent) argument for RooAbsPdf::PlotOn()

**URL:** <https://root-forum.cern.ch/t/sumcoefrange-or-equivalent-argument-for-rooabspdf-ploton/64758>\
**Category:** Roofit and RooStats\
**Created:** [March 17, 2026, 12:13pm UTC](https://root-forum.cern.ch/t/sumcoefrange-or-equivalent-argument-for-rooabspdf-ploton/64758 "2026-03-17T12:13:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmeyerga](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/lmeyerga/32/26194_2.png) [@lmeyerga](https://root-forum.cern.ch/u/lmeyerga)\
**Post date:** [March 17, 2026, 12:13pm UTC](https://root-forum.cern.ch/t/sumcoefrange-or-equivalent-argument-for-rooabspdf-ploton/64758/1 "2026-03-17T12:13:39Z")

</div>

Dear experts,

I have a composite pdf (e.g. `f * F_1 + (1-f) * F_2`) which I fit over a certain range, and therefore `f` is defined with respect to that range. However, I wish to plot this pdf over a different range. Simply plotting the pdf with `RooAbsPdf::PlotOn()` gives the wrong result, as `f` is assumed to be defined with respect to the larger range. Is there an argument similar to `SumCoefRange()` (available for `RooAbsPdf::createNLL()`) that I can pass to `PlotOn()` to produce correct plots?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![lbreitwi](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/lbreitwi/32/21330_2.png) [@lbreitwi](https://root-forum.cern.ch/u/lbreitwi)\
**Post date:** [March 18, 2026, 10:21am UTC](https://root-forum.cern.ch/t/sumcoefrange-or-equivalent-argument-for-rooabspdf-ploton/64758/2 "2026-03-18T10:21:05Z")

</div>

Hi Lucas,  
Thank you for your question.  
@jonas could you please take a look?  
Best,  
Lukas

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [April 1, 2026, 10:21am UTC](https://root-forum.cern.ch/t/sumcoefrange-or-equivalent-argument-for-rooabspdf-ploton/64758/3 "2026-04-01T10:21:31Z")

</div>

Closed on April 1, 2026, 10:21am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
