# Pdf projection difference between root 6.36.06 and root 6.38.00

**URL:** <https://root-forum.cern.ch/t/pdf-projection-difference-between-root-6-36-06-and-root-6-38-00/64585>\
**Category:** Roofit and RooStats\
**Created:** [January 15, 2026, 8:27am UTC](https://root-forum.cern.ch/t/pdf-projection-difference-between-root-6-36-06-and-root-6-38-00/64585 "2026-01-15T08:27:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![de\_Vivie](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/71c47a/32.png) [@de\_Vivie](https://root-forum.cern.ch/u/de_Vivie)\
**Post date:** [January 15, 2026, 8:27am UTC](https://root-forum.cern.ch/t/pdf-projection-difference-between-root-6-36-06-and-root-6-38-00/64585/1 "2026-01-15T08:27:23Z")

</div>

Hello,

I am trying to fit a model to some data, with 3 regions, and then draw the projections. In root 6.36.06, the plots look fine. In 6.38.00, the normalisation of the pdf seem crazy in the projection (the fits in both version return identical numbers). How should I do these projections in root 6.38 to recover the proper behavior ?

I attached a simple macro to illustrate the problem, and two plots. I simply do :

root.exe miniProj.C

6.36.06 was installed on my mac with conda, and I compiled 6.38.00 from the source (but it was checked that the issue is also there in a more official installation).

Best..

Jean-Baptiste

[miniProj.C](https://root-forum.cern.ch/uploads/short-url/oPLBCGYD2TeLMiX2BucHDcTmqFy.C) (2.0 KB)

[r63800.pdf](https://root-forum.cern.ch/uploads/short-url/3Op7hO5QDPQmKc7o86eUVgvTote.pdf) (31.7 KB)

[r63606.pdf](https://root-forum.cern.ch/uploads/short-url/9LQ4ncapYBs8TyF2sCS8tulwdEF.pdf) (32.2 KB)

---

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [January 15, 2026, 9:35am UTC](https://root-forum.cern.ch/t/pdf-projection-difference-between-root-6-36-06-and-root-6-38-00/64585/2 "2026-01-15T09:35:47Z")

</div>

Maybe the argument `Normalization(nEvents, RooAbsReal::NumEvent)` helps as suggested in [RooFit normalization problem on release v6.38/00 · Issue #20827 · root-project/root · GitHub](https://github.com/root-project/root/issues/20827)

fyi @jonas

---

<div class="post-metadata">

**Author:** ![de\_Vivie](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/71c47a/32.png) [@de\_Vivie](https://root-forum.cern.ch/u/de_Vivie)\
**Post date:** [January 15, 2026, 1:13pm UTC](https://root-forum.cern.ch/t/pdf-projection-difference-between-root-6-36-06-and-root-6-38-00/64585/3 "2026-01-15T13:13:23Z")

</div>

Hello,

Thanks a lot for the hint. If I do this, nEvents should be equal to the total number of events in the dataset (i.e. not the number of events expected in the particular category which is projected).

Is this expected that in 6.38, we need to do this explicit normalisation ?

Best,

Jean-Baptiste

---

<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:** [January 29, 2026, 1:14pm UTC](https://root-forum.cern.ch/t/pdf-projection-difference-between-root-6-36-06-and-root-6-38-00/64585/4 "2026-01-29T13:14:03Z")

</div>

Closed on January 29, 2026, 1:14pm UTC

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