List of all members | Public Member Functions | Private Attributes
MdMuonCounterAG::AmountInWindowStrategy Class Reference

Functor implementing a constant sampling window strategy. More...

#include <MdMuonCounterAG/AmountInWindowStrategy.h>

Inheritance diagram for MdMuonCounterAG::AmountInWindowStrategy:
Inheritance graph
[legend]

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
 

Detailed Description

Functor implementing a constant sampling window strategy.

Author
Rodolfo Federico Gamarra
Brian Wundheiler
Date
13 Sep 2009

Definition at line 18 of file AmountInWindowStrategy.h.

Constructor & Destructor Documentation

MdMuonCounterAG::AmountInWindowStrategy::AmountInWindowStrategy ( unsigned int  windowSize,
unsigned int  nOnes 
)

Creates a functor.

Parameters
windowSizeThe number of bins in the inhibition window.
nOnesThe number of consecutive ones that's counted as a positive match.

Definition at line 11 of file AmountInWindowStrategy.cc.

Member Function Documentation

unsigned int MdMuonCounterAG::AmountInWindowStrategy::operator() ( const utl::TraceB samples,
mevt::ChannelRecData recData 
) const
virtual

Member Data Documentation

unsigned int MdMuonCounterAG::AmountInWindowStrategy::fNumOnes
private

Definition at line 35 of file AmountInWindowStrategy.h.

Referenced by operator()().

unsigned int MdMuonCounterAG::AmountInWindowStrategy::fWindowSize
private

Definition at line 34 of file AmountInWindowStrategy.h.

Referenced by operator()().


The documentation for this class was generated from the following files:

, generated on Tue Sep 26 2023.