Defines an event filter
enum | matchtype matching criterium
|
explicit | Filter () Constructs an empty event filter |
explicit | Filter (const char* pattern) Constructors an event filter |
explicit | Filter (const char* pattern, int index) Constructors an event filter |
explicit | Filter (const std::string& pattern, int index) Constructors an event filter |
virtual Filter* | Copy () const Copy the event |
bool | IsValid () const Is valid? |
bool | operator== (const Filter& filter) const Equality operator |
bool | operator!= (const Filter& filter) const Inequality operator |
virtual bool | Evaluate (const Argument& arg, bool& val) const Evaluate |
void | SetIndex (int index = -1) Set event index |
int | GetIndex () const Get event index |
const char* | GetPattern () const Get event pattern |
bool | SetPattern (const char* pattern) Set event pattern |
bool | SetPattern (const std::string& pattern) Set event pattern |
bool | Match (const Event* event) const Match event against pattern |
An event filter uses the type information to select events. It supports wildcards and an event index.Example:
Filter ("burst::*")selects all burst events. If a filter is specified without an index it gets applied to all event indices. Wildcards in form of "*" (asterix) and "?" (question mark) can be used.An event index can be explicitly specified as part of the string or as a separate argument. Examples:
Filter ("burst::*[0]") && Filter ("trigger::*", 1)selects burst events from the first event stream and DMT triggers from the second one.As with the column class a filter set can also be specified for events stored as event columns. The same notation applies. For example:
Filter ("Event(1).burst::*") Filter ("burst::*(1)")selects events which contain a burst event at column "Event(1)".
val - Condition value (return)
alphabetic index hierarchy of classes
Please send questions and comments to sigg_d@ligo-wa.caltech.edu
generated by doc++