LArSoft
v06_85_00
Liquid Argon Software toolkit - http://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 () |
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 25 of file LArFFT_service.cc.
References fSize, and InitializeFFT().
util::LArFFT::~LArFFT | ( | ) |
Definition at line 66 of file LArFFT_service.cc.
References fConvHist, fFFT, fInverseFFT, and fPeakFit.
|
inline |
Definition at line 243 of file LArFFT.h.
References fSize, PeakCorrelation(), and ShiftData().
Referenced by caldata::CalWireAna::analyze(), detsim::SimWire::ConvoluteResponseFunctions(), and detsim::SimWireT962::ConvoluteResponseFunctions().
|
inline |
Definition at line 172 of file LArFFT.h.
References DoFFT(), DoInvFFT(), fCompTemp, fFreqSize, and fKern.
Referenced by util::SignalShaping::Convolute(), util::SignalShaping::Deconvolute(), caldata::CalWire::produce(), caldata::CalWireT962::produce(), detsim::SimWire::produce(), and detsim::SimWireT962::produce().
|
inline |
Definition at line 191 of file LArFFT.h.
References DoFFT(), DoInvFFT(), fCompTemp, and fFreqSize.
|
inline |
Definition at line 206 of file LArFFT.h.
References DoFFT(), DoInvFFT(), fCompTemp, fFreqSize, and fKern.
Referenced by PeakCorrelation().
|
inline |
Definition at line 225 of file LArFFT.h.
References DoFFT(), DoInvFFT(), fCompTemp, and fFreqSize.
|
inline |
Definition at line 137 of file LArFFT.h.
References DoFFT(), DoInvFFT(), fCompTemp, fFreqSize, and fKern.
|
inline |
Definition at line 156 of file LArFFT.h.
References DoFFT(), DoInvFFT(), fCompTemp, and fFreqSize.
|
inline |
Definition at line 97 of file LArFFT.h.
References fFFT, and fFreqSize.
Referenced by util::SignalShaping::AddResponseFunction(), caldata::CalWireAna::analyze(), Convolute(), detsim::SimWire::ConvoluteResponseFunctions(), detsim::SimWireT962::ConvoluteResponseFunctions(), Correlate(), Deconvolute(), and ShiftData().
|
inline |
Definition at line 119 of file LArFFT.h.
References fFreqSize, fInverseFFT, and fSize.
Referenced by util::SignalShaping::AddResponseFunction(), util::SignalShaping::CalculateDeconvKernel(), Convolute(), Correlate(), Deconvolute(), detsim::SimWire::GenNoise(), detsim::SimWireT962::GenNoise(), ShiftData(), and util::SignalShaping::ShiftResponseTime().
|
inline |
|
inline |
|
inline |
Definition at line 69 of file LArFFT.h.
References fSize.
Referenced by util::SignalShaping::AddFilterFunction(), util::SignalShaping::AddResponseFunction(), caldata::CalWireAna::analyze(), detsim::WienerFilterAna::analyze(), detsim::WienerFilterAna::beginJob(), detsim::SimWire::beginJob(), detsim::SimWireT962::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 40 of file LArFFT_service.cc.
References fCompTemp, fConvHist, fFFT, fFitBins, fFreqSize, fInverseFFT, fKern, fOption, fPeakFit, and fSize.
Referenced by LArFFT(), and ReinitializeFFT().
|
inline |
Definition at line 271 of file LArFFT.h.
References Correlate(), DECLARE_ART_SERVICE, fConvHist, fFitBins, fPeakFit, and fSize.
Referenced by AlignedSum(), and util::SignalShaping::SetPeakResponseTime().
void util::LArFFT::ReinitializeFFT | ( | int | size, |
std::string | option, | ||
int | fitbins | ||
) |
Definition at line 75 of file LArFFT_service.cc.
References fConvHist, fFFT, fFitBins, fInverseFFT, fOption, fPeakFit, fSize, and InitializeFFT().
Referenced by FFTFitBins().
void util::LArFFT::ShiftData | ( | std::vector< TComplex > & | input, |
double | shift | ||
) |
Definition at line 107 of file LArFFT_service.cc.
References DEFINE_ART_SERVICE, fFreqSize, and fSize.
Referenced by AlignedSum(), ShiftData(), and util::SignalShaping::ShiftResponseTime().
|
inline |
Definition at line 258 of file LArFFT.h.
References DoFFT(), DoInvFFT(), fCompTemp, and ShiftData().
|
private |
Definition at line 83 of file LArFFT.h.
Referenced by Convolute(), Correlate(), Deconvolute(), InitializeFFT(), and ShiftData().
|
private |
Definition at line 82 of file LArFFT.h.
Referenced by InitializeFFT(), PeakCorrelation(), ReinitializeFFT(), and ~LArFFT().
|
private |
object to do FFT
Definition at line 86 of file LArFFT.h.
Referenced by DoFFT(), InitializeFFT(), ReinitializeFFT(), and ~LArFFT().
|
private |
Definition at line 80 of file LArFFT.h.
Referenced by FFTFitBins(), InitializeFFT(), PeakCorrelation(), and ReinitializeFFT().
|
private |
Definition at line 78 of file LArFFT.h.
Referenced by Convolute(), Correlate(), Deconvolute(), DoFFT(), DoInvFFT(), InitializeFFT(), and ShiftData().
|
private |
object to do Inverse FF
Definition at line 87 of file LArFFT.h.
Referenced by DoInvFFT(), InitializeFFT(), ReinitializeFFT(), and ~LArFFT().
|
private |
Definition at line 84 of file LArFFT.h.
Referenced by Convolute(), Correlate(), Deconvolute(), and InitializeFFT().
|
private |
Definition at line 79 of file LArFFT.h.
Referenced by FFTOptions(), InitializeFFT(), and ReinitializeFFT().
|
private |
Definition at line 81 of file LArFFT.h.
Referenced by InitializeFFT(), PeakCorrelation(), ReinitializeFFT(), and ~LArFFT().
|
private |
Definition at line 77 of file LArFFT.h.
Referenced by AlignedSum(), DoInvFFT(), FFTSize(), InitializeFFT(), LArFFT(), PeakCorrelation(), ReinitializeFFT(), and ShiftData().