fastjet 2.4.3
Public Member Functions | Public Attributes

EtaPhi Class Reference

Shortcut for dealing with eta-phi coordinates. More...

#include <DynamicNearestNeighbours.hh>

List of all members.

Public Member Functions

 EtaPhi ()
 EtaPhi (double a, double b)
void sanitize ()
 put things into the desired range.

Public Attributes

double first
double second

Detailed Description

Shortcut for dealing with eta-phi coordinates.

use a class instead of a pair so that phi can be sanitized and put into proper range on initialization.

Definition at line 49 of file DynamicNearestNeighbours.hh.


Constructor & Destructor Documentation

EtaPhi::EtaPhi ( ) [inline]

Definition at line 52 of file DynamicNearestNeighbours.hh.

{}
EtaPhi::EtaPhi ( double  a,
double  b 
) [inline]

Definition at line 53 of file DynamicNearestNeighbours.hh.

References first, and second.

{first = a; second = b;}

Member Function Documentation

void EtaPhi::sanitize ( ) [inline]

put things into the desired range.

Definition at line 55 of file DynamicNearestNeighbours.hh.

References second, and twopi.

Referenced by ClusterSequence::_delaunay_cluster().

                  {    
    if (second <  0)     second += twopi; 
    if (second >= twopi) second -= twopi;
  }

Member Data Documentation

double EtaPhi::first

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