Jpp 21.0.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
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.
 

Detailed Description

Auxiliary data structure for sorting of hits.

Definition at line 105 of file JHitR0.hh.

Member Function Documentation

◆ operator()()

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 113 of file JHitR0.hh.

114 {
115 if (first.getPMT() == second.getPMT())
116 return first.getT() < second.getT();
117 else
118 return first.getPMT() < second.getPMT();
119 }
JPMT_t getPMT() const
Get PMT.
Definition JHitR0.hh:73
double getT() const
Get calibrated time of hit.

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