Jpp 19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JACOUSTICS::JTriggerOutput Class Reference

Set of acoustics events. More...

#include <JTriggerOutput.hh>

Inheritance diagram for JACOUSTICS::JTriggerOutput:
std::vector< JEvent >

Public Member Functions

 JTriggerOutput ()
 Default constructor.
 
template<class JMatch_t >
void merge (const JMatch_t &match)
 Merge events.
 

Detailed Description

Set of acoustics events.

Definition at line 22 of file JAcoustics/JTriggerOutput.hh.

Constructor & Destructor Documentation

◆ JTriggerOutput()

JACOUSTICS::JTriggerOutput::JTriggerOutput ( )
inline

Default constructor.

Definition at line 29 of file JAcoustics/JTriggerOutput.hh.

29 :
31 {}

Member Function Documentation

◆ merge()

template<class JMatch_t >
void JACOUSTICS::JTriggerOutput::merge ( const JMatch_t & match)
inline

Merge events.

Parameters
matchmatch criterion

Definition at line 40 of file JAcoustics/JTriggerOutput.hh.

41 {
42 std::sort(this->begin(), this->end());
43
44 iterator out = this->begin();
45
46 for (iterator i = this->begin(); i != this->end(); ++out) {
47
48 if (out != i) {
49 *out = *i; // copy event
50 }
51
52 while (++i != this->end() && match(*out,*i)) {
53 out->merge(*i); // merge event
54 }
55 }
56
57 this->erase(out, this->end());
58 }

The documentation for this class was generated from the following file: