# Convolution of two TF1

**URL:** <https://root-forum.cern.ch/t/convolution-of-two-tf1/23625>\
**Category:** Roofit and RooStats\
**Created:** [January 27, 2017, 3:16pm UTC](https://root-forum.cern.ch/t/convolution-of-two-tf1/23625 "2017-01-27T15:16:25Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Pepe\_Le\_Pew](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pepe_le_pew/32/12365_2.png) [@Pepe\_Le\_Pew](https://root-forum.cern.ch/u/Pepe_Le_Pew)\
**Post date:** [January 29, 2017, 7:00pm UTC](https://root-forum.cern.ch/t/convolution-of-two-tf1/23625/8 "2017-01-29T19:00:51Z")

</div>

If you do not like this plot, you can also try:

```auto
ROOT::Math::IntegratorOneDimOptions::SetDefaultIntegrator("Gauss");
TF1Convolution *f_conv = new TF1Convolution(f1, f1, emin, emax, false);

```

You will then have four different curves, so you should be able to pick one for you ❗ ![:mrgreen:](https://root-forum.cern.ch/uploads/default/original/2X/2/2799b3ea86c419a02327c767288415b2a17e6ee1.gif "Mr. Green")

Well, you could try all different available ROOT’s “1-dim integrators”: “Gauss”, “GaussLegendre”, “Adaptive”, “AdaptiveSingular” and “NonAdaptive”. 😉  
Seven different curves should be a “good many” to choose from ❗ ![:mrgreen:](https://root-forum.cern.ch/uploads/default/original/2X/2/2799b3ea86c419a02327c767288415b2a17e6ee1.gif "Mr. Green")

---

_[View the full topic](https://root-forum.cern.ch/t/convolution-of-two-tf1/23625)._
