21 : fSize(pset.
get<
int>(
"FFTSize", 0))
23 , fFitBins(pset.
get<
int>(
"FitBins"))
55 for (i = 1; i <
fSize; i *= 2) {}
60 fFFT =
new TFFTRealComplex(fSize,
false);
68 fPeakFit =
new TF1(
"fPeakFit",
"gaus");
70 "Convolution Peak Data",
124 double factor = -2.0 * TMath::Pi() * shift / (double)
fSize;
127 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 ®)
#define DEFINE_ART_SERVICE(svc)
GlobalSignal< detail::SignalResponseType::FIFO, void(Run const &)> sPreBeginRun
std::vector< TComplex > fCompTemp
cet::LibraryManager dummy("noplugin")
TFFTComplexReal * fInverseFFT
object to do Inverse FF
auto const & get(AssnsNode< L, R, D > const &r)
void ReinitializeFFT(int, std::string, int)