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