Public Member Functions | List of all members
WireCell::Gen::Drifter::DepoTimeCompare Struct Reference

Public Member Functions

bool operator() (const IDepo::pointer &lhs, const IDepo::pointer &rhs) const
 

Detailed Description

Definition at line 155 of file Drifter.h.

Member Function Documentation

bool Gen::Drifter::DepoTimeCompare::operator() ( const IDepo::pointer lhs,
const IDepo::pointer rhs 
) const

Definition at line 21 of file Drifter.cxx.

22 {
23  if (lhs->time() == rhs->time()) {
24  if (lhs->pos().x() == lhs->pos().x()) {
25  return lhs.get() < rhs.get(); // break tie by pointer
26  }
27  return lhs->pos().x() < lhs->pos().x();
28  }
29  return lhs->time() < rhs->time();
30 }

The documentation for this struct was generated from the following files: