Functor implementing a constant sampling window strategy. More...
#include <MdMuonCounterAG/GapStrategy.h>
Public Member Functions | |
GapStrategy (unsigned int windowSize, unsigned int nOnes, unsigned int nGaps, const std::string opt="strict") | |
Creates a functor. More... | |
unsigned int | operator() (const utl::TraceB &samples, mevt::ChannelRecData &recData) const |
Performs the counting. More... | |
Private Attributes | |
unsigned int | fNumGaps |
unsigned int | fNumOnes |
std::string | fOpt |
unsigned int | fWindowSize |
Functor implementing a constant sampling window strategy.
Definition at line 18 of file GapStrategy.h.
MdMuonCounterAG::GapStrategy::GapStrategy | ( | unsigned int | windowSize, |
unsigned int | nOnes, | ||
unsigned int | nGaps, | ||
const std::string | opt = "strict" |
||
) |
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. |
requireGap | To require a gap in the trace. |
Definition at line 11 of file GapStrategy.cc.
|
virtual |
Performs the counting.
Implements MdMuonCounterAG::VMuonCounterFunctor.
Definition at line 20 of file GapStrategy.cc.
References mevt::ChannelRecData::AddPatternMatchBin(), fNumGaps, fNumOnes, fOpt, fWindowSize, and utl::Trace< T >::GetSize().
|
private |
Definition at line 37 of file GapStrategy.h.
Referenced by operator()().
|
private |
Definition at line 36 of file GapStrategy.h.
Referenced by operator()().
|
private |
Definition at line 38 of file GapStrategy.h.
Referenced by operator()().
|
private |
Definition at line 35 of file GapStrategy.h.
Referenced by operator()().