In file Window.hh:

class Window

Defines an event window

Inheritance:


Public Methods

[more]explicit Window (const TimeWindow& window = TimeWindow (1.0), int order = 1)
Constructor
[more] Window (const Interval& width, const Interval& offset, int order = 1)
Constructor
[more]explicit Window (pointer event)
Constructor
[more] Window (pointer e1, pointer e2)
Constructor
[more]bool operator== (const Window& win) const
Equality operator
[more]bool operator!= (const Window& win) const
Inequality operator
[more]Time GetTimeFirst () const
Time of first event
[more]Time GetTimeLast () const
Time of last event
[more]Time GetTime () const
Time of current events
[more]Time GetStartTime () const
Window start time
[more]Time GetStopTime () const
Window stop time
[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
[more]void SetOrder (int n)
Set window order
[more]int GetOrder () const
Window order
[more]reference operator() (int n)
Current event access
[more]const_reference operator() (int n) const
Current event access
[more]reference Current (int n = 0)
Current event access
[more]const_reference Current (int n = 0) const
Current event access
[more]void SetCurrent (int n, pointer current)
Set current event
[more]current& GetCurrentList ()
Get current event list
[more]const current& GetCurrentList () const
Get current event list
[more]reference Front ()
First
[more]const_reference Front () const
First
[more]reference Back ()
Last
[more]const_reference Back () const
Last
[more]iterator Begin ()
Begin
[more]const_iterator Begin () const
Begin
[more]iterator End ()
End
[more]const_iterator End () const
End
[more]reference operator[] (int n)
List access
[more]const_reference operator[] (int n) const
List access
[more]reference At (int n)
List access
[more]const_reference At (int n) const
List access
[more]int Size () const
List size
[more]bool Empty () const
List empty?
[more]void PushBack (pointer event)
Add an element
[more]void PushFront (pointer event)
Add an element
[more]void PopBack ()
Remove an element
[more]void PopFront ()
Remove an element
[more]void Clear ()
Clear list

Public Members

[more]typedef Event value_type
Value type
[more]typedef Event* pointer
Pointer type
[more]typedef const Event* const_pointer
Const pointer type
[more]typedef Event& reference
Reference type
[more]typedef const Event& const_reference
Const reference type
[more]typedef Iterator iterator
Iterator type
[more]typedef ConstIterator const_iterator
Const iterator type
[more]typedef std::deque<pointer> list
List of event pointers
[more]typedef std::vector<pointer> current
List of current event pointers


Documentation

An event window is a utility class which manages a set of events which fall within a time window. The idea is that an analysis program will defined a maximum duration within to look for events. During the analysis this time window is moved through the series of events until all events are porcessed. An event window can be any coincidence order. An order of one means that the window refernces one current event and the list of events with in the time window. An order of two means that two events are currently selected for a concidence analysis. A triple coincidence would have an order of three, and so on.

An event window provides iterators to go through the list of events in the window.

otypedef Event value_type
Value type

otypedef Event* pointer
Pointer type

otypedef const Event* const_pointer
Const pointer type

otypedef Event& reference
Reference type

otypedef const Event& const_reference
Const reference type

otypedef Iterator iterator
Iterator type

otypedef ConstIterator const_iterator
Const iterator type

otypedef std::deque<pointer> list
List of event pointers

otypedef std::vector<pointer> current
List of current event pointers

oexplicit Window(const TimeWindow& window = TimeWindow (1.0), int order = 1)
Creates an event window. For a symmetric window set the offset to the negative of half the window width.
Parameters:
window - Time window
order - Coincidence order

o Window(const Interval& width, const Interval& offset, int order = 1)
Creates an event window. For a symmetric window set the offset to the negative of half the window width.
Parameters:
width - Width of window
offset - Window offset
order - Coincidence order

oexplicit Window(pointer event)
Creates a window from a single event.

o Window(pointer e1, pointer e2)
Creates a window from two events.

obool operator== (const Window& win) const
Equality operator. Two windows are the same if they have the same order and the same current events.

obool operator!= (const Window& win) const
Inequality operator

oTime GetTimeFirst() const
Time of first event in the list

oTime GetTimeLast() const
Time of last event in the list

oTime GetTime() const
Time. Averaged time of current event(s).

oTime GetStartTime() const
Start time of window

oTime GetStopTime() const
Stop time of window

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.

ovoid SetOrder(int n)
Set window order. How many current or coincidence events can be selected?

oint GetOrder() const
Get window order. How many current or coincidence events are selected?

oreference operator() (int n)
Access the current event(s).

oconst_reference operator() (int n) const
Access the current event(s).

oreference Current(int n = 0)
Access the current event(s).

oconst_reference Current(int n = 0) const
Access the current event(s).

ovoid SetCurrent(int n, pointer current)
Set the current event(s).

ocurrent& GetCurrentList()
Get the list of current event(s).

oconst current& GetCurrentList() const
Get the list of current event(s).

oreference Front()
First event in window.

oconst_reference Front() const
First event in window.

oreference Back()
Last event in window.

oconst_reference Back() const
Last event in window.

oiterator Begin()
Beginning of list.

oconst_iterator Begin() const
Beginning of list.

oiterator End()
End of list.

oconst_iterator End() const
End of list.

oreference operator[] (int n)
List access.

oconst_reference operator[] (int n) const
List access.

oreference At(int n)
List access.

oconst_reference At(int n) const
List access.

oint Size() const
List size.

obool Empty() const
List empty?.

ovoid PushBack(pointer event)
Add an element at the end.

ovoid PushFront(pointer event)
Add an element at the beginning.

ovoid PopBack()
Remove an element from the end.

ovoid PopFront()
Remove an element from the beginning.

ovoid Clear()
Clear list.


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