# Usage of TRolke

**URL:** <https://root-forum.cern.ch/t/usage-of-trolke/57852>\
**Category:** Newbie\
**Tags:** python, root\
**Created:** [January 16, 2024, 7:21am UTC](https://root-forum.cern.ch/t/usage-of-trolke/57852 "2024-01-16T07:21:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndrejL](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/andrejl/32/23243_2.png) [@AndrejL](https://root-forum.cern.ch/u/AndrejL)\
**Post date:** [January 16, 2024, 7:21am UTC](https://root-forum.cern.ch/t/usage-of-trolke/57852/1 "2024-01-16T07:21:48Z")

</div>

Which TRolke method is correct for determining the upper limits of a signal for the following case:

- Nsig and Nbkg are determined from the fit (RooFit)
- signal PDF shape is fixed from signalMC
- signal is very small
- and signal efficiency is determined independently from signalMC

I am aware of different class methods: SetPoissonBkgBinomEff, SetPoissonBkgGaussEff, etc… But which one would be the right one in this case?

* * *

_ROOT Version:_ 6.24/06  
_Platform:_ Jupyter Notebook

---

<div class="post-metadata">

**Author:** ![vpadulan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vpadulan/32/25315_2.png) [@vpadulan](https://root-forum.cern.ch/u/vpadulan)\
**Post date:** [January 16, 2024, 8:19am UTC](https://root-forum.cern.ch/t/usage-of-trolke/57852/2 "2024-01-16T08:19:29Z")

</div>

Dear @AndrejL ,

Thank you for reaching out to the forum! I believe @moneta can help you out here.

Cheers,  
Vincenzo

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [January 16, 2024, 11:23am UTC](https://root-forum.cern.ch/t/usage-of-trolke/57852/3 "2024-01-16T11:23:02Z")

</div>

Hello,

You can use `TRolke` only for a simple Poisson counting process, where you observe n events and you have Nsig expected events and Nbkg from background.

If you have values obtained from a fit using RooFit, you should use RooStats to compute confidence interval. `TRolke` uses the profile likelihood method, so you can use in this case the ProfileLikelihood calculator from RooStats (see [this tutorial](https://root.cern.ch/doc/master/StandardProfileLikelihoodDemo_8C.html)).  
Instead if you need to compute an upper limit is better to use the Asymptotic calculator from RooStats.  
(see this other [tutorial](https://root.cern.ch/doc/master/StandardHypoTestInvDemo_8C.html)).

Lorenzo
