Jpp 19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JTRIGGER::JHitL1::compare Struct Reference

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

#include <JHitL1.hh>

Public Member Functions

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

Detailed Description

Auxiliary data structure for sorting of hits.

Definition at line 362 of file JHitL1.hh.

Member Function Documentation

◆ operator()()

bool JTRIGGER::JHitL1::compare::operator() ( const JHitL1 & first,
const JHitL1 & 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 370 of file JHitL1.hh.

371 {
372 if (first.getModuleID() == second.getModuleID())
373 return first.getT() < second.getT();
374 else
375 return first.getModuleID() < second.getModuleID();
376 }
double getT(const unsigned int i) const
Get time of hit i.
Definition JHitL1.hh:170
int getModuleID() const
Get module identifier.

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