class Filter |
Defines an event filter
| Filter () Constructs an empty event filter | |
| Filter (const char* pattern) Constructors an event filter | |
| Filter (const char* pattern, int index) Constructors an event filter | |
| Filter (const std::string& pattern, int index) Constructors an event filter | |
| Copy () const Copy the event | |
| IsValid () const Is valid? | |
| operator== (const Filter& filter) const Equality operator | |
| operator!= (const Filter& filter) const Inequality operator | |
| Evaluate (const Argument& arg, bool& val) const Evaluate | |
| SetIndex (int index = -1) Set event index | |
| GetIndex () const Get event index | |
| GetPattern () const Get event pattern | |
| SetPattern (const char* pattern) Set event pattern | |
| SetPattern (const std::string& pattern) Set event pattern |
| matchtype matching criterium |
| Match (const Event* event) const Match event against pattern |
An event filter uses the type and the name information to select events. It supports wildcards and an event index.Example:
Filter ("sngl_Burst::*") Filter ("*::glitchMon") Filter ("GDS_Trigger::glitchMon")The first example selects all burst events. The second example selects all events with name "glitchMon", whereas the third example selects events of type "GDS_Trigger" and name "glitchMon".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--even so they may translate into inefficient string comparisons. Using just a "*" for one of the arguments is still efficient and no comparison is done at all.
An event index can be explicitly specified as part of the string or as a separate argument. Examples:
Filter ("sngl_Burst::*[0]") && Filter ("GDS_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).sngl_Burst::*") Filter ("sngl_Burst::*(1)")selects events which contain a burst event at column "Event(1)".
Alphabetic index HTML hierarchy of classes or Java
Please send questions and comments to zweizig_j@ligo-wa.caltech.edu