In file Veto.hh:

class Veto

Defines an veto condition

Inheritance:


Public Methods

[more] Veto ()
Default constructor
[more] Veto (const Interval& duration, const Interval& offset)
Constructor
[more]explicit Veto (const TimeWindow& window)
Constructor
[more] Veto (const Condition& cond, const Interval& duration, const Interval& offset)
Constructor
[more] Veto (const Condition& cond, const TimeWindow& window)
Constructor
[more]virtual Veto* Copy () const
Copy the event
[more]virtual bool Evaluate (const Argument& arg, bool& val) const
Evaluate
[more]const ConditionPtr& GetCondition () const
Get event condition
[more]void SetWindow (const TimeWindow& window)
Set time window
[more]void SetWindow (const Interval& width, const Interval& offset)
Set time window
[more]void SetOffset (const Interval& offset)
Set time offset
[more]Interval GetOffset () const
Get time offset
[more]void SetWidth (const Interval& duration)
Set time duration
[more]Interval GetWidth () const
Get time duration


Inherited from Condition:

Public Methods

obool operator() (const Argument& arg, bool& val) const
obool operator() (const Event& event, bool& val) const
ostatic const Condition& True()
ostatic const Condition& False()

Protected Methods

oCondition& operator= (const Condition&)


Documentation

Describes an event veto. An event veto consists of a condition and a time window around the event time. The veto conditions yields true if an event which fullfills the condition falls within the veto window around the analysed event. This means a condition which wants to rejects events which are close to a veto event has to be specified something like
    Filter ("burst::*") && !Veto (Filter ("glitch::psl"), 0.1, -0.05)
    

The time window is defined relative to the time of the first current event. Current events are ignored in the veto condition and none of them is checked against the veto condition. The veto condition is called with same event list as the veto class, but with a single current event which is set to the event test for.

A veto condition can also be used to specify a coincidence condition! The following example demonstrates this:

    Filter ("burst::*") && Veto (Filter ("burst::*"), 0.1)
    
looks for two burst events which fall within 100ms. To avoid the confusion this example may create, the alias Coincide is defined which makes the example more readable, but otherwise behaves like the veto condition:
    Filter ("burst::*") && Coincide (Filter ("burst::*"), 0.1)
    
yields the same result as the previous example.

Basically, the terms veto and conicide do not describe different outcomes of a condition, but rather how the occurance of a close-by second event is treated in the analysis.

o Veto()
Creates an default event veto (+/-05sec)

o Veto(const Interval& duration, const Interval& offset)
Creates an event veto. Any event is considered.
Parameters:
cond - Condition
duration - Duration of veto window
offset - Time offset for veto start (relative to event)

oexplicit Veto(const TimeWindow& window)
Creates an event veto. Any event is considered. The veto window is symmetric around the analyzed event.
Parameters:
cond - Condition
duration - Duration of veto window

o Veto(const Condition& cond, const Interval& duration, const Interval& offset)
Creates an event veto. Takes a condition as an argument. Typically an event filter is used.
Parameters:
cond - Condition
offset - Time offset for veto start (relative to event)
duration - Duration of veto window

o Veto(const Condition& cond, const TimeWindow& window)
Creates an event veto. Takes a condition as an argument. The veto window is symmetric around the analyzed event.
Parameters:
cond - Condition
duration - Duration of veto window

ovirtual Veto* Copy() const
Returns a copy of the event condition. This method must be overriden by all descendents.
Returns:
event copy

ovirtual bool Evaluate(const Argument& arg, bool& val) const
Evaluate the veto. This function must be overriden by descendents.
Parameters:
- arg Event argument list
val - Condition value (return)
Returns:
True if condition could be evaluated

oconst ConditionPtr& GetCondition() const
Get the event condition.

ovoid SetWindow(const TimeWindow& window)
Set the time window.

ovoid SetWindow(const Interval& width, const Interval& offset)
Set the time window.
Parameters:
width - Window duration
offset - Window offset

ovoid SetOffset(const Interval& offset)
Set the time offset.

oInterval GetOffset() const
Get the time offset.

ovoid SetWidth(const Interval& duration)
Set the time duration.

oInterval GetWidth() const
Get the time duration.


This class has no child classes.
Author:
Written June 2001 by Masahiro Ito and Daniel Sigg
Version:
1.0

Alphabetic index HTML hierarchy of classes or Java


Please send questions and comments to zweizig_j@ligo-wa.caltech.edu