In file WindowIterator.hh:

class BasicWindowIterator

Basic window iterator

Inheritance:


Public Methods

[more] BasicWindowIterator ()
Default constructor
[more] BasicWindowIterator (const ConstIterator& beg, const ConstIterator& end, int order = 1, const TimeWindow& window = 1.0)
Constructor
[more] BasicWindowIterator (const ConstIterator& beg1, const ConstIterator& end1, const ConstIterator& beg2, const ConstIterator& end2, const TimeWindow& window = 1.0)
Constructor
[more] BasicWindowIterator (const ConstIterator& beg1, const ConstIterator& end1, const ConstIterator& beg2, const ConstIterator& end2, const ConstIterator& beg3, const ConstIterator& end3, const TimeWindow& window = 1.0)
Constructor
[more] BasicWindowIterator (const InputStateList& state, const TimeWindow& window = 1.0)
Constructor
[more]int GetOrder () const
Get event window order

Public Members

[more]struct InputState
State of iterator in input
[more]typedef std::vector<InputState> InputStateList
List of iterator states

Protected Methods

[more]void InitWindow ()
Init window
[more]void Increment ()
Increment operator
[more]int GetPermutations () const
Get number of permutations
[more]void SetPermutation ()
Set permutation to window
[more]Window& GetWindow ()
Get event window
[more]const Window& GetWindow () const
Get event window


Documentation

Basic window iterator class. Helper class for WindowIterator and ConstWindowIterator.

ostruct InputState
State of iterator in input

oConstIterator mBegin
Begin

oConstIterator mEnd
End

oConstIterator mFirst
First event (for window list)

oConstIterator mNext
Next event (for window list)

oConstIterator mCur
Current event

o InputState()
Constructor

o InputState(const ConstIterator& beg, const ConstIterator& end)
Constructor

otypedef std::vector<InputState> InputStateList
List of iterator states

o BasicWindowIterator()
Creates an NULL window iterator. Equivalent to an end iterator

o BasicWindowIterator(const ConstIterator& beg, const ConstIterator& end, int order = 1, const TimeWindow& window = 1.0)
Creates an window iterator from a an iterator range. Works from a single input stream.
Parameters:
beg - Beginning of event range
- end End of event range
order - Coincidence order
window - Anlysis window (in sec)
offset - Offset of analysis window (in sec)

o BasicWindowIterator(const ConstIterator& beg1, const ConstIterator& end1, const ConstIterator& beg2, const ConstIterator& end2, const TimeWindow& window = 1.0)
Creates an window iterator from two iterator ranges. This is a simple coincidence between two input lists, hence the coincidence order is 2.
Parameters:
beg1 - Beginning of first event range
end1 - End of first event range
beg2 - Beginning of second event range
end2 - End of second event range
window - Anlysis window (in sec)
offset - Offset of analysis window (in sec)

o BasicWindowIterator(const ConstIterator& beg1, const ConstIterator& end1, const ConstIterator& beg2, const ConstIterator& end2, const ConstIterator& beg3, const ConstIterator& end3, const TimeWindow& window = 1.0)
Creates an window iterator from three iterator ranges. This is a simple coincidence between three input lists, hence the coincidence order is 3.
Parameters:
beg1 - Beginning of first event range
end1 - End of first event range
beg2 - Beginning of second event range
end2 - End of second event range
beg3 - Beginning of third event range
end3 - End of third event range
window - Anlysis window (in sec)
offset - Offset of analysis window (in sec)

o BasicWindowIterator(const InputStateList& state, const TimeWindow& window = 1.0)
Creates an window iterator from multiple iterator ranges. This is a simple coincidence between multiple input lists. The coincidence order is the equal the length of the input list.
Parameters:
- state List of input event ranges
window - Anlysis window (in sec)
offset - Offset of analysis window (in sec)

oint GetOrder() const
Get the event window order.

ovoid InitWindow()
Initializes the window

ovoid Increment()
Increments the iterator

oint GetPermutations() const
Gets the number of coincidence permutations for the present event list.

ovoid SetPermutation()
Set the current events in window according to the permutations index.

oWindow& GetWindow()
Get the event window.

oconst Window& GetWindow() const
Get the event window.


Direct child classes:
WindowIterator
ConstWindowIterator
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