Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
JRECONSTRUCTION::JHitL0Comparator Struct Reference

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

#include <JEvtToolkit.hh>

Public Member Functions

 JHitL0Comparator ()
 Default constructor. More...
 
template<class JHitL0_t >
bool operator() (const JHitL0_t &first, const JHitL0_t &second) const
 Comparison of L0 hits by PMT identifier (first) and by time (second). More...
 

Detailed Description

Auxiliary class for permutations of L0 hits.

Definition at line 527 of file JReconstruction/JEvtToolkit.hh.

Constructor & Destructor Documentation

JRECONSTRUCTION::JHitL0Comparator::JHitL0Comparator ( )
inline

Default constructor.

Definition at line 532 of file JReconstruction/JEvtToolkit.hh.

533  {}

Member Function Documentation

template<class JHitL0_t >
bool JRECONSTRUCTION::JHitL0Comparator::operator() ( const JHitL0_t &  first,
const JHitL0_t &  second 
) const
inline

Comparison of L0 hits by PMT identifier (first) and by time (second).

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

Definition at line 544 of file JReconstruction/JEvtToolkit.hh.

545  {
546  if (first.getPMTID() == second.getPMTID())
547  return first.getT() < second.getT();
548  else
549  return first.getPMTID() < second.getPMTID();
550  }
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: