Jpp test-rotations-old
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 92 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 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 }
JPMT_t getPMT() const
Get PMT.
Definition JHitR0.hh:60
double getT() const
Get calibrated time of hit.

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