Functor implementing a constant sampling window strategy. More...
#include <MdMuonCounterAG/AmountInWindowStrategy.h>

Public Member Functions | |
| AmountInWindowStrategy (unsigned int windowSize, unsigned int nOnes) | |
| Creates a functor. More... | |
| unsigned int | operator() (const utl::TraceB &samples, mevt::ChannelRecData &recData) const |
| Performs the counting. More... | |
Private Attributes | |
| unsigned int | fNumOnes |
| unsigned int | fWindowSize |
Functor implementing a constant sampling window strategy.
Definition at line 18 of file AmountInWindowStrategy.h.
| MdMuonCounterAG::AmountInWindowStrategy::AmountInWindowStrategy | ( | unsigned int | windowSize, |
| unsigned int | nOnes | ||
| ) |
Creates a functor.
| windowSize | The number of bins in the inhibition window. |
| nOnes | The number of consecutive ones that's counted as a positive match. |
Definition at line 11 of file AmountInWindowStrategy.cc.
|
virtual |
Performs the counting.
Implements MdMuonCounterAG::VMuonCounterFunctor.
Definition at line 18 of file AmountInWindowStrategy.cc.
References mevt::ChannelRecData::AddPatternMatchBin(), fNumOnes, fWindowSize, and utl::Trace< T >::GetSize().
|
private |
Definition at line 35 of file AmountInWindowStrategy.h.
Referenced by operator()().
|
private |
Definition at line 34 of file AmountInWindowStrategy.h.
Referenced by operator()().