# Calculating effective sigma

**URL:** <https://root-forum.cern.ch/t/calculating-effective-sigma/32909>\
**Category:** ROOT\
**Created:** [February 25, 2019, 9:07pm UTC](https://root-forum.cern.ch/t/calculating-effective-sigma/32909 "2019-02-25T21:07:25Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [February 27, 2019, 4:38pm UTC](https://root-forum.cern.ch/t/calculating-effective-sigma/32909/4 "2019-02-27T16:38:26Z")

</div>

Try:

```auto
grep -r -i quantile `root-config --incdir`
grep -r -i quantile ${ROOTSYS}/t[eu]*

```

If you create a histogram of the “mass of a diphoton object”, then maybe: [TH1::GetQuantiles](https://root.cern.ch/doc/master/classTH1.html#a2be4a5889f7421047d68b0a398675b8d)

> [@Median of histogram](https://root-forum.cern.ch/t/median-of-histogram/7626/5):
>
> The “median” is just the “0.5 quantile”: { // create, fill and draw the histogram TF1 \*f = new TF1("f", "TMath::Gaus(x, 5, 1)", 0, 10); TH1D \*h = new TH1D("h", "h", 100, 0, 10); h-\>FillRandom("f"); h-\>Draw(); // calculate and print the "median" Double\_t x, q; q = 0.5; // 0.5 for "median" h-\>ComputeIntegral(); // just a precaution h-\>GetQuantiles(1, &x, &q); std::cout \<\< "median = " \<\< x \<\< std::endl; }

---

_[View the full topic](https://root-forum.cern.ch/t/calculating-effective-sigma/32909)._
