class Set Chain of event lists
| | eventset Basic event set type |
| | eventchain Basic chain type |
| | eventlist Basic list type |
| | value_type Value type |
| | size_type Size type |
| | difference_type Difference type |
| | reference Reference type |
| | const_reference Const reference type |
| | pointer Pointer type |
| | const_pointer Const pointer type |
| | iterator Iterator |
| | const_iterator Const iterator |
| | reverse_iterator Iterator |
| | const_reverse_iterator Const iterator |
| | Set (int N = 1) Constructor |
| | Set (const char* filename) Constructor |
| | Copy () const Copy the event |
| | AddChain (const char* filename) Add |
| | AddChain (const Chain& chain) Add |
| | GetChain (int lnum) Get |
| | GetChain (int lnum) const Get |
| | RemoveChain (int lnum) Remove |
| | N () const N |
| | SetDefaultChain (int def = 0) Set the default chain |
| | GetDefaultChain () const Get the index of the default chain |
| | Merge () Merge |
| | Join (Set& set) Merge |
| | Configure (const char* filename) Configure |
| | Save (const char* filename, int perfile = 0, int maxevents = -1) const Save |
| | Restore (const char* filename) Restore |
| | Size () const Size |
| | Empty () const Empty |
| | operator== (const Set& l) const Equality |
| | operator!= (const Set& l) const Equality |
| | CheckOrder () const Check order |
| | Swap (Set& l) Swap |
| | LowerBound (const Time& t) Lower bound |
| | LowerBound (const Time& t) const Lower bound |
| | UpperBound (const Time& t) Upper bound |
| | UpperBound (const Time& t) const Upper bound |
| | LowerBound (const Event& t) Lower bound |
| | LowerBound (const Event& t) const Lower bound |
| | UpperBound (const Event& t) Upper bound |
| | UpperBound (const Event& t) const Upper bound |
| | Sort () Sort |
| | At (size_type idx) At |
| | At (size_type idx) const At |
| | operator[] (size_type idx) Operator[] |
| | operator[] (size_type idx) const Operator[] |
| | Front () Front |
| | Front () const Front |
| | Back () Back |
| | Back () const Back |
| | Begin () Begin |
| | Begin () const Begin |
| | End () End |
| | End () const End |
| | RBegin () RBegin |
| | RBegin () const RBegin |
| | REnd () REnd |
| | REnd () const REnd |
| | Insert (const Event& event) Insert |
| | Insert (const iterator& pos, const Event& event) Insert |
| | Insert (const iterator& beg, const iterator& end) Add |
| | PushBack (const Event& event) PushBack |
| | Erase (const iterator& pos) Erase |
| | Erase (const iterator& beg, const iterator& end) Erase |
| | PopBack () PopBack |
| | Clear () Clear |
| | SetWindow (const TimeWindow& window) Set time window |
| | SetWindow (const Interval& width, const Interval& offset) Set time window |
| | SetOffset (const Interval& offset) Set time offset |
| | GetOffset () const Get time offset |
| | SetWidth (const Interval& duration) Set time duration |
| | GetWidth () const Get time duration |
| | SetColumn (const Column& column, const Function& expression) Set column to a new value |
| | SetColumn (const Column& column, const Function& expression, const Condition& cond, const TimeWindow& window = TimeWindow (1.)) Set column to a new value of selected events |
| | Select (const Condition& cond) Select |
| | Select (const Set& events, const Condition& cond) Select |
| | SelectAdd (const Set& events, const Condition& cond) Select and add |
| | Sort (const Function& func, bool ascending = true, int n = 0) Sort |
| | Sort (const Set& events, const Function& func, bool ascending = true, int n = 0) Sort |
| | Coincidence (const Condition& cond = Condition::True()) Coincidence |
| | Coincidence (const TimeWindow& window, const Condition& cond = Condition::True()) Coincidence |
| | Coincidence (const Set& events, const Condition& cond = Condition::True()) Coincidence |
| | Coincidence (const Set& events, const TimeWindow& window, const Condition& cond = Condition::True()) Coincidence |
| | CoincidenceAdd (const Set& events, const Condition& cond = Condition::True()) Coincidence and add |
| | CoincidenceAdd (const Set& events, const TimeWindow& window, const Condition& cond = Condition::True()) Coincidence and add |
| | TripleCoincidence (const Condition& cond = Condition::True()) TripleCoincidence |
| | TripleCoincidence (const TimeWindow& window, const Condition& cond = Condition::True()) TripleCoincidence |
| | TripleCoincidence (const Set& events, const Condition& cond = Condition::True()) TripleCoincidence |
| | TripleCoincidence (const Set& events, const TimeWindow& window, const Condition& cond = Condition::True()) TripleCoincidence |
| | TripleCoincidenceAdd (const Set& events, const Condition& cond = Condition::True()) TripleCoincidence Add |
| | TripleCoincidenceAdd (const Set& events, const TimeWindow& window, const Condition& cond = Condition::True()) TripleCoincidence Add |
| | MultiCoincidence (int n, const Condition& cond = Condition::True()) MultiCoincidence |
| | MultiCoincidence (int n, const TimeWindow& window, const Condition& cond = Condition::True()) MultiCoincidence |
| | MultiCoincidence (int n, const Set& events, const Condition& cond = Condition::True()) MultiCoincidence |
| | MultiCoincidence (int n, const Set& events, const TimeWindow& window, const Condition& cond = Condition::True()) MultiCoincidence |
| | MultiCoincidenceAdd (int n, const Set& events, const Condition& cond = Condition::True()) MultiCoincidence Add |
| | MultiCoincidenceAdd (int n, const Set& events, const TimeWindow& window, const Condition& cond = Condition::True()) MultiCoincidence Add |
| | Clusters (int threshold, const Condition& cond = Condition::True()) Select |
| | Clusters (int threshold, const TimeWindow& window, const Condition& cond = Condition::True()) Select |
| | Clusters (const Set& events, int threshold, const Condition& cond = Condition::True()) Select |
| | Clusters (const Set& events, int threshold, const TimeWindow& window, const Condition& cond = Condition::True()) Select |
| | ClusterAdd (const Set& events, int threshold, const Condition& cond = Condition::True()) Select and add |
| | ClusterAdd (const Set& events, int threshold, const TimeWindow& window, const Condition& cond = Condition::True()) Select and add |
| | Histogram (Histogram1& hist, const Function& func, const Condition& cond = Condition::True()) const 1D histogram generation |
| | Histogram (Histogram2& hist, const Function& f1, const Function& f2, const Condition& cond = Condition::True()) const 1D histogram generation |
| | TimeSeries (TSeries& ts, const Function& func, const Condition& cond = Condition::True()) const Time series generation |
| | Dump (std::ostream& os, int num = 0) const Dump Event data in the Set to the specified output stream |
| | Dump (int num = 0) const Dump Event data in the Set to the specified output stream |
| | DumpColumn (const char* name, std::ostream& os, int num = 0) const Dump column data in the Set to the specified output stream |
| | DumpColumn (const char* name, int num = 0) const Dump column data in the Set to the specified output stream |
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.
Example:
Example:
typedef Chain::eventchain eventchain
typedef List::eventlist eventlist
typedef Chain::value_type value_type
typedef Chain::size_type size_type
typedef Chain::difference_type difference_type
typedef Chain::reference reference
typedef Chain::const_reference const_reference
typedef Chain::pointer pointer
typedef Chain::const_pointer const_pointer
typedef Iterator iterator
typedef ConstIterator const_iterator
typedef ReverseIterator reverse_iterator
typedef ConstReverseIterator const_reverse_iterator
explicit Set(int N = 1)
explicit Set(const char* filename)
Set* Copy() const
bool AddChain(const char* filename)
bool AddChain(const Chain& chain)
Chain& GetChain(int lnum)
const Chain& GetChain(int lnum) const
bool RemoveChain(int lnum)
int N() const
void SetDefaultChain(int def = 0)
int GetDefaultChain() const
void Merge()
void Join(Set& set)
bool Configure(const char* filename)
bool Save(const char* filename, int perfile = 0, int maxevents = -1) const
perfile - Number of events per written file
maxevents - Maximum number of events written
bool Restore(const char* filename)
int Size() const
bool Empty() const
bool operator== (const Set& l) const
bool operator!= (const Set& l) const
bool CheckOrder() const
void Swap(Set& l)
iterator LowerBound(const Time& t)
const_iterator LowerBound(const Time& t) const
iterator UpperBound(const Time& t)
const_iterator UpperBound(const Time& t) const
iterator LowerBound(const Event& t)
const_iterator LowerBound(const Event& t) const
iterator UpperBound(const Event& t)
const_iterator UpperBound(const Event& t) const
void Sort()
reference At(size_type idx)
const_reference At(size_type idx) const
reference operator[] (size_type idx)
const_reference operator[] (size_type idx) const
reference Front()
const_reference Front() const
reference Back()
const_reference Back() const
iterator Begin()
const_iterator Begin() const
iterator End()
const_iterator End() const
reverse_iterator RBegin()
const_reverse_iterator RBegin() const
reverse_iterator REnd()
const_reverse_iterator REnd() const
void Insert(const Event& event)
iterator Insert(const iterator& pos, const Event& event)
void Insert(const iterator& beg, const iterator& end)
void PushBack(const Event& event)
iterator Erase(const iterator& pos)
iterator Erase(const iterator& beg, const iterator& end)
void PopBack()
void Clear()
void SetWindow(const TimeWindow& window)
void SetWindow(const Interval& width, const Interval& offset)
offset - Window offset
void SetOffset(const Interval& offset)
Interval GetOffset() const
void SetWidth(const Interval& duration)
Interval GetWidth() const
void SetColumn(const Column& column, const Function& expression)
Set s1 ("input.xml");
s1.SetColumn (Column ("Significance"),
Column ("Amplitude") / Column ("Sigma"));
expression - New column value
void SetColumn(const Column& column, const Function& expression, const Condition& cond, const TimeWindow& window = TimeWindow (1.))
Set s1 ("input.xml");
s1.SetColumn (Column ("Significance"),
Column ("Amplitude") / Column ("Sigma"),
Filter ("burst::*"));
expression - New column value
cond - Event condition
window - Time window for analysis
int Select(const Condition& cond)
int Select(const Set& events, const Condition& cond)
cond - Event condition
int SelectAdd(const Set& events, const Condition& cond)
cond - Event condition
int Sort(const Function& func, bool ascending = true, int n = 0)
ascending - Sort order (true default)
n - Maximum number of sorted events (0 = all)
int Sort(const Set& events, const Function& func, bool ascending = true, int n = 0)
ascending - Sort order (true default)
n - Maximum number of sorted events (0 = all)
int Coincidence(const Condition& cond = Condition::True())