#include <MaxNPEWindow.h>
Public Member Functions | |
| MaxNPEWindow (const std::string name="MaxNPEWindow") | |
| Default constructor. More... | |
| ~MaxNPEWindow () | |
| Default destructor. More... | |
| IDArray_t | Filter (const FlashArray_t &) |
| Implementation of a virtual function. More... | |
Public Member Functions inherited from flashmatch::BaseFlashFilter | |
| BaseFlashFilter (const std::string name="noname") | |
| Default constructor. More... | |
| virtual | ~BaseFlashFilter () |
| Default destructor. More... | |
Public Member Functions inherited from flashmatch::BaseAlgorithm | |
| BaseAlgorithm (const Algorithm_t type, const std::string name) | |
| Default constructor. More... | |
| ~BaseAlgorithm () | |
| Default destructor. More... | |
| void | Configure (const Config_t &pset) |
| Function to accept configuration. More... | |
| Algorithm_t | AlgorithmType () const |
| Algorithm type. More... | |
| const std::string & | AlgorithmName () const |
| Algorithm name. More... | |
Public Member Functions inherited from flashmatch::LoggerFeature | |
| LoggerFeature (const std::string logger_name="LoggerFeature") | |
| Default constructor. More... | |
| LoggerFeature (const LoggerFeature &original) | |
| Default copy constructor. More... | |
| virtual | ~LoggerFeature () |
| Default destructor. More... | |
| const flashmatch::logger & | logger () const |
| Logger getter. More... | |
| void | set_verbosity (::flashmatch::msg::Level_t level) |
| Verbosity level. More... | |
| const std::string & | name () const |
| Name getter, defined in a logger instance attribute. More... | |
Protected Member Functions | |
| void | _Configure_ (const Config_t &pset) |
Private Attributes | |
| double | _time_lower_bound |
| T1 [us]: the lower edge of the opened time window. More... | |
| double | _time_upper_bound |
| T2 [us]: the upper edge of the opened time window. More... | |
| double | _npe_threshold |
| threshold [p.e.]: to ignore any flash below this value More... | |
Type flashmatch::BaseFlashFilter algorithm class. It applies a very simple
filter based on time window to eliminate multiple flashes coming from the
same interaction. The algorithm works in the following steps:
0) Order a list of provided flash using the amount photoelectrons
(the bigger, the higher priority).
1) Loop over the list of flashes in high=>low priority order.
1.1) For each flash, attempt to open a time window T1 => T2 w.r.t.
flash time where T1 & T2 are configured via user
1.2) If a flash falls within any of previously-opened time window,
ignore this flash.
1.3) Terminate the loop when the number of photoelectrons drops below
the threshold set by a user.
Definition at line 50 of file MaxNPEWindow.h.
| flashmatch::MaxNPEWindow::MaxNPEWindow | ( | const std::string | name = "MaxNPEWindow" | ) |
Default constructor.
Definition at line 13 of file MaxNPEWindow.cxx.
|
inline |
|
protectedvirtual |
Implements flashmatch::BaseAlgorithm.
Definition at line 20 of file MaxNPEWindow.cxx.
|
virtual |
Implementation of a virtual function.
Implements flashmatch::BaseFlashFilter.
Definition at line 27 of file MaxNPEWindow.cxx.
|
private |
threshold [p.e.]: to ignore any flash below this value
Definition at line 71 of file MaxNPEWindow.h.
|
private |
T1 [us]: the lower edge of the opened time window.
Definition at line 69 of file MaxNPEWindow.h.
|
private |
T2 [us]: the upper edge of the opened time window.
Definition at line 70 of file MaxNPEWindow.h.
1.8.5