# Meaning of getPropagatedError()'s nset argument

**URL:** <https://root-forum.cern.ch/t/meaning-of-getpropagatederror-s-nset-argument/50596>\
**Category:** Roofit and RooStats\
**Tags:** documentation\
**Created:** [June 29, 2022, 2:07pm UTC](https://root-forum.cern.ch/t/meaning-of-getpropagatederror-s-nset-argument/50596 "2022-06-29T14:07:10Z")\
**Posts on this page:** 5\
**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:** [June 29, 2022, 2:07pm UTC](https://root-forum.cern.ch/t/meaning-of-getpropagatederror-s-nset-argument/50596/1 "2022-06-29T14:07:10Z")

</div>

Dear experts,

I’m using a `RooFormulaVar` to compute a ratio (actually 1 - N\_a/N\_b) of two parameters N\_a and N\_b. These parameters are estimated from a fit, so I’m using the `getPropagatedError` method to compute the error of the `RooFormulaVar`. My issue is that the `getPropagatedError` method allows an `nset` argument and I can’t understand what’s its purpose. Do I need to pass the fit variables in this argument?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![etejedor](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/e79b87/32.png) [@etejedor](https://root-forum.cern.ch/u/etejedor)\
**Post date:** [June 30, 2022, 8:24am UTC](https://root-forum.cern.ch/t/meaning-of-getpropagatederror-s-nset-argument/50596/2 "2022-06-30T08:24:56Z")

</div>

Hello,

@moneta and @jonas are the right people to answer 🙂

---

<div class="post-metadata">

**Author:** ![jonas](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jonas/32/24756_2.png) [@jonas](https://root-forum.cern.ch/u/jonas)\
**Post date:** [June 30, 2022, 8:58am UTC](https://root-forum.cern.ch/t/meaning-of-getpropagatederror-s-nset-argument/50596/3 "2022-06-30T08:58:21Z")

</div>

Hi @lmeyerga, thanks for the question!

In RooFit, pdfs are not normalized until you tell then which set of variables they should be normalized over (see “Normalization/Integration” in the [RooAbsPdf documentation](https://root.cern.ch/doc/master/classRooAbsPdf.html)). This is the so called “normalization set”, often referred to as “normSet” or “nset” in the code.

Usually, you want to normalize over the observables in you dataset, so you’d have to call it like `getPropagatedError(fitResult, *data.get())`.

But that is only relevant in care there are some `RooAbsPdf` involved in the computation of the variable you want get the propagated error for. If you really just compute `1 - N_a/N_b`, where `N_a` and `N_b` are RooRealVars, the normalization set doesn’t matter.

Hope this helps!  
Cheers,  
Jonas

---

<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:** [June 30, 2022, 3:02pm UTC](https://root-forum.cern.ch/t/meaning-of-getpropagatederror-s-nset-argument/50596/4 "2022-06-30T15:02:03Z")

</div>

Hi @etejedor, @jonas

Thank’s, that solves my doubt.

Cheers,  
Lucas

---

<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:** [July 14, 2022, 3:02pm UTC](https://root-forum.cern.ch/t/meaning-of-getpropagatederror-s-nset-argument/50596/5 "2022-07-14T15:02:50Z")

</div>

Closed on July 14, 2022, 3:02pm UTC

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