Functor implementing a counting strategy based only on the number of positive samples. More...
#include <MdMuonCounterAG/AmountGlobalStrategy.h>
Public Member Functions | |
AmountGlobalStrategy (double nOnesPerPatternMatch, unsigned int nMinOnes) | |
Creates a functor. More... | |
unsigned int | operator() (const utl::TraceB &, mevt::ChannelRecData &) const |
Perform the actual count. More... | |
double | operator() (const utl::TraceB &samples) const |
Performs the counting. More... | |
Private Attributes | |
unsigned int | fNMinOnes |
double | fNOnesPerPatternMatch |
Functor implementing a counting strategy based only on the number of positive samples.
Definition at line 17 of file AmountGlobalStrategy.h.
MdMuonCounterAG::AmountGlobalStrategy::AmountGlobalStrategy | ( | double | nOnesPerPatternMatch, |
unsigned int | nMinOnes | ||
) |
Creates a functor.
nOnesPerPatternMatch | The number of ones that correspond to one muon. |
nMinOnes | The minimum number of ones required to be included in the counting. |
Definition at line 7 of file AmountGlobalStrategy.cc.
|
inlinevirtualinherited |
Perform the actual count.
samples | The trace to examine in order to detect the muons. |
recData | The data where to put the detected muon information. |
Implements MdMuonCounterAG::VMuonCounterFunctor.
Definition at line 21 of file VHalfMuonCounterFunctor.h.
|
virtual |
Performs the counting.
Implements MdMuonCounterAG::VHalfMuonCounterFunctor.
Definition at line 14 of file AmountGlobalStrategy.cc.
References fNMinOnes, fNOnesPerPatternMatch, and utl::Trace< T >::GetSize().
|
private |
Definition at line 34 of file AmountGlobalStrategy.h.
Referenced by operator()().
|
private |
Definition at line 33 of file AmountGlobalStrategy.h.
Referenced by operator()().