Jpp 19.3.0-rc.1
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. | |
Acoustic event.
Definition at line 38 of file JAcoustics/JEvent.hh.
|
inline |
Default constructor.
Definition at line 78 of file JAcoustics/JEvent.hh.
|
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 JAcoustics/JEvent.hh.
|
inlinevirtual |
|
inline |
Get detector identifier.
Definition at line 129 of file JAcoustics/JEvent.hh.
|
inline |
Get number of overlayed events.
Definition at line 140 of file JAcoustics/JEvent.hh.
|
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 JAcoustics/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 JAcoustics/JEvent.hh.
Read from input.
in | reader |
Implements JIO::JSerialisable.
Definition at line 326 of file JAcoustics/JEvent.hh.
Write to output.
out | writer |
Implements JIO::JSerialisable.
Definition at line 344 of file JAcoustics/JEvent.hh.
JACOUSTICS::JEvent::ClassDefOverride | ( | JEvent | , |
4 | ) |
|
inlineinherited |
|
inherited |
Swap events.
first | first event |
second | second event |
Definition at line 223 of file JAcoustics/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 JAcoustics/JEvent.hh.
|
friend |
Write event to output stream.
out | output stream |
event | event |
Definition at line 297 of file JAcoustics/JEvent.hh.
|
protected |
Definition at line 358 of file JAcoustics/JEvent.hh.
|
protected |
Definition at line 359 of file JAcoustics/JEvent.hh.
|
protected |
Definition at line 360 of file JAcoustics/JEvent.hh.
|
protectedinherited |
Definition at line 88 of file JAcoustics/JCounter.hh.