Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
UCorrelator::SineSubtractFilter Class Reference

Public Member Functions

 SineSubtractFilter (double min_power_ratio=0.05, int max_failed_iter=0, int nfreq_bands=0, const double *freq_bands_start=0, const double *freq_bands_end=0, int nstored_freqs=5)
 
void makeAdaptive (const TimeDependentAverageLoader *avg=0, double peakiness_exp=1)
 
void setInteractive (bool set)
 
void setUseEven (bool use_even_wf)
 
const char * tag () const
 
const char * description () const
 
unsigned nOutputs () const
 
const char * outputName (unsigned i) const
 
unsigned outputLength (unsigned i) const
 
void fillOutput (unsigned i, double *vars) const
 
void setVerbose (bool v)
 
void setPeakFindingOption (FFTtools::SineSubtract::PeakFindingOption option, const double *params=0)
 
void setEnvelopeOption (FFTtools::SineSubtract::EnvelopeOption option, const double *params=0)
 
virtual void process (FilteredAnitaEvent *ev)
 
virtual void processOne (AnalysisWaveform *wf, const RawAnitaHeader *h, int i, int pol)
 
const FFTtools::SineSubtractsinsub (AnitaPol::AnitaPol_t pol, int ant) const
 
- Public Member Functions inherited from FilterOperation
virtual ~FilterOperation ()
 

Static Public Member Functions

static void setUseCache (bool uc)
 

Protected Member Functions

void refresh_cache (UInt_t eventNumber)
 
- Protected Member Functions inherited from FilterOperation
AnalysisWaveformgetWf (FilteredAnitaEvent *ev, int i)
 
AnalysisWaveformgetWf (FilteredAnitaEvent *ev, int ant, AnitaPol::AnitaPol_t pol)
 

Protected Attributes

SineSubtractCachesine_sub_cache
 
const FFTtools::SineSubtractResultcached_ssr [2][NUM_SEAVEYS]
 

Detailed Description

Definition at line 202 of file UCFilters.h.

Inheritance diagram for UCorrelator::SineSubtractFilter:
Inheritance graph
[legend]
Collaboration diagram for UCorrelator::SineSubtractFilter:
Collaboration graph
[legend]

Member Function Documentation

const char* UCorrelator::SineSubtractFilter::description ( ) const
inlinevirtual

human readable description, should provide sufficient information to understand what was done

Implements FilterOperation.

Definition at line 219 of file UCFilters.h.

void UCorrelator::SineSubtractFilter::fillOutput ( unsigned  i,
double *  v 
) const
virtual

Fill the ith output

Reimplemented from FilterOperation.

Definition at line 939 of file UCFilters.cc.

void UCorrelator::SineSubtractFilter::makeAdaptive ( const TimeDependentAverageLoader avg = 0,
double  peakiness_exp = 1 
)

Make the filter adaptive using a TimeDependentAverageLoader. If null passed, adaptiveness turned off.

Definition at line 1158 of file UCFilters.cc.

unsigned UCorrelator::SineSubtractFilter::nOutputs ( ) const
inlinevirtual

The number of output variables (doubles or double arrays) defined by this operation

Reimplemented from FilterOperation.

Definition at line 220 of file UCFilters.h.

unsigned UCorrelator::SineSubtractFilter::outputLength ( unsigned  i) const
inlinevirtual

The length of the ith output variable (it's a double array of this size)

Reimplemented from FilterOperation.

Definition at line 222 of file UCFilters.h.

const char* UCorrelator::SineSubtractFilter::outputName ( unsigned  i) const
inlinevirtual

The name of the ith output variable

Reimplemented from FilterOperation.

Definition at line 221 of file UCFilters.h.

void UCorrelator::SineSubtractFilter::process ( FilteredAnitaEvent event)
virtual

operate on the FilteredAnitaEvent

Implements FilterOperation.

Definition at line 1031 of file UCFilters.cc.

void UCorrelator::SineSubtractFilter::processOne ( AnalysisWaveform awf,
const RawAnitaHeader header,
int  ant,
int  pol 
)
virtual

operate on one waveform (ABL added moved this from UniformFitlerOperation so that FilterStrategy could call its this on single waveforms, and the weird argument structure is just so it matches ad sinsub)

Implements FilterOperation.

Definition at line 1049 of file UCFilters.cc.

const char* UCorrelator::SineSubtractFilter::tag ( ) const
inlinevirtual

short name for operation, will be used for output tree name, if there is one

Implements FilterOperation.

Definition at line 218 of file UCFilters.h.


The documentation for this class was generated from the following files: