19 : fSize(pset.
get<int>(
"FFTSize", 0))
20 , fOption(pset.
get<
std::string>(
"FFTOption"))
21 , fFitBins(pset.
get<int>(
"FitBins"))
51 for (i = 1; i <
fSize; i *= 2) {}
56 fFFT =
new TFFTRealComplex(fSize,
false);
64 fPeakFit =
new TF1(
"fPeakFit",
"gaus");
66 "Convolution Peak Data",
118 double factor = -2.0 * TMath::Pi() * shift / (double)
fSize;
121 input[i] *= TComplex::Exp(TComplex(0, factor * (
double)i));
void resetSizePerRun(art::Run const &)
void ShiftData(std::vector< TComplex > &input, double shift)
std::vector< TComplex > fKern
TFFTRealComplex * fFFT
object to do FFT
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
LArFFT(fhicl::ParameterSet const &pset, art::ActivityRegistry ®)
GlobalSignal< detail::SignalResponseType::FIFO, void(Run const &)> sPreBeginRun
decltype(auto) get(T &&obj)
ADL-aware version of std::to_string.
std::vector< TComplex > fCompTemp
TFFTComplexReal * fInverseFFT
object to do Inverse FF
void ReinitializeFFT(int, std::string, int)