Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
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.
 

Detailed Description

Auxiliary data structure for sorting of hits.

Definition at line 514 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 523 of file JMuonPrefit.hh.

524 {
525 using namespace JPP;
526
527 return (first .getT() * getSpeedOfLight() - first .getZ() <
528 second.getT() * getSpeedOfLight() - second.getZ());
529 }
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: