Public Member Functions | List of all members
ddt::CompareHit Struct Reference

Public Member Functions

bool operator() (Hit const &lhs, Hit const &rhs)
 

Detailed Description

Definition at line 50 of file DDTEva_module.cc.

Member Function Documentation

bool ddt::CompareHit::operator() ( Hit const &  lhs,
Hit const &  rhs 
)
inline

Definition at line 53 of file DDTEva_module.cc.

References ddt::Hit::cell, ddt::Hit::plane, and ddt::Hit::tdc.

54  {
55  if (lhs.plane == rhs.plane)
56  {
57  if (lhs.cell == rhs.cell)
58  return lhs.tdc < rhs.tdc;
59 
60  return lhs.cell < rhs.cell;
61  }
62 
63  return lhs.plane < rhs.plane;
64  }

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