LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "LArFFT.h"
Public Member Functions | |
LArFFT (fhicl::ParameterSet const &pset, art::ActivityRegistry ®) | |
~LArFFT () | |
template<class T > | |
void | DoFFT (std::vector< T > &input, std::vector< TComplex > &output) |
template<class T > | |
void | DoInvFFT (std::vector< TComplex > &input, std::vector< T > &output) |
template<class T > | |
void | Deconvolute (std::vector< T > &input, std::vector< T > &respFunc) |
template<class T > | |
void | Deconvolute (std::vector< T > &input, std::vector< TComplex > &kern) |
template<class T > | |
void | Convolute (std::vector< T > &input, std::vector< T > &respFunc) |
template<class T > | |
void | Convolute (std::vector< T > &input, std::vector< TComplex > &kern) |
template<class T > | |
void | Correlate (std::vector< T > &input, std::vector< T > &respFunc) |
template<class T > | |
void | Correlate (std::vector< T > &input, std::vector< TComplex > &kern) |
template<class T > | |
void | AlignedSum (std::vector< T > &input, std::vector< T > &output, bool add=true) |
void | ShiftData (std::vector< TComplex > &input, double shift) |
template<class T > | |
void | ShiftData (std::vector< T > &input, double shift) |
template<class T > | |
T | PeakCorrelation (std::vector< T > &shape1, std::vector< T > &shape2) |
int | FFTSize () const |
std::string | FFTOptions () const |
int | FFTFitBins () const |
void | ReinitializeFFT (int, std::string, int) |
Private Member Functions | |
void | InitializeFFT () |
void | resetSizePerRun (art::Run const &) |
Private Attributes | |
int | fSize |
int | fFreqSize |
std::string | fOption |
int | fFitBins |
TF1 * | fPeakFit |
TH1D * | fConvHist |
std::vector< TComplex > | fCompTemp |
std::vector< TComplex > | fKern |
TFFTRealComplex * | fFFT |
object to do FFT More... | |
TFFTComplexReal * | fInverseFFT |
object to do Inverse FF More... | |
util::LArFFT::LArFFT | ( | fhicl::ParameterSet const & | pset, |
art::ActivityRegistry & | reg | ||
) |
Definition at line 18 of file LArFFT.cc.
References fSize, InitializeFFT(), resetSizePerRun(), and art::ActivityRegistry::sPreBeginRun.
util::LArFFT::~LArFFT | ( | ) |
Definition at line 76 of file LArFFT.cc.
References fConvHist, fFFT, fInverseFFT, and fPeakFit.
|
inline |
Definition at line 241 of file LArFFT.h.
References fSize, PeakCorrelation(), and ShiftData().
Referenced by caldata::CalWireAna::analyze().
|
inline |
Definition at line 170 of file LArFFT.h.
References DoFFT(), DoInvFFT(), fCompTemp, fFreqSize, and fKern.
Referenced by util::SignalShaping::Convolute(), util::SignalShaping::Deconvolute(), caldata::CalWire::produce(), and caldata::CalWireT962::produce().
|
inline |
Definition at line 189 of file LArFFT.h.
References DoFFT(), DoInvFFT(), fCompTemp, and fFreqSize.
|
inline |
Definition at line 204 of file LArFFT.h.
References DoFFT(), DoInvFFT(), fCompTemp, fFreqSize, and fKern.
Referenced by PeakCorrelation().
|
inline |
Definition at line 223 of file LArFFT.h.
References DoFFT(), DoInvFFT(), fCompTemp, and fFreqSize.
|
inline |
Definition at line 135 of file LArFFT.h.
References DoFFT(), DoInvFFT(), fCompTemp, fFreqSize, and fKern.
|
inline |
Definition at line 154 of file LArFFT.h.
References DoFFT(), DoInvFFT(), fCompTemp, and fFreqSize.
|
inline |
Definition at line 95 of file LArFFT.h.
References fFFT, and fFreqSize.
Referenced by util::SignalShaping::AddResponseFunction(), caldata::CalWireAna::analyze(), Convolute(), detsim::SimWire::ConvoluteResponseFunctions(), Correlate(), Deconvolute(), and ShiftData().
|
inline |
Definition at line 117 of file LArFFT.h.
References fFreqSize, fInverseFFT, and fSize.
Referenced by util::SignalShaping::AddResponseFunction(), util::SignalShaping::CalculateDeconvKernel(), Convolute(), detsim::SimWire::ConvoluteResponseFunctions(), Correlate(), Deconvolute(), detsim::SimWire::GenNoise(), ShiftData(), and util::SignalShaping::ShiftResponseTime().
|
inline |
|
inline |
|
inline |
Definition at line 66 of file LArFFT.h.
References fSize.
Referenced by util::SignalShaping::AddFilterFunction(), util::SignalShaping::AddResponseFunction(), detsim::WienerFilterAna::analyze(), caldata::CalWireAna::analyze(), detsim::WienerFilterAna::beginJob(), detsim::SimWire::beginJob(), util::SignalShaping::CalculateDeconvKernel(), util::SignalShaping::Convolute(), util::SignalShaping::Deconvolute(), util::SignalShaping::LockResponse(), caldata::CalWire::produce(), caldata::CalWireT962::produce(), and util::SignalShaping::SetPeakResponseTime().
|
private |
Definition at line 48 of file LArFFT.cc.
References fCompTemp, fConvHist, fFFT, fFitBins, fFreqSize, fInverseFFT, fKern, fOption, fPeakFit, and fSize.
Referenced by LArFFT(), and ReinitializeFFT().
|
inline |
Definition at line 270 of file LArFFT.h.
References Correlate(), DECLARE_ART_SERVICE, fConvHist, fFitBins, fPeakFit, and fSize.
Referenced by AlignedSum(), detsim::SimWire::ConvoluteResponseFunctions(), and util::SignalShaping::SetPeakResponseTime().
void util::LArFFT::ReinitializeFFT | ( | int | size, |
std::string | option, | ||
int | fitbins | ||
) |
Definition at line 85 of file LArFFT.cc.
References fConvHist, fFFT, fFitBins, fInverseFFT, fOption, fPeakFit, fSize, InitializeFFT(), and util::size().
Referenced by FFTFitBins(), and resetSizePerRun().
|
private |
Definition at line 39 of file LArFFT.cc.
References fFitBins, fOption, fSize, and ReinitializeFFT().
Referenced by LArFFT().
void util::LArFFT::ShiftData | ( | std::vector< TComplex > & | input, |
double | shift | ||
) |
Definition at line 116 of file LArFFT.cc.
References fFreqSize, and fSize.
Referenced by AlignedSum(), detsim::SimWire::ConvoluteResponseFunctions(), ShiftData(), and util::SignalShaping::ShiftResponseTime().
|
inline |
Definition at line 257 of file LArFFT.h.
References DoFFT(), DoInvFFT(), fCompTemp, and ShiftData().
|
private |
Definition at line 79 of file LArFFT.h.
Referenced by Convolute(), Correlate(), Deconvolute(), InitializeFFT(), and ShiftData().
|
private |
Definition at line 78 of file LArFFT.h.
Referenced by InitializeFFT(), PeakCorrelation(), ReinitializeFFT(), and ~LArFFT().
|
private |
object to do FFT
Definition at line 82 of file LArFFT.h.
Referenced by DoFFT(), InitializeFFT(), ReinitializeFFT(), and ~LArFFT().
|
private |
Definition at line 76 of file LArFFT.h.
Referenced by FFTFitBins(), InitializeFFT(), PeakCorrelation(), ReinitializeFFT(), and resetSizePerRun().
|
private |
Definition at line 74 of file LArFFT.h.
Referenced by Convolute(), Correlate(), Deconvolute(), DoFFT(), DoInvFFT(), InitializeFFT(), and ShiftData().
|
private |
object to do Inverse FF
Definition at line 83 of file LArFFT.h.
Referenced by DoInvFFT(), InitializeFFT(), ReinitializeFFT(), and ~LArFFT().
|
private |
Definition at line 80 of file LArFFT.h.
Referenced by Convolute(), Correlate(), Deconvolute(), and InitializeFFT().
|
private |
Definition at line 75 of file LArFFT.h.
Referenced by FFTOptions(), InitializeFFT(), ReinitializeFFT(), and resetSizePerRun().
|
private |
Definition at line 77 of file LArFFT.h.
Referenced by InitializeFFT(), PeakCorrelation(), ReinitializeFFT(), and ~LArFFT().
|
private |
Definition at line 73 of file LArFFT.h.
Referenced by AlignedSum(), DoInvFFT(), FFTSize(), InitializeFFT(), LArFFT(), PeakCorrelation(), ReinitializeFFT(), resetSizePerRun(), and ShiftData().