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

Detailed Description

Auxiliary data structure for sorting of hits.

Definition at line 85 of file JHitL0.hh.

Member Function Documentation

◆ operator()()

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: