Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
JRECONSTRUCTION::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 554 of file JEvtToolkit.hh.

Constructor & Destructor Documentation

JRECONSTRUCTION::JHitL1Comparator::JHitL1Comparator ( )
inline

Default constructor.

Definition at line 559 of file JEvtToolkit.hh.

560  {}

Member Function Documentation

template<class JHitL1_t >
bool JRECONSTRUCTION::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 571 of file JEvtToolkit.hh.

572  {
573  if (first.getModuleID() == second.getModuleID())
574  return first.getT() < second.getT();
575  else
576  return first.getModuleID() < second.getModuleID();
577  }
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first

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