17 #include <sys/types.h> 26 : fSize (pset.get< int > (
"FFTSize", 0))
27 , fOption (pset.get<
std::string >(
"FFTOption"))
28 , fFitBins (pset.get< int >(
"FitBins"))
43 for(i = 1; i <
fSize; i *= 2){ }
50 fFFT =
new TFFTRealComplex(fSize,
false);
58 fPeakFit =
new TF1(
"fPeakFit",
"gaus");
110 double factor = -2.0*TMath::Pi()*shift/(double)
fSize;
113 input[i] *= TComplex::Exp(TComplex(0,factor*(
double)i));
Namespace for general, non-LArSoft-specific utilities.
void ShiftData(std::vector< TComplex > &input, double shift)
#define DEFINE_ART_SERVICE(svc)
std::vector< TComplex > fKern
TFFTRealComplex * fFFT
object to do FFT
LArFFT(fhicl::ParameterSet const &pset, art::ActivityRegistry ®)
std::vector< TComplex > fCompTemp
TFFTComplexReal * fInverseFFT
object to do Inverse FF
void ReinitializeFFT(int, std::string, int)