HfFilter.h
Go to the documentation of this file.
1 
2 #ifndef WIRECELLSIGPROC_HFFILTER
3 #define WIRECELLSIGPROC_HFFILTER
4 
8 
9 namespace WireCell {
10  namespace SigProc {
11  class HfFilter : public IFilterWaveform, public IConfigurable {
12  public :
13  HfFilter(double max_freq = 1 * units::megahertz, double sigma = 3.0* units::megahertz, double power = 2, bool flag = true);
14  virtual ~HfFilter();
15 
16  virtual const Waveform::realseq_t filter_waveform(int nfbins) const ;
17 
18  // IConfigurable
19  virtual void configure(const WireCell::Configuration& config);
21 
22 
23  private:
24  double m_max_freq;
25  double m_sigma;
26  double m_power;
27  bool m_flag;
28 
29 
30 
31  };
32  }
33 }
34 
35 #endif
Sequence< real_t > realseq_t
Definition: Waveform.h:31
virtual WireCell::Configuration default_configuration() const
Optional, override to return a hard-coded default configuration.
Definition: HfFilter.cxx:23
virtual void configure(const WireCell::Configuration &config)
Accept a configuration.
Definition: HfFilter.cxx:33
static Config * config
Definition: config.cpp:1054
Definition: Main.h:22
Json::Value Configuration
Definition: Configuration.h:50
HfFilter(double max_freq=1 *units::megahertz, double sigma=3.0 *units::megahertz, double power=2, bool flag=true)
Definition: HfFilter.cxx:11
static const double megahertz
Definition: Units.h:99
virtual const Waveform::realseq_t filter_waveform(int nfbins) const
Provide the filter waveform with a given number of frequency bins.
Definition: HfFilter.cxx:43