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.

00052 {}

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

Definition at line 53 of file DynamicNearestNeighbours.hh.

00053 {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.

00055                   {    
00056     if (second <  0)     second += twopi; 
00057     if (second >= twopi) second -= twopi;
00058   }


Member Data Documentation


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

Generated on 26 Feb 2010 for fastjet by  doxygen 1.6.1