Public Member Functions | |
| QCoincidence () | |
| default constructor | |
| virtual | ~QCoincidence () |
| destructor | |
| bool | operator< (const QCoincidence &other) const |
| "less than" operator needed to sort coincidences | |
| size_t | Size () const |
| get the number of events in this coincidence | |
| int | AddEvent (const QCoincidentEvent &ev) |
| add new event to coincidence | |
| void | Clear () |
| delete all events from this coincidence | |
| const std::list< QCoincidentEvent > & | GetEvents () const |
| get list of events stored in this coincidence | |
| double | GetEnergy () const |
| get total energy | |
| void | AddIndex (int pos, unsigned long long ind) |
| Add QCoincidentEvent with fId ind to fEventIndex @ pos. | |
| const QCoincidentEvent * | GetEventByIndex (int pos) const |
| return pointer to coincidentEvent @ pos in fEventIndex | |
Private Attributes | |
| std::list< QCoincidentEvent > | fEvents |
|
std::map< int, unsigned long long > | fEventIndex |
| fId of the events selected by the filters. | |
| bool QCoincidence::operator< | ( | const QCoincidence & | other | ) | const [inline] |
"less than" operator needed to sort coincidences
coincidences are sorted based on the time of the earliest occurring event they contain
| int QCoincidence::AddEvent | ( | const QCoincidentEvent & | ev | ) |
add new event to coincidence
| ev | event to be added |
1.5.1