Jpp 21.0.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JTRIGGER::JHitR1::compare Struct Reference

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

#include <JHitR1.hh>

Public Member Functions

bool operator() (const JHitR1 &first, const JHitR1 &second) const
 Compare hits by module identifier and time.
 

Detailed Description

Auxiliary data structure for sorting of hits.

Definition at line 206 of file JHitR1.hh.

Member Function Documentation

◆ operator()()

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

Compare hits by module identifier and time.

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

Definition at line 214 of file JHitR1.hh.

215 {
216 if (first.getModuleID() == second.getModuleID())
217 return first.getT() < second.getT();
218 else
219 return first.getModuleID() < second.getModuleID();
220 }
double getT() const
Get calibrated time of hit.
int getModuleID() const
Get module identifier.

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