fastjet 2.4.5
Classes | Functions
fastjet::Private Namespace Reference

Classes

class  MirrorInfo
 class for helping us deal with mirror-image particles. More...

Functions

bool make_mirror (Coord2D &point, double Dlim)
 if there is a need for a mirror when looking for closest pairs up to distance D, then return true and turn the supplied point into its mirror copy

Function Documentation

bool fastjet::Private::make_mirror ( Coord2D &  point,
double  Dlim 
)

if there is a need for a mirror when looking for closest pairs up to distance D, then return true and turn the supplied point into its mirror copy

Definition at line 55 of file ClusterSequence_CP2DChan.cc.

References twopi, and fastjet::Coord2D::y.

Referenced by fastjet::ClusterSequence::_CP2DChan_limited_cluster().

                                                 {
    if (point.y < Dlim)       {point.y += twopi; return true;}
    if (twopi-point.y < Dlim) {point.y -= twopi; return true;}
    return false;
  }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines