LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "EventIDMatcher.h"
Classes | |
struct | PatternRangeElement |
Public Member Functions | |
EventIDMatcher (std::string const &pattern) | |
EventIDMatcher (std::vector< std::string > const &patterns) | |
bool | operator() (EventID const &) const |
bool | match (EventID const &) const |
Private Member Functions | |
void | parse_pattern () |
Private Attributes | |
std::vector< std::string > | pattern_ |
std::vector< std::vector< std::vector< PatternRangeElement > > > | parsed_patterns_ |
Definition at line 12 of file EventIDMatcher.h.
|
explicit |
Definition at line 19 of file EventIDMatcher.cc.
References art::errors::LogicError, parse_pattern(), parsed_patterns_, and pattern_.
|
explicit |
Definition at line 31 of file EventIDMatcher.cc.
References art::errors::LogicError, parse_pattern(), parsed_patterns_, and pattern_.
bool art::EventIDMatcher::match | ( | EventID const & | eid | ) | const |
Definition at line 187 of file EventIDMatcher.cc.
References art::EventID::event(), art::RunID::isFlush(), art::SubRunID::isFlush(), art::EventID::isFlush(), art::RunID::isValid(), art::SubRunID::isValid(), art::EventID::isValid(), parsed_patterns_, art::EventID::run(), art::EventID::runID(), art::EventID::subRun(), and art::EventID::subRunID().
Referenced by operator()().
bool art::EventIDMatcher::operator() | ( | EventID const & | eid | ) | const |
|
private |
Definition at line 51 of file EventIDMatcher.cc.
References E, art::errors::LogicError, parsed_patterns_, pattern_, and printf().
Referenced by EventIDMatcher().
|
private |
Definition at line 30 of file EventIDMatcher.h.
Referenced by EventIDMatcher(), match(), and parse_pattern().
|
private |
Definition at line 29 of file EventIDMatcher.h.
Referenced by EventIDMatcher(), and parse_pattern().