LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "SignalShaping.h"
Public Member Functions | |
SignalShaping () | |
virtual | ~SignalShaping () |
const std::vector< double > & | Response () const |
const std::vector< double > & | Response_save () const |
const std::vector< TComplex > & | ConvKernel () const |
const std::vector< TComplex > & | Filter () const |
const std::vector< TComplex > & | DeconvKernel () const |
template<class T > | |
void | Convolute (std::vector< T > &func) const |
template<class T > | |
void | Deconvolute (std::vector< T > &func) const |
void | Reset () |
void | save_response () |
void | set_normflag (bool flag) |
void | AddResponseFunction (const std::vector< double > &resp, bool ResetResponse=false) |
void | ShiftResponseTime (double ticks) |
void | SetPeakResponseTime (double tick) |
void | AddFilterFunction (const std::vector< TComplex > &filt) |
void | SetDeconvKernelPolarity (int pol) |
void | LockResponse () const |
void | CalculateDeconvKernel () const |
Private Attributes | |
bool | fResponseLocked |
bool | fFilterLocked |
std::vector< double > | fResponse |
std::vector< double > | fResponse_save |
std::vector< TComplex > | fConvKernel |
std::vector< TComplex > | fFilter |
std::vector< TComplex > | fDeconvKernel |
int | fDeconvKernelPolarity |
bool | fNorm |
Definition at line 69 of file SignalShaping.h.
util::SignalShaping::SignalShaping | ( | ) |
Definition at line 18 of file SignalShaping.cxx.
|
virtual |
Definition at line 23 of file SignalShaping.cxx.
void util::SignalShaping::AddFilterFunction | ( | const std::vector< TComplex > & | filt | ) |
Definition at line 153 of file SignalShaping.cxx.
References fFilter, fFilterLocked, util::LArFFT::FFTSize(), filt, and n.
Referenced by set_normflag().
void util::SignalShaping::AddResponseFunction | ( | const std::vector< double > & | resp, |
bool | ResetResponse = false |
||
) |
Definition at line 53 of file SignalShaping.cxx.
References util::LArFFT::DoFFT(), util::LArFFT::DoInvFFT(), fConvKernel, util::LArFFT::FFTSize(), fResponse, and fResponseLocked.
Referenced by set_normflag().
void util::SignalShaping::CalculateDeconvKernel | ( | ) | const |
Definition at line 233 of file SignalShaping.cxx.
References util::abs(), util::LArFFT::DoInvFFT(), fConvKernel, fDeconvKernel, fDeconvKernelPolarity, fFilter, fFilterLocked, util::LArFFT::FFTSize(), fNorm, fResponse, LockResponse(), and n.
Referenced by Deconvolute(), and set_normflag().
|
inline |
|
inline |
Definition at line 171 of file SignalShaping.h.
References util::LArFFT::Convolute(), fConvKernel, util::LArFFT::FFTSize(), fResponseLocked, LockResponse(), and n.
Referenced by DeconvKernel().
|
inline |
Definition at line 80 of file SignalShaping.h.
References Convolute(), Deconvolute(), fDeconvKernel, and Reset().
|
inline |
Definition at line 188 of file SignalShaping.h.
References CalculateDeconvKernel(), util::LArFFT::Convolute(), fDeconvKernel, fFilterLocked, util::LArFFT::FFTSize(), and n.
Referenced by DeconvKernel().
|
inline |
void util::SignalShaping::LockResponse | ( | ) | const |
Definition at line 197 of file SignalShaping.cxx.
References fConvKernel, util::LArFFT::FFTSize(), fResponse, fResponseLocked, and n.
Referenced by CalculateDeconvKernel(), Convolute(), and set_normflag().
void util::SignalShaping::Reset | ( | ) |
Definition at line 39 of file SignalShaping.cxx.
References fConvKernel, fDeconvKernel, fDeconvKernelPolarity, fFilter, fFilterLocked, fResponse, and fResponseLocked.
Referenced by DeconvKernel().
|
inline |
|
inline |
Definition at line 77 of file SignalShaping.h.
References fResponse_save.
|
inline |
Definition at line 100 of file SignalShaping.h.
References fResponse, and fResponse_save.
|
inline |
Definition at line 105 of file SignalShaping.h.
References AddFilterFunction(), AddResponseFunction(), CalculateDeconvKernel(), fNorm, LockResponse(), SetDeconvKernelPolarity(), SetPeakResponseTime(), and ShiftResponseTime().
void util::SignalShaping::SetDeconvKernelPolarity | ( | int | pol | ) |
Definition at line 181 of file SignalShaping.cxx.
References fDeconvKernelPolarity.
Referenced by set_normflag().
void util::SignalShaping::SetPeakResponseTime | ( | double | tick | ) |
Definition at line 127 of file SignalShaping.cxx.
References util::LArFFT::FFTSize(), fResponse, fResponseLocked, util::LArFFT::PeakCorrelation(), and ShiftResponseTime().
Referenced by set_normflag().
void util::SignalShaping::ShiftResponseTime | ( | double | ticks | ) |
Definition at line 106 of file SignalShaping.cxx.
References util::LArFFT::DoInvFFT(), fConvKernel, fResponse, fResponseLocked, and util::LArFFT::ShiftData().
Referenced by set_normflag(), and SetPeakResponseTime().
|
private |
Definition at line 149 of file SignalShaping.h.
Referenced by AddResponseFunction(), CalculateDeconvKernel(), ConvKernel(), Convolute(), LockResponse(), Reset(), and ShiftResponseTime().
|
mutableprivate |
Definition at line 155 of file SignalShaping.h.
Referenced by CalculateDeconvKernel(), DeconvKernel(), Deconvolute(), and Reset().
|
private |
Definition at line 160 of file SignalShaping.h.
Referenced by CalculateDeconvKernel(), Reset(), and SetDeconvKernelPolarity().
|
private |
Definition at line 152 of file SignalShaping.h.
Referenced by AddFilterFunction(), CalculateDeconvKernel(), Filter(), and Reset().
|
mutableprivate |
Definition at line 142 of file SignalShaping.h.
Referenced by AddFilterFunction(), CalculateDeconvKernel(), Deconvolute(), and Reset().
|
private |
Definition at line 163 of file SignalShaping.h.
Referenced by CalculateDeconvKernel(), and set_normflag().
|
private |
Definition at line 145 of file SignalShaping.h.
Referenced by AddResponseFunction(), CalculateDeconvKernel(), LockResponse(), Reset(), Response(), save_response(), SetPeakResponseTime(), and ShiftResponseTime().
|
private |
Definition at line 146 of file SignalShaping.h.
Referenced by Response_save(), and save_response().
|
mutableprivate |
Definition at line 141 of file SignalShaping.h.
Referenced by AddResponseFunction(), Convolute(), LockResponse(), Reset(), SetPeakResponseTime(), and ShiftResponseTime().