Introduction
So here is the simple code that wraps ROOT TGraph classes around the lovable innards of FFTW. So if you've ever wanted to correlate two TGraphs against each other or find the power spectral density of TGraph here is where all your dreams can come true.
Prerequisites
There are, unsurprisingly, two prerequisites for installing libRootFftwWrapper.
- ROOT -- If you don't have it installed get the latest version from the ROOT website
- FFTW3 -- The Fastest Fourier Transform in the west. If you don't have libfftw3.so on your machine then you need to install it. Most Linux distributions have a package ready to install, otherwise head to the FFTW website.
Downloading
The recommended way to download the program is from the svn repository. Try doing:
svn co https://delos.mps.ohio-state.edu/anitaGround/libRootFftwWrapper/trunk (or branches/R1.2) mySillyNamedRootFfftWrapperDir
Alternatively go to the download link on the left.
Installing
Four steps to installation happiness:
- Make sure the prerequisites are installed and accessible from your LD_LIBRARY_PATH
- Make SURE ANITA_UTIL_INSTALL_DIR (or alternatively ARA_UTIL_INSTALL_DIR) is set. (You probably want $ANITA_UTIL_INSTALL_DIR/lib in your LD_LIBRARY_PATH)
- type:
make
- type:
make install
Running
- Start root:
- gSystem->Load("libfftw3.so") -- may need full path
- gSystem->Load("libRootFftwWrapper.so") -- may need full path
- The power of FFTtools family of functions should be available to you.
Comments or Requests
To the usual address and bank account details
Copyright © 2008 Ryan Nichol, (last modified 19 Apr 2022)