fastjet 2.4.3
Public Member Functions | Public Attributes

ClosestPair2D::Shuffle Class Reference

class that will take care of ordering of shuffles for us More...

Collaboration diagram for ClosestPair2D::Shuffle:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool operator< (const Shuffle &) const
 compares this shuffle with the other one
void operator+= (unsigned int shift)
 add the other jet's momentum to this jet

Public Attributes

unsigned int x
unsigned int y
Pointpoint

Detailed Description

class that will take care of ordering of shuffles for us

Definition at line 119 of file ClosestPair2D.hh.


Member Function Documentation

void PseudoJet::operator+= ( unsigned int  shift) [inline]

add the other jet's momentum to this jet

Definition at line 124 of file ClosestPair2D.hh.

References x, and y.

{x += shift; y+= shift;};
bool ClosestPair2D::Shuffle::operator< ( const Shuffle q) const

compares this shuffle with the other one

Definition at line 65 of file ClosestPair2D.cc.

References floor_ln2_less(), x, y, and d0::inline_maths::y().

                                                            {

  if (floor_ln2_less(x ^ q.x, y ^ q.y)) {
    // i = 2 in Chan's algorithm
    return (y < q.y);
  } else {
    // i = 1 in Chan's algorithm
    return (x < q.x);
  }
}

Member Data Documentation

Definition at line 122 of file ClosestPair2D.hh.

Referenced by ClosestPair2D::_point2shuffle().

Definition at line 121 of file ClosestPair2D.hh.

Referenced by ClosestPair2D::_point2shuffle(), operator+=(), and operator<().

Definition at line 121 of file ClosestPair2D.hh.

Referenced by ClosestPair2D::_point2shuffle(), operator+=(), and operator<().


The documentation for this class was generated from the following files: