3 #include <mevt/ChannelRecData.h>
9 namespace MdMuonCounterAG {
12 fWindowSize(windowSize) ,
21 unsigned int nPatternMatchs = 0;
28 typedef std::deque<std::pair<double, unsigned int> > Window;
32 unsigned int nZeros = 0;
37 if (samples[ sNumber ]) {
39 win.push_back( std::make_pair(sNumber,0) );
40 }
else if (! win.empty()){
65 nZeros -= win.front().second;
88 return nPatternMatchs;
AmountInWindowStrategy(unsigned int windowSize, unsigned int nOnes)
Creates a functor.
unsigned int operator()(const utl::TraceB &samples, mevt::ChannelRecData &recData) const
Performs the counting.
std::vector< T >::size_type SizeType
void AddPatternMatchBin(unsigned int bin)
Adds the time of a pattern match detection.
Template class for a FADC data or calibrated data container. Use the typedefs (TraceD, TraceI, etc.) defined in Trace-fwd.h.
Channel level reconstruction data.