14 #ifndef OPT0FINDER_MAXNPEWINDOW_H
15 #define OPT0FINDER_MAXNPEWINDOW_H
18 #define USING_LARSOFT 1
21 #if USING_LARSOFT == 0
29 namespace flashmatch {
BaseFlashFilter * create(const std::string instance_name)
creation method
fhicl::ParameterSet Config_t
Configuration object.
double _time_upper_bound
T2 [us]: the upper edge of the opened time window.
~MaxNPEWindow()
Default destructor.
Abstract base class for factory (to be implemented per flash)
double _npe_threshold
threshold [p.e.]: to ignore any flash below this value
void add_factory(const std::string name, flashmatch::FlashFilterFactoryBase *factory)
Factory registration method (should be called by global factory instance in algorithm header) ...
IDArray_t Filter(const FlashArray_t &)
Implementation of a virtual function.
Class def header for a class BaseFlashFilter.
double _time_lower_bound
T1 [us]: the lower edge of the opened time window.
MaxNPEWindow(const std::string name="MaxNPEWindow")
Default constructor.
static FlashFilterFactory & get()
Static sharable instance getter.
MaxNPEWindowFactory()
ctor
std::vector< flashmatch::ID_t > IDArray_t
Index collection.
void _Configure_(const Config_t &pset)
~MaxNPEWindowFactory()
dtor
std::vector< flashmatch::Flash_t > FlashArray_t
Collection of Flash objects.
Class def header for a class FlashFilterFactory.
const std::string & name() const
Name getter, defined in a logger instance attribute.