Public Member Functions | List of all members
novaddt::CompareDAQHit< TDC > Struct Template Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-03-03/DDTBaseDataProducts/CompareDAQHit.h"

Public Member Functions

bool operator() (DAQHit const &lhs, DAQHit const &rhs) const
 
bool operator() (DAQHit const &lhs, TDC const &rhs) const
 

Detailed Description

template<>
struct novaddt::CompareDAQHit< TDC >

Definition at line 34 of file CompareDAQHit.h.

Member Function Documentation

bool novaddt::CompareDAQHit< TDC >::operator() ( DAQHit const &  lhs,
DAQHit const &  rhs 
) const
inline

Definition at line 36 of file CompareDAQHit.h.

References novaddt::DAQHit::Cell(), novaddt::DAQHit::Plane(), and novaddt::DAQHit::TDC().

37  {
38  if (!(lhs.TDC() ==rhs.TDC())) {
39  return lhs.TDC() < rhs.TDC();
40  }
41  else if (!(lhs.Plane() == rhs.Plane()) ){
42  return lhs.Plane() < rhs.Plane();
43  }
44  else {
45  return lhs.Cell() < rhs.Cell();
46  }
47  }
bool novaddt::CompareDAQHit< TDC >::operator() ( DAQHit const &  lhs,
TDC const &  rhs 
) const
inline

Definition at line 49 of file CompareDAQHit.h.

References novaddt::DAQHit::TDC().

50  {
51  return lhs.TDC() < rhs;
52  }

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