Jpp 19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
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.
 
template<class JMatch_t >
void merge (const JMatch_t &match)
 Merge events.
 

Detailed Description

Set of triggered events.

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

Constructor & Destructor Documentation

◆ JTriggerOutput()

JTRIGGER::JTriggerOutput::JTriggerOutput ( )
inline

Default constructor.

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

30 :
32 {}

Member Function Documentation

◆ merge()

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: