fastjet 2.4.5
Public Member Functions | Public Attributes
fastjet::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

fastjet::EtaPhi::EtaPhi ( ) [inline]

Definition at line 52 of file DynamicNearestNeighbours.hh.

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

Definition at line 53 of file DynamicNearestNeighbours.hh.

{first = a; second = b;}

Member Function Documentation

void fastjet::EtaPhi::sanitize ( ) [inline]

put things into the desired range.

Definition at line 55 of file DynamicNearestNeighbours.hh.

References twopi.

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

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

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines