Match of two events considering overlap in time.
More...
#include <JEventOverlap.hh>
Match of two events considering overlap in time.
Definition at line 22 of file JEventOverlap.hh.
JTRIGGER::JEventOverlap::JEventOverlap |
( |
const double |
Tmax_ns | ) |
|
|
inline |
Constructor.
- Parameters
-
Tmax_ns | maximal time difference between two consecutive events [ns] |
Definition at line 31 of file JEventOverlap.hh.
bool JTRIGGER::JEventOverlap::operator() |
( |
const JEvent & |
first, |
|
|
const JEvent & |
second |
|
) |
| const |
|
inline |
Match criterion.
- Parameters
-
first | first event |
second | second event |
- Returns
- true if two events overlap in time; else false
Definition at line 43 of file JEventOverlap.hh.
45 if (first .empty())
return false;
46 if (second.empty())
return false;
48 return (first.rbegin()->getT() >= second. begin()->getT() -
tmax_ns &&
49 first. begin()->getT() <= second.rbegin()->getT() +
tmax_ns);
double JTRIGGER::JEventOverlap::getTmax |
( |
| ) |
const |
|
inline |
Get time window.
- Returns
- maximal time difference between two consecutive events [ns]
Definition at line 58 of file JEventOverlap.hh.
double JTRIGGER::JEventOverlap::tmax_ns |
|
protected |
The documentation for this class was generated from the following file: