# FFT in TConvolution problem

**URL:** <https://root-forum.cern.ch/t/fft-in-tconvolution-problem/58042>\
**Category:** Newbie\
**Created:** [February 3, 2024, 10:13am UTC](https://root-forum.cern.ch/t/fft-in-tconvolution-problem/58042 "2024-02-03T10:13:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmartin2](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/58f4c7/32.png) [@mmartin2](https://root-forum.cern.ch/u/mmartin2)\
**Post date:** [February 3, 2024, 10:13am UTC](https://root-forum.cern.ch/t/fft-in-tconvolution-problem/58042/1 "2024-02-03T10:13:28Z")

</div>

```auto
Hi everybody,

I am using ROOT in Ubuntu 22.04.2 LTS, latest version 6.30/02 installed via snap. I am trying to use the TConvolution class. When I type the "true" option meant to use FFT and later do a Fit to a TH1D, I get the following errors and warnings:

> Error in <TVirtualFFT::FFT>: handler not found
> Error in <TVirtualFFT::FFT>: handler not found
> Warning in <TF1Convolution::MakeFFTConv>: Cannot use FFT, probably FFTW package is not available. Switch to numerical convolution

When I search in this directory: /snap/root-framework/928/usr/include, the fftw3.h library is there, but when I type on terminal "root-config --has-fftw3", the answer is "no".

How can I make the FFT Convolution work?

Kind regards.

```

---

<div class="post-metadata">

**Author:** ![James-Carroll](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/james-carroll/32/27108_2.png) [@James-Carroll](https://root-forum.cern.ch/u/James-Carroll)\
**Post date:** [February 3, 2024, 8:08pm UTC](https://root-forum.cern.ch/t/fft-in-tconvolution-problem/58042/2 "2024-02-03T20:08:15Z")

</div>

Hi,

I’m looking to upgrade the snap to 6.30.04 in the next few days and I’ll take a look at fftw3 alongside it.

---

<div class="post-metadata">

**Author:** ![James-Carroll](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/james-carroll/32/27108_2.png) [@James-Carroll](https://root-forum.cern.ch/u/James-Carroll)\
**Post date:** [February 3, 2024, 11:37pm UTC](https://root-forum.cern.ch/t/fft-in-tconvolution-problem/58042/3 "2024-02-03T23:37:41Z")

</div>

Hi,

Could you please try running `sudo snap refresh` and try the v6.30.04 version.

---

<div class="post-metadata">

**Author:** ![mmartin2](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/58f4c7/32.png) [@mmartin2](https://root-forum.cern.ch/u/mmartin2)\
**Post date:** [February 3, 2024, 11:55pm UTC](https://root-forum.cern.ch/t/fft-in-tconvolution-problem/58042/4 "2024-02-03T23:55:45Z")

</div>

It takes it a looooong time (any idea why?) but at least it works now, thanks!
