Jpp  17.3.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
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. More...
 
template<class JMatch_t >
void merge (const JMatch_t &match)
 Merge events. More...
 

Detailed Description

Set of acoustics events.

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

Constructor & Destructor Documentation

JACOUSTICS::JTriggerOutput::JTriggerOutput ( )
inline

Default constructor.

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

Member Function Documentation

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: