Jpp  15.0.1
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
JTRIGGER::JTriggerOutput Class Reference

Set of triggered events. More...

#include <JTriggerOutput.hh>

Inheritance diagram for JTRIGGER::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 triggered events.

Definition at line 23 of file JTrigger/JTriggerOutput.hh.

Constructor & Destructor Documentation

JTRIGGER::JTriggerOutput::JTriggerOutput ( )
inline

Default constructor.

Definition at line 30 of file JTrigger/JTriggerOutput.hh.

Member Function Documentation

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

Merge events.

Parameters
matchmatch criterion

Definition at line 41 of file JTrigger/JTriggerOutput.hh.

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

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