Jpp
Public Member Functions | List of all members
JFIT::JHitL1Comparator Struct Reference

Auxiliary class for permutations of L1 hits. More...

#include <JEvtToolkit.hh>

Public Member Functions

 JHitL1Comparator ()
 Default constructor. More...
 
template<class JHitL1_t >
bool operator() (const JHitL1_t &first, const JHitL1_t &second) const
 Comparison of L1 hits by module identifier (first) and by time (second). More...
 

Detailed Description

Auxiliary class for permutations of L1 hits.

Definition at line 501 of file JEvtToolkit.hh.

Constructor & Destructor Documentation

◆ JHitL1Comparator()

JFIT::JHitL1Comparator::JHitL1Comparator ( )
inline

Default constructor.

Definition at line 506 of file JEvtToolkit.hh.

507  {}

Member Function Documentation

◆ operator()()

template<class JHitL1_t >
bool JFIT::JHitL1Comparator::operator() ( const JHitL1_t &  first,
const JHitL1_t &  second 
) const
inline

Comparison of L1 hits by module identifier (first) and by time (second).

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

Definition at line 518 of file JEvtToolkit.hh.

519  {
520  if (first.getModuleID() == second.getModuleID())
521  return first.getT() < second.getT();
522  else
523  return first.getModuleID() < second.getModuleID();
524  }

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