In file Set.hh:

class Set

Chain of event lists

Inheritance:


Public Methods

[more]explicit Set (int N = 1)
Constructor
[more]explicit Set (const char* filename)
Constructor
[more]Set* Copy () const
Copy the event
[more]bool AddChain (const char* filename)
Add
[more]bool AddChain (const Chain& chain)
Add
[more]Chain& GetChain (int lnum)
Get
[more]const Chain& GetChain (int lnum) const
Get
[more]bool RemoveChain (int lnum)
Remove
[more]int N () const
N
[more]void SetDefaultChain (int def = 0)
Set the default chain
[more]int GetDefaultChain () const
Get the index of the default chain
[more]void Merge ()
Merge
[more]void Join (Set& set)
Merge
[more]bool Configure (const char* filename)
Configure
[more]bool Save (const char* filename, int perfile = 0, int maxevents = -1) const
Save
[more]bool Restore (const char* filename)
Restore
[more]int Size () const
Size
[more]bool Empty () const
Empty
[more]bool operator== (const Set& l) const
Equality
[more]bool operator!= (const Set& l) const
Equality
[more]bool CheckOrder () const
Check order
[more]void Swap (Set& l)
Swap
[more]iterator LowerBound (const Time& t)
Lower bound
[more]const_iterator LowerBound (const Time& t) const
Lower bound
[more]iterator UpperBound (const Time& t)
Upper bound
[more]const_iterator UpperBound (const Time& t) const
Upper bound
[more]iterator LowerBound (const Event& t)
Lower bound
[more]const_iterator LowerBound (const Event& t) const
Lower bound
[more]iterator UpperBound (const Event& t)
Upper bound
[more]const_iterator UpperBound (const Event& t) const
Upper bound
[more]void Sort ()
Sort
[more]reference At (size_type idx)
At
[more]const_reference At (size_type idx) const
At
[more]reference operator[] (size_type idx)
Operator[]
[more]const_reference operator[] (size_type idx) const
Operator[]
[more]reference Front ()
Front
[more]const_reference Front () const
Front
[more]reference Back ()
Back
[more]const_reference Back () const
Back
[more]iterator Begin ()
Begin
[more]const_iterator Begin () const
Begin
[more]iterator End ()
End
[more]const_iterator End () const
End
[more]reverse_iterator RBegin ()
RBegin
[more]const_reverse_iterator RBegin () const
RBegin
[more]reverse_iterator REnd ()
REnd
[more]const_reverse_iterator REnd () const
REnd
[more]void Insert (const Event& event)
Insert
[more]iterator Insert (const iterator& pos, const Event& event)
Insert
[more]void Insert (const iterator& beg, const iterator& end)
Add
[more]void PushBack (const Event& event)
PushBack
[more]iterator Erase (const iterator& pos)
Erase
[more]iterator Erase (const iterator& beg, const iterator& end)
Erase
[more]void PopBack ()
PopBack
[more]void Clear ()
Clear
[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 SetColumn (const Column& column, const Function& expression)
Set column to a new value
[more]void SetColumn (const Column& column, const Function& expression, const Condition& cond, const TimeWindow& window = TimeWindow (1.))
Set column to a new value of selected events
[more]int Select (const Condition& cond)
Select
[more]int Select (const Set& events, const Condition& cond)
Select
[more]int SelectAdd (const Set& events, const Condition& cond)
Select and add
[more]int Sort (const Function& func, bool ascending = true, int n = 0)
Sort
[more]int Sort (const Set& events, const Function& func, bool ascending = true, int n = 0)
Sort
[more]int Coincidence (const Condition& cond = Condition::True())
Coincidence
[more]int Coincidence (const TimeWindow& window, const Condition& cond = Condition::True())
Coincidence
[more]int Coincidence (const Set& events, const Condition& cond = Condition::True())
Coincidence
[more]int Coincidence (const Set& events, const TimeWindow& window, const Condition& cond = Condition::True())
Coincidence
[more]int CoincidenceAdd (const Set& events, const Condition& cond = Condition::True())
Coincidence and add
[more]int CoincidenceAdd (const Set& events, const TimeWindow& window, const Condition& cond = Condition::True())
Coincidence and add
[more]int TripleCoincidence (const Condition& cond = Condition::True())
TripleCoincidence
[more]int TripleCoincidence (const TimeWindow& window, const Condition& cond = Condition::True())
TripleCoincidence
[more]int TripleCoincidence (const Set& events, const Condition& cond = Condition::True())
TripleCoincidence
[more]int TripleCoincidence (const Set& events, const TimeWindow& window, const Condition& cond = Condition::True())
TripleCoincidence
[more]int TripleCoincidenceAdd (const Set& events, const Condition& cond = Condition::True())
TripleCoincidence Add
[more]int TripleCoincidenceAdd (const Set& events, const TimeWindow& window, const Condition& cond = Condition::True())
TripleCoincidence Add
[more]int MultiCoincidence (int n, const Condition& cond = Condition::True())
MultiCoincidence
[more]int MultiCoincidence (int n, const TimeWindow& window, const Condition& cond = Condition::True())
MultiCoincidence
[more]int MultiCoincidence (int n, const Set& events, const Condition& cond = Condition::True())
MultiCoincidence
[more]int MultiCoincidence (int n, const Set& events, const TimeWindow& window, const Condition& cond = Condition::True())
MultiCoincidence
[more]int MultiCoincidenceAdd (int n, const Set& events, const Condition& cond = Condition::True())
MultiCoincidence Add
[more]int MultiCoincidenceAdd (int n, const Set& events, const TimeWindow& window, const Condition& cond = Condition::True())
MultiCoincidence Add
[more]int ChainCoincidence (const Condition& cond = Condition::True())
Coincidence
[more]int ChainCoincidence (const TimeWindow& window, const Condition& cond = Condition::True())
Coincidence
[more]int ChainCoincidence (const Set& events, const Condition& cond = Condition::True())
Coincidence
[more]int ChainCoincidence (const Set& events, const TimeWindow& window, const Condition& cond = Condition::True())
Coincidence
[more]int ChainCoincidenceAdd (const Set& events, const Condition& cond = Condition::True())
Coincidence and add
[more]int ChainCoincidenceAdd (const Set& events, const TimeWindow& window, const Condition& cond = Condition::True())
Coincidence and add
[more]int Clusters (int threshold, const Condition& cond = Condition::True())
Select
[more]int Clusters (int threshold, const TimeWindow& window, const Condition& cond = Condition::True())
Select
[more]int Clusters (const Set& events, int threshold, const Condition& cond = Condition::True())
Select
[more]int Clusters (const Set& events, int threshold, const TimeWindow& window, const Condition& cond = Condition::True())
Select
[more]int ClusterAdd (const Set& events, int threshold, const Condition& cond = Condition::True())
Select and add
[more]int ClusterAdd (const Set& events, int threshold, const TimeWindow& window, const Condition& cond = Condition::True())
Select and add
[more]int Histogram (Histogram1& hist, const Function& func, const Condition& cond = Condition::True()) const
1D histogram generation
[more]int Histogram (Histogram1& hist, const Function& func, const TimeWindow& window, const Condition& cond = Condition::True()) const
1D histogram generation
[more]int Histogram (Histogram2& hist, const Function& f1, const Function& f2, const Condition& cond = Condition::True()) const
1D histogram generation
[more]int Histogram (Histogram2& hist, const Function& f1, const Function& f2, const TimeWindow& window, const Condition& cond = Condition::True()) const
1D histogram generation
[more]int TimeSeries (TSeries& ts, bool integrated = false, const Condition& cond = Condition::True()) const
Time series generation
[more]int TimeSeries (TSeries& ts, const TimeWindow& window, bool integrated = false, const Condition& cond = Condition::True()) const
Time series generation
[more]int TimeSeries (TSeries& ts, const Function& func, const Condition& cond = Condition::True()) const
Time series generation
[more]void Dump (std::ostream& os, int num = 0) const
Dump Event data in the Set to the specified output stream
[more]void Dump (int num = 0) const
Dump Event data in the Set to the specified output stream
[more]void DumpColumn (const char* name, std::ostream& os, int num = 0) const
Dump column data in the Set to the specified output stream
[more]void DumpColumn (const char* name, int num = 0) const
Dump column data in the Set to the specified output stream

Public Members

[more]typedef std::vector<ChainPtr> eventset
Basic event set type
[more]typedef Chain::eventchain eventchain
Basic chain type
[more]typedef List::eventlist eventlist
Basic list type
[more]typedef Chain::value_type value_type
Value type
[more]typedef Chain::size_type size_type
Size type
[more]typedef Chain::difference_type difference_type
Difference type
[more]typedef Chain::reference reference
Reference type
[more]typedef Chain::const_reference const_reference
Const reference type
[more]typedef Chain::pointer pointer
Pointer type
[more]typedef Chain::const_pointer const_pointer
Const pointer type
[more]typedef Iterator iterator
Iterator
[more]typedef ConstIterator const_iterator
Const iterator
[more]typedef ReverseIterator reverse_iterator
Iterator
[more]typedef ConstReverseIterator const_reverse_iterator
Const iterator

Protected Methods

[more]void CheckChain ()
Check for a valid chain


Documentation

An event set consists of a several event chains which are are treated in parallel. This allows combining events sets generated by different sources on the same time stretch of the data without physically merging the files containig the events. The event set is the set used by the user to manipulate, select and histogram events.

otypedef std::vector<ChainPtr> eventset
Basic event set type

otypedef Chain::eventchain eventchain
Basic chain type

otypedef List::eventlist eventlist
Basic list type

otypedef Chain::value_type value_type
Value type

otypedef Chain::size_type size_type
Size type

otypedef Chain::difference_type difference_type
Difference type

otypedef Chain::reference reference
Reference type

otypedef Chain::const_reference const_reference
Const reference type

otypedef Chain::pointer pointer
Pointer type

otypedef Chain::const_pointer const_pointer
Const pointer type

otypedef Iterator iterator
Iterator

otypedef ConstIterator const_iterator
Const iterator

otypedef ReverseIterator reverse_iterator
Iterator

otypedef ConstReverseIterator const_reverse_iterator
Const iterator

oexplicit Set(int N = 1)
Creats a event set with N chains.

oexplicit Set(const char* filename)
Creats a event set from a single file (one chain with one list).

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

obool AddChain(const char* filename)
Add an event chain to the set.

obool AddChain(const Chain& chain)
Add an event chain to the set.

oChain& GetChain(int lnum)
Get an event chain from the set.

oconst Chain& GetChain(int lnum) const
Get an event chain from the set.

obool RemoveChain(int lnum)
Remove an event chain form the set.

oint N() const
Number of event chains in set.

ovoid SetDefaultChain(int def = 0)
Set the default chain. The default chain is used in several operations such as PushBack and Insert.
Parameters:
def - Default chain index

oint GetDefaultChain() const
Get the index of the default chain.
Returns:
Index of the default chain

ovoid Merge()
Merge all event chains into one.

ovoid Join(Set& set)
Join all events from the specified set into the currenmt set. The specified set will be empty afterwards. This method simply transfers the chains. It will not merge the chains!

obool Configure(const char* filename)
Add the event chains specified in the configuration file to the event set. The configuration file must contain a list of files (one per line) each representing an event chain configuration file. Lines starting with a UNIX comment letter are ignored.

obool Save(const char* filename, int perfile = 0, int maxevents = -1) const
Save the set to the specified file(s). If a non-negative perfile is specified and if the number of events in a set is larger than perfile, multiple files are created for each chain with a maximum of perfile events each. The file number is increased automatically until maxevents is reached or all events are processed.
Parameters:
filename - Name of file
perfile - Number of events per written file
maxevents - Maximum number of events written

obool Restore(const char* filename)
Restore an event set from a single file (one chain with one list). All events in the set are cleared before importing the file.
Parameters:
filename - Name of file

oint Size() const
Size of list (number of events in chain).

obool Empty() const
Empty list?

obool operator== (const Set& l) const
Equality operator.

obool operator!= (const Set& l) const
Inequality operator.

obool CheckOrder() const
Check if events are stored in proper time order.

ovoid Swap(Set& l)
Swap the list.

oiterator LowerBound(const Time& t)
Lower bound.

oconst_iterator LowerBound(const Time& t) const
Lower bound.

oiterator UpperBound(const Time& t)
Upper bound.

oconst_iterator UpperBound(const Time& t) const
Upper bound.

oiterator LowerBound(const Event& t)
Lower bound.

oconst_iterator LowerBound(const Event& t) const
Lower bound.

oiterator UpperBound(const Event& t)
Upper bound.

oconst_iterator UpperBound(const Event& t) const
Upper bound.

ovoid Sort()
Sort the set by event time (the set will be merged first).

oreference At(size_type idx)
At. Rather inefficient function.

oconst_reference At(size_type idx) const
At. Rather inefficient function.

oreference operator[] (size_type idx)
Operator []. Rather inefficient function.

oconst_reference operator[] (size_type idx) const
Operator []. Rather inefficient function.

oreference Front()
Front.

oconst_reference Front() const
Front.

oreference Back()
Back.

oconst_reference Back() const
Back.

oiterator Begin()
Begin iterator.
Returns:
Iterator

oconst_iterator Begin() const
Begin iterator.
Returns:
Iterator

oiterator End()
End iterator.
Returns:
Const iterator

oconst_iterator End() const
End iterator.
Returns:
Const iterator

oreverse_iterator RBegin()
RBegin.

oconst_reverse_iterator RBegin() const
RBegin.

oreverse_iterator REnd()
REnd.

oconst_reverse_iterator REnd() const
REnd.

ovoid Insert(const Event& event)
Insert an event into the default chain at its proper location.

oiterator Insert(const iterator& pos, const Event& event)
Insert an event to the set at the specified location.

ovoid Insert(const iterator& beg, const iterator& end)
Inserts a range of events.

ovoid PushBack(const Event& event)
Inserts an event at the back.

oiterator Erase(const iterator& pos)
Erase an event. Returns an iterator pointing the next event.

oiterator Erase(const iterator& beg, const iterator& end)
Erase a range of events. Returns an iterator pointing the next event.

ovoid PopBack()
Remove an event from the end of the default chain.

ovoid Clear()
Clear the chain.

ovoid SetWindow(const TimeWindow& window)
Set the time window of the analysis. A sliding window is used to loop over the events. Only events within this window are considered for veto or coincidence. The window must be at least as wide as the larges coincidenc or veto window.

ovoid SetWindow(const Interval& width, const Interval& offset)
Set the time window of the analysis. A sliding window is used to loop over the events. Only events within this window are considered for veto or coincidence. The window must be at least as wide as the larges coincidenc or veto window.
Parameters:
width - Window duration
offset - Window offset

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

oInterval GetOffset() const
Get the time offset of the window.

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

oInterval GetWidth() const
Get the time duration of the window.

ovoid SetColumn(const Column& column, const Function& expression)
Set column to a new value. Loops through the list of events and calculates the expression for each event. The specified column is the set to then new value. The column name can be either a string or a column class.

Example:

    		 Calculate the significance from the amplitude and sigma
    		Set s1 ("input.xml");
    		s1.SetColumn (Column ("Significance"),
                       Column ("Amplitude") / Column ("Sigma"));
    		

Parameters:
column - Name of column/Column object
expression - New column value
Returns:
void

ovoid SetColumn(const Column& column, const Function& expression, const Condition& cond, const TimeWindow& window = TimeWindow (1.))
Set column to a new value. Loops through the list of events and calculates the expression for each event which fullfills the condition. The specified column is then set to the new value. The column name can be either a string or a column class.

Example:

    	 Calculate the significance from the amplitude and sigma
    	 for all burts events
    		Set s1 ("input.xml");
    		s1.SetColumn (Column ("Significance"),
       	  	           Column ("Amplitude") / Column ("Sigma"),
        		           Filter ("burst::*"));
    	

Parameters:
column - Name of column/Column object
expression - New column value
cond - Event condition
window - Time window for analysis
Returns:
void

oint Select(const Condition& cond)
Selects the events which fullfill the event condition.
Parameters:
cond - Event condition
Returns:
Number of selected events

oint Select(const Set& events, const Condition& cond)
Selects the events from the specified set which fullfill the event condition. The destination set is cleared first.
Parameters:
events - Set to pick events from
cond - Event condition
Returns:
Number of added/selected events

oint SelectAdd(const Set& events, const Condition& cond)
Selects the events from the specified set which fullfill the event condition and adds them to the current set.
Parameters:
events - Set to pick events from
cond - Event condition
Returns:
Number of added/selected events

oint Sort(const Function& func, bool ascending = true, int n = 0)
Sorts the events using the event function.
Parameters:
func - Event function
ascending - Sort order (true default)
n - Maximum number of sorted events (0 = all)
Returns:
Number of sorted events

oint Sort(const Set& events, const Function& func, bool ascending = true, int n = 0)
Sorts the events form the specified set using the event function.
Parameters:
func - Event function
ascending - Sort order (true default)
n - Maximum number of sorted events (0 = all)
Returns:
Number of sorted events

oint Coincidence(const Condition& cond = Condition::True())
Selects the events which fullfill the event coincidence condition. Uses the time window of the set. If two events e1 and e2 fullfill the event condition, a multi event consisting of e1 and e2 is added.
Parameters:
cond - Event condition
Returns:
Number of added/selected events

oint Coincidence(const TimeWindow& window, const Condition& cond = Condition::True())
Selects the events which fullfill the event coincidence condition. Specifies the time window explicitly. If two events e1 and e2 fullfill the event condition, a multi event consisting of e1 and e2 is added.
Parameters:
window - Coincidence interval
cond - Event condition
Returns:
Number of added/selected events

oint Coincidence(const Set& events, const Condition& cond = Condition::True())
Selects the events from the specified set which fullfill the event coincidence condition. The destination set is cleared first. Uses the time window of the set. If two events e1 and e2 fullfill the event condition, a multi event consisting of e1 and e2 is added.
Parameters:
events - Set to pick events from
cond - Event condition
Returns:
Number of added/selected events

oint Coincidence(const Set& events, const TimeWindow& window, const Condition& cond = Condition::True())
Selects the events from the specified set which fullfill the event coincidence condition. The destination set is cleared first. Specifies the time window explicitly. If two events e1 and e2 fullfill the event condition, a multi event consisting of e1 and e2 is added.
Parameters:
events - Set to pick events from
window - Coincidence interval
cond - Event condition
Returns:
Number of added/selected events

oint CoincidenceAdd(const Set& events, const Condition& cond = Condition::True())
Selects the events from the specified set which fullfill the event coincidence condition and adds them to the current set. Uses the time window of the set. If two events e1 and e2 fullfill the event condition, a multi event consisting of e1 and e2 is added.
Parameters:
events - Set to pick events from
window - Coincidence interval
cond - Event condition
Returns:
Number of added/selected events

oint CoincidenceAdd(const Set& events, const TimeWindow& window, const Condition& cond = Condition::True())
Selects the events from the specified set which fullfill the event coincidence condition and adds them to the current set. Specifies the time window explicitly. If two events e1 and e2 fullfill the event condition, a multi event consisting of e1 and e2 is added.
Parameters:
events - Set to pick events from
window - Coincidence interval
cond - Event condition
Returns:
Number of added/selected events

oint TripleCoincidence(const Condition& cond = Condition::True())
Selects the events which fullfill the event triple coincidence. Uses the time window of the set. If three events e1, e2 and e3 fullfill the event condition, a multi event consisting of e1, e2 and e3 is added.
Parameters:
cond - Event condition
Returns:
Number of added/selected events

oint TripleCoincidence(const TimeWindow& window, const Condition& cond = Condition::True())
Selects the events which fullfill the event triple coincidence. Specifies the time window explicitly. If three events e1, e2 and e3 fullfill the event condition, a multi event consisting of e1, e2 and e3 is added.
Parameters:
window - Coincidence interval
cond - Event condition
Returns:
Number of added/selected events

oint TripleCoincidence(const Set& events, const Condition& cond = Condition::True())
Selects the events from the specified set which fullfill the event triple coincidence condition. The destination set is cleared first. Uses the time window of the set. If three events e1, e2 and e3 fullfill the event condition, a multi event consisting of e1, e2 and e3 is added.
Parameters:
events - Set to pick events from
cond - Event condition
Returns:
Number of added/selected events

oint TripleCoincidence(const Set& events, const TimeWindow& window, const Condition& cond = Condition::True())
Selects the events from the specified set which fullfill the event triple coincidence condition. The destination set is cleared first. Specifies the time window explicitly. If three events e1, e2 and e3 fullfill the event condition, a multi event consisting of e1, e2 and e3 is added.
Parameters:
events - Set to pick events from
window - Coincidence interval
cond - Event condition
Returns:
Number of added/selected events

oint TripleCoincidenceAdd(const Set& events, const Condition& cond = Condition::True())
Selects the events from the specified set which fullfill the event triple coincidence condition and adds them to the current set. Uses the time window of the set. If three events e1, e2 and e3 fullfill the event condition, a multi event consisting of e1, e2 and e3 is added.
Parameters:
events - Set to pick events from
cond - Event condition
Returns:
Number of added/selected events

oint TripleCoincidenceAdd(const Set& events, const TimeWindow& window, const Condition& cond = Condition::True())
Selects the events from the specified set which fullfill the event triple coincidence condition and adds them to the current set. Specifies the time window explicitly. If three events e1, e2 and e3 fullfill the event condition, a multi event consisting of e1, e2 and e3 is added.
Parameters:
events - Set to pick events from
window - Coincidence interval
cond - Event condition
Returns:
Number of added/selected events

oint MultiCoincidence(int n, const Condition& cond = Condition::True())
Selects the events which fullfill the event multi coincidence. Uses the time window of the set. If events e1, ... eN fullfill the event condition, a multi event consisting of e1, ... en is added.
Parameters:
n - Number of required coincidences
window - Coincidence interval
cond - Event condition
Returns:
Number of added/selected events

oint MultiCoincidence(int n, const TimeWindow& window, const Condition& cond = Condition::True())
Selects the events which fullfill the event multi coincidence. Specifies the time window explicitly. If events e1, ... eN fullfill the event condition, a multi event consisting of e1, ... en is added.
Parameters:
n - Number of required coincidences
window - Coincidence interval
cond - Event condition
Returns:
Number of added/selected events

oint MultiCoincidence(int n, const Set& events, const Condition& cond = Condition::True())
Selects the events from the specified set which fullfill the event multi coincidence condition. The destination set is cleared first. Uses the time window of the set. If events e1, ... eN fullfill the event condition, a multi event consisting of e1, ... en is added.
Parameters:
n - Number of required coincidences
events - Set to pick events from
cond - Event condition
Returns:
Number of added/selected events

oint MultiCoincidence(int n, const Set& events, const TimeWindow& window, const Condition& cond = Condition::True())
Selects the events from the specified set which fullfill the event multi coincidence condition. The destination set is cleared first. Specifies the time window explicitly. If events e1, ... eN fullfill the event condition, a multi event consisting of e1, ... en is added.
Parameters:
n - Number of required coincidences
events - Set to pick events from
window - Coincidence interval
cond - Event condition
Returns:
Number of added/selected events

oint MultiCoincidenceAdd(int n, const Set& events, const Condition& cond = Condition::True())
Selects the events from the specified set which fullfill the event multi coincidence condition and adds them to the current set. Uses the time window of the set. If events e1, ... eN fullfill the event condition, a multi event consisting of e1, ... en is added.
Parameters:
n - Number of required coincidences
events - Set to pick events from
cond - Event condition
Returns:
Number of added/selected events

oint MultiCoincidenceAdd(int n, const Set& events, const TimeWindow& window, const Condition& cond = Condition::True())
Selects the events from the specified set which fullfill the event multi coincidence condition and adds them to the current set. Specifies the time window explicitly. If events e1, ... eN fullfill the event condition, a multi event consisting of e1, ... en is added.
Parameters:
n - Number of required coincidences
events - Set to pick events from
window - Coincidence interval
cond - Event condition
Returns:
Number of added/selected events

oint ChainCoincidence(const Condition& cond = Condition::True())
Selects the events which fullfill the event coincidence condition. Uses the time window of the set. The (multi-)coincidence is formed between all chains of the set. If two events e1 and e2 fullfill the event condition, a multi event consisting of e1 and e2 is added.
Parameters:
cond - Event condition
Returns:
Number of added/selected events

oint ChainCoincidence(const TimeWindow& window, const Condition& cond = Condition::True())
Selects the events which fullfill the event coincidence condition. Specifies the time window explicitly. The (multi-)coincidence is formed between all chains of the set. If two events e1 and e2 fullfill the event condition, a multi event consisting of e1 and e2 is added.
Parameters:
window - Coincidence interval
cond - Event condition
Returns:
Number of added/selected events

oint ChainCoincidence(const Set& events, const Condition& cond = Condition::True())
Selects the events from the specified set which fullfill the event coincidence condition. The destination set is cleared first. Uses the time window of the set. The (multi-)coincidence is formed between all chains of the specified set. If two events e1 and e2 fullfill the event condition, a multi event consisting of e1 and e2 is added.
Parameters:
events - Set to pick events from
cond - Event condition
Returns:
Number of added/selected events

oint ChainCoincidence(const Set& events, const TimeWindow& window, const Condition& cond = Condition::True())
Selects the events from the specified set which fullfill the event coincidence condition. The destination set is cleared first. Specifies the time window explicitly. The (multi-)coincidence is formed between all chains of the specified set. If two events e1 and e2 fullfill the event condition, a multi event consisting of e1 and e2 is added.
Parameters:
events - Set to pick events from
window - Coincidence interval
cond - Event condition
Returns:
Number of added/selected events

oint ChainCoincidenceAdd(const Set& events, const Condition& cond = Condition::True())
Selects the events from the specified set which fullfill the event coincidence condition and adds them to the current set. Uses the time window of the set. The (multi-)coincidence is formed between all chains of the specified set. If two events e1 and e2 fullfill the event condition, a multi event consisting of e1 and e2 is added.
Parameters:
events - Set to pick events from
window - Coincidence interval
cond - Event condition
Returns:
Number of added/selected events

oint ChainCoincidenceAdd(const Set& events, const TimeWindow& window, const Condition& cond = Condition::True())
Selects the events from the specified set which fullfill the event coincidence condition and adds them to the current set. Specifies the time window explicitly. The (multi-)coincidence is formed between all chains of the specified set. If two events e1 and e2 fullfill the event condition, a multi event consisting of e1 and e2 is added.
Parameters:
events - Set to pick events from
window - Coincidence interval
cond - Event condition
Returns:
Number of added/selected events

oint Clusters(int threshold, const Condition& cond = Condition::True())
Selects the events which fullfill the event condition. Uses the time window of the set.
Parameters:
threshold - Number of events to be considered a cluster
cond - Event condition
Returns:
Number of selected events

oint Clusters(int threshold, const TimeWindow& window, const Condition& cond = Condition::True())
Selects the events which fullfill the event condition. Specifies the time window explicitly.
Parameters:
threshold - Number of events to be considered a cluster
window - Duration of cluster window
cond - Event condition
Returns:
Number of selected events

oint Clusters(const Set& events, int threshold, const Condition& cond = Condition::True())
Selects the events from the specified set which fullfill the event condition. The destination set is cleared first. Uses the time window of the set.
Parameters:
events - Set to pick events from
threshold - Number of events to be considered a cluster
cond - Event condition
Returns:
Number of added/selected events

oint Clusters(const Set& events, int threshold, const TimeWindow& window, const Condition& cond = Condition::True())
Selects the events from the specified set which fullfill the event condition. The destination set is cleared first. Specifies the time window explicitly.
Parameters:
events - Set to pick events from
threshold - Number of events to be considered a cluster
window - Duration of cluster window
cond - Event condition
Returns:
Number of added/selected events

oint ClusterAdd(const Set& events, int threshold, const Condition& cond = Condition::True())
Selects the cluster events from the specified set which fullfill the event condition and adds them to the current set. Uses the time window of the set.
Parameters:
events - Set to pick events from
threshold - Number of events to be considered a cluster
cond - Event condition
Returns:
Number of added/selected events

oint ClusterAdd(const Set& events, int threshold, const TimeWindow& window, const Condition& cond = Condition::True())
Selects the cluster events from the specified set which fullfill the event condition and adds them to the current set. Specifies the time window explicitly.
Parameters:
events - Set to pick events from
threshold - Number of events to be considered a cluster
window - Duration of cluster window
cond - Event condition
Returns:
Number of added/selected events

oint Histogram(Histogram1& hist, const Function& func, const Condition& cond = Condition::True()) const
Make a one-dimensional histogram. The specified event column is used to add to the histogram all events fullfilling the event condition.
Parameters:
hist - 1D histogram
func - Event function used for histogram axis
cond - Condition to select events
Returns:
Number of added events

oint Histogram(Histogram1& hist, const Function& func, const TimeWindow& window, const Condition& cond = Condition::True()) const
Make a one-dimensional histogram. The specified event column is used to add to the histogram all events fullfilling the event condition.
Parameters:
hist - 1D histogram
func - Event function used for histogram axis
window - Duration of time window
cond - Condition to select events
Returns:
Number of added events

oint Histogram(Histogram2& hist, const Function& f1, const Function& f2, const Condition& cond = Condition::True()) const
Make a two-dimensional histogram. The specified event columns are used to add to the histogram all events fullfilling the event condition.
Parameters:
hist - 1D histogram
f1 - Event function used for first histogram axis
f2 - Event function used for second histogram axis
cond - Condition to select events
Returns:
Number of added events

oint Histogram(Histogram2& hist, const Function& f1, const Function& f2, const TimeWindow& window, const Condition& cond = Condition::True()) const
Make a two-dimensional histogram. The specified event columns are used to add to the histogram all events fullfilling the event condition.
Parameters:
hist - 1D histogram
f1 - Event function used for first histogram axis
f2 - Event function used for second histogram axis
window - Duration of time window
cond - Condition to select events
Returns:
Number of added events

oint TimeSeries(TSeries& ts, bool integrated = false, const Condition& cond = Condition::True()) const
Make a time series. The event rate is plotted against time.
Parameters:
ts - Time series
integrated - If true plots the integrated event rate
cond - Condition to select events
Returns:
Number of events

oint TimeSeries(TSeries& ts, const TimeWindow& window, bool integrated = false, const Condition& cond = Condition::True()) const
Make a time series. The event rate is plotted against time.
Parameters:
ts - Time series
window - Duration of time window
integrated - If true plots the integrated event rate
cond - Condition to select events
Returns:
Number of events

oint TimeSeries(TSeries& ts, const Function& func, const Condition& cond = Condition::True()) const
Make a time series. The specified event column is plotted against time.
Parameters:
ts - Time series
func - Event function used for Y axis
cond - Condition to select events
Returns:
Number of events

ovoid Dump(std::ostream& os, int num = 0) const
Dump Event data in the Set to the specified output stream
Parameters:
os - output stream
num - max number of events

ovoid Dump(int num = 0) const
Dump Event data in the Set to the standard output stream
Parameters:
os - output stream
num - max number of events

ovoid DumpColumn(const char* name, std::ostream& os, int num = 0) const
Dump column data in the Set to the specified output stream
Parameters:
name - column name
os - output stream
num - max number of events

ovoid DumpColumn(const char* name, int num = 0) const
Dump column data in the Set to the standard output stream
Parameters:
name - column name
os - output stream
num - max number of events

ovoid CheckChain()
Check that at least one chain and the default exists


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