|
Jpp 20.0.0-rc.9-29-gccc23c492-D
the software that should make you happy
|
Acoustic event. More...
#include <JEvent.hh>
Classes | |
| struct | JEvaluator |
| Auxiliary class to determine value of acoustic events. More... | |
Public Member Functions | |
| JEvent () | |
| Default constructor. | |
| template<class T > | |
| JEvent (const int detid, const int counter, const int id, T __begin, T __end) | |
| Constructor. | |
| virtual | ~JEvent () |
| Virtual destructor. | |
| const int | getDetectorID () const |
| Get detector identifier. | |
| int | getOverlays () const |
| Get number of overlayed events. | |
| int | getID () const |
| Get emitter identifier. | |
| void | merge (const JEvent &event) |
| Merge event. | |
| virtual JReader & | read (JReader &in) override |
| Read from input. | |
| virtual JWriter & | write (JWriter &out) const override |
| Write to output. | |
| ClassDefOverride (JEvent, 4) | |
| int | getCounter () const |
| Get counter. | |
| ClassDefNV (JCounter, 1) | |
Static Public Member Functions | |
| template<class T > | |
| static void | overlap (T p, T q, const double Tmax_s) |
| Empty overlapping events. | |
Protected Attributes | |
| int | detid |
| int | overlays |
| int | id |
| int | counter |
Friends | |
| void | swap (JEvent &first, JEvent &second) |
| Swap events. | |
| bool | operator< (const JEvent &first, const JEvent &second) |
| Less than operator for acoustics events. | |
| std::ostream & | operator<< (std::ostream &out, const JEvent &event) |
| Write event to output stream. | |
|
inline |
|
inline |
Constructor.
The transmissions will be sorted to ensure proper functioning of method JEvent::merge and class JEventOverlap.
| detid | detector identifier |
| counter | counter |
| id | identifier |
| __begin | begin of data |
| __end | end of data |
Definition at line 97 of file JEvent.hh.
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
Merge event.
It is assumed that the transmissions in both events are ordered according the default less-than operator.
| event | event |
Definition at line 165 of file JEvent.hh.
|
inlinestatic |
Empty overlapping events.
The events should be time sorted on input.
The time window applies to the difference between the first transmission of an event and the last transmission of the previous event.
| p | begin of events |
| q | end of events |
| Tmax_s | time window [s] |
Definition at line 247 of file JEvent.hh.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Write to output.
| out | writer |
| JACOUSTICS::JEvent::ClassDefOverride | ( | JEvent | , |
| 4 | ) |
|
inlineinherited |
|
inherited |
Swap events.
| first | first event |
| second | second event |
Definition at line 223 of file JEvent.hh.
Less than operator for acoustics events.
The less than operator is applied to the first hit in the events.
If there are no hits in either event, the counter of the events is used.
| first | first event |
| second | second event |
Definition at line 281 of file JEvent.hh.
|
friend |
Write event to output stream.
| out | output stream |
| event | event |
Definition at line 297 of file JEvent.hh.
|
protectedinherited |
Definition at line 88 of file JCounter.hh.