Jpp  18.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
JTRIGGER::JHitR0::compare Struct Reference

Auxiliary data structure for sorting of hits. More...

#include <JHitR0.hh>

Public Member Functions

bool operator() (const JHitR0 &first, const JHitR0 &second) const
 Compare hits by PMT and time. More...
 

Detailed Description

Auxiliary data structure for sorting of hits.

Definition at line 92 of file JHitR0.hh.

Member Function Documentation

bool JTRIGGER::JHitR0::compare::operator() ( const JHitR0 first,
const JHitR0 second 
) const
inline

Compare hits by PMT and time.

Parameters
firstfirst hit
secondsecond hit
Returns
true if first before second; else false

Definition at line 100 of file JHitR0.hh.

101  {
102  if (first.getPMT() == second.getPMT())
103  return first.getT() < second.getT();
104  else
105  return first.getPMT() < second.getPMT();
106  }
double getT() const
Get calibrated time of hit.
JPMT_t getPMT() const
Get PMT.
Definition: JHitR0.hh:60

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