Jpp  debug
the software that should make you happy
Public Member Functions | List of all members
JRECONSTRUCTION::JMuonPrefit::cmz Struct Reference

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

#include <JMuonPrefit.hh>

Public Member Functions

template<class T >
bool operator() (const T &first, const T &second) const
 Sort hits according times corrected for position along z-axis. More...
 

Detailed Description

Auxiliary data structure for sorting of hits.

Definition at line 473 of file JMuonPrefit.hh.

Member Function Documentation

◆ operator()()

template<class T >
bool JRECONSTRUCTION::JMuonPrefit::cmz::operator() ( const T &  first,
const T &  second 
) const
inline

Sort hits according times corrected for position along z-axis.

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

Definition at line 482 of file JMuonPrefit.hh.

483  {
484  using namespace JPP;
485 
486  return (first .getT() * getSpeedOfLight() - first .getZ() <
487  second.getT() * getSpeedOfLight() - second.getZ());
488  }
const double getSpeedOfLight()
Get speed of light.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).

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