fastjet::EtaPhi Class Reference

use a class instead of a pair so that phi can be sanitized and put into proper range on initialization. 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

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.

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

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


Member Data Documentation

double fastjet::EtaPhi::first

Definition at line 51 of file DynamicNearestNeighbours.hh.

Referenced by fastjet::Dnn4piCylinder::_remap_phi(), fastjet::Dnn3piCylinder::_remap_phi(), and fastjet::Dnn2piCylinder::_remap_phi().

double fastjet::EtaPhi::second

Definition at line 51 of file DynamicNearestNeighbours.hh.

Referenced by fastjet::Dnn4piCylinder::_remap_phi(), fastjet::Dnn3piCylinder::_remap_phi(), and fastjet::Dnn2piCylinder::_remap_phi().


The documentation for this class was generated from the following file:
Generated on Tue Dec 18 17:05:55 2007 for fastjet by  doxygen 1.5.2