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 524 of file JEvtToolkit.hh.

Constructor & Destructor Documentation

JRECONSTRUCTION::JHitL0Comparator::JHitL0Comparator ( )
inline

Default constructor.

Definition at line 529 of file JEvtToolkit.hh.

530  {}

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 541 of file JEvtToolkit.hh.

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