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

Functor implementing a counting strategy based only on the number of positive samples. More...

#include <MdMuonCounterAG/AmountGlobalStrategy.h>

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

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
 

Detailed Description

Functor implementing a counting strategy based only on the number of positive samples.

Author
Martin Maur
Date
24 Aug 2012

Definition at line 17 of file AmountGlobalStrategy.h.

Constructor & Destructor Documentation

MdMuonCounterAG::AmountGlobalStrategy::AmountGlobalStrategy ( double  nOnesPerPatternMatch,
unsigned int  nMinOnes 
)

Creates a functor.

Parameters
nOnesPerPatternMatchThe number of ones that correspond to one muon.
nMinOnesThe minimum number of ones required to be included in the counting.

Definition at line 7 of file AmountGlobalStrategy.cc.

Member Function Documentation

unsigned int MdMuonCounterAG::VHalfMuonCounterFunctor::operator() ( const utl::TraceB samples,
mevt::ChannelRecData recData 
) const
inlinevirtualinherited

Perform the actual count.

Parameters
samplesThe trace to examine in order to detect the muons.
recDataThe data where to put the detected muon information.
Returns
The number of detected muons.

Implements MdMuonCounterAG::VMuonCounterFunctor.

Definition at line 21 of file VHalfMuonCounterFunctor.h.

double MdMuonCounterAG::AmountGlobalStrategy::operator() ( const utl::TraceB samples) const
virtual

Member Data Documentation

unsigned int MdMuonCounterAG::AmountGlobalStrategy::fNMinOnes
private

Definition at line 34 of file AmountGlobalStrategy.h.

Referenced by operator()().

double MdMuonCounterAG::AmountGlobalStrategy::fNOnesPerPatternMatch
private

Definition at line 33 of file AmountGlobalStrategy.h.

Referenced by operator()().


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

, generated on Tue Sep 26 2023.