6 #ifndef WIRECELLSIGPROC_L1SPFILTER 7 #define WIRECELLSIGPROC_L1SPFILTER 24 double postgain = 1.2,
39 int L1_fit(std::shared_ptr<WireCell::SimpleTrace>& newtrace, std::shared_ptr<const WireCell::ITrace>& adctrace,
int start_tick,
int end_tick,
bool flag_shorted =
false);
virtual void configure(const WireCell::Configuration &config)
IConfigurable interface.
linterp< double > * lin_W
linterp< double > * lin_V
static const double microsecond
virtual bool operator()(const input_pointer &in, output_pointer &out)
IFrameFilter interface.
std::shared_ptr< const IFrame > input_pointer
double m_fine_time_offset
virtual WireCell::Configuration default_configuration() const
Optional, override to return a hard-coded default configuration.
std::shared_ptr< const IFrame > output_pointer
int L1_fit(std::shared_ptr< WireCell::SimpleTrace > &newtrace, std::shared_ptr< const WireCell::ITrace > &adctrace, int start_tick, int end_tick, bool flag_shorted=false)
Json::Value Configuration
double m_coarse_time_offset
L1SPFilter(double gain=14.0 *units::mV/units::fC, double shaping=2.2 *units::microsecond, double postgain=1.2, double ADC_mV=4096/(2000.*units::mV), double fine_time_offset=0.0 *units::microsecond, double coarse_time_offset=-8.0 *units::microsecond)