Jpp test-rotations-old
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 203 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 211 of file JHitR1.hh.

212 {
213 if (first.getModuleID() == second.getModuleID())
214 return first.getT() < second.getT();
215 else
216 return first.getModuleID() < second.getModuleID();
217 }
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: