1 #ifndef _MdPatternFinderAG_MdPatternFinder_h_
2 #define _MdPatternFinderAG_MdPatternFinder_h_
4 #include <utl/config.h>
6 #include <fwk/VModule.h>
7 #include <mevt/MEvent.h>
8 #include <mevt/Module.h>
9 #include <mdet/Module.h>
10 #include <evt/ShowerRecData.h>
12 #include <utl/Trace-fwd.h>
13 #include <utl/MessageLoggerConfig.h>
14 #include <utl/UnitsConfig.h>
20 #include <boost/utility.hpp>
23 namespace MdPatternFinderAG {
26 class VPatternFinderFunctor;
52 VModule::ResultFlag
Init();
54 VModule::ResultFlag
Finish();
70 std::unique_ptr<VPatternFinderFunctor>
fFinder;
Helper class for configuration of units: value and name.
REGISTER_MODULE("MdPatternFinder", MdPatternFinder)
utl::UnitsConfig fUnits
Units configuration.
Strategy
Kind of possible counting criteria to be used.
unsigned int fNOnes
Number of 1s required.
static const char *const kStrategyTags[]
Tags for the types of strategy.
VModule::ResultFlag Run(evt::Event &e)
Run: invoked once per event.
Wraps a message to logger (received as parameter or created here), its access and configuration...
VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
unsigned int FillChannelRecData(mevt::Channel &ch, const mdet::Module &m)
Fill the data reconstructed for a channel.
std::unique_ptr< VPatternFinderFunctor > fFinder
Object performing the pattern identification on individuals channels.
std::string PrintPatternMatchBins(const mevt::Channel &c) const
Channel level event data.
VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
utl::MessageLoggerConfig fLog
Output messages handler.
unsigned int fWindowSize
The number of bins in the inhibition (veto) window.
Mudole to identify patterns in the binary channel traces according to a given strategy.
Strategy fStrategy
Counting stategy to be performed.