fastjet 2.4.3
Classes | Functions

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 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 Coord2D::y.

Referenced by 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;
  }