12 : m_max_freq(max_freq)
19 SigProc::HfFilter::~HfFilter()
26 cfg[
"sigma"] = m_sigma;
27 cfg[
"power"] = m_power;
29 cfg[
"max_freq"] = m_max_freq;
35 m_sigma =
get(
cfg,
"sigma",m_sigma);
36 m_power =
get(
cfg,
"power",m_power);
37 m_flag =
get(
cfg,
"flag",m_flag);
39 m_max_freq =
get(
cfg,
"max_freq",m_max_freq);
49 for (
size_t i=0; i!=m_wfs.size();i++){
50 double freq = i * 1.0 /
int(m_wfs.size()) * 2 * m_max_freq;
51 if (freq > m_max_freq)
52 freq = freq - 2*m_max_freq;
WIRECELL_FACTORY(HfFilter, WireCell::SigProc::HfFilter, WireCell::IFilterWaveform, WireCell::IConfigurable) using namespace WireCell
double hf_filter(double freq, double sigma=1, double power=2, bool zero_freq_removal=true)
Json::Value Configuration