1 #ifndef __JTRIGGER__JEVENTOVERLAP__
2 #define __JTRIGGER__JEVENTOVERLAP__
14 namespace JPP {
using namespace JTRIGGER; }
23 std::binary_function<JEvent, JEvent, bool>
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);
Match of two events considering overlap in time.
bool operator()(const JEvent &first, const JEvent &second) const
Match criterion.
double getTmax() const
Get time window.
JEventOverlap(const double Tmax_ns)
Constructor.