Jpp  18.2.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::JHitL0::compare Struct Reference

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

#include <JHitL0.hh>

Public Member Functions

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

Detailed Description

Auxiliary data structure for sorting of hits.

Definition at line 85 of file JHitL0.hh.

Member Function Documentation

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

Compare hits by PMT identifier and time.

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

Definition at line 93 of file JHitL0.hh.

94  {
95  if (first.getPMTIdentifier() == second.getPMTIdentifier())
96  return first.getT() < second.getT();
97  else
98  return first.getPMTIdentifier() < second.getPMTIdentifier();
99  }
double getT() const
Get calibrated time of hit.
const JDAQPMTIdentifier & getPMTIdentifier() const
Get PMT identifier.

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