LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "EventIDMatcher.h"
Classes | |
class | 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 206 of file EventIDMatcher.cc.
References art::EventID::event(), art::SubRunID::isFlush(), art::RunID::isFlush(), art::EventID::isFlush(), art::SubRunID::isValid(), art::RunID::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 42 of file EventIDMatcher.h.
Referenced by EventIDMatcher(), match(), and parse_pattern().
|
private |
Definition at line 41 of file EventIDMatcher.h.
Referenced by EventIDMatcher(), and parse_pattern().