Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

fastjet::ClusterSequenceVoronoiArea::VoronoiAreaCalc Class Reference

class for carrying out a voronoi area calculation on a set of initial vectors More...

List of all members.

Public Member Functions

 VoronoiAreaCalc (const vector< PseudoJet >::const_iterator &, const vector< PseudoJet >::const_iterator &, double effective_R)
 constructor that takes a range of a vector together with the effective radius for the intersection of discs with voronoi cells

double area (int index) const
 return the area of the particle associated with the given index


Private Member Functions

double edge_circle_intersection (const Point &p0, const GraphEdge &edge)
 compute the intersection of one triangle with the circle the area is returned

double circle_area (const double d12_2, double d01_2, double d02_2)
 get the area of a circle of radius R centred on the point 0 with 1 and 2 on each "side" of the arc.


Private Attributes

std::vector< double > _areas
 areas, numbered as jets

double _effective_R
 effective radius

double _effective_R_squared
 effective radius squared


Detailed Description

class for carrying out a voronoi area calculation on a set of initial vectors

Definition at line 47 of file ClusterSequenceVoronoiArea.cc.


Constructor & Destructor Documentation

fastjet::ClusterSequenceVoronoiArea::VoronoiAreaCalc::VoronoiAreaCalc const vector< PseudoJet >::const_iterator &  ,
const vector< PseudoJet >::const_iterator &  ,
double  effective_R
 

constructor that takes a range of a vector together with the effective radius for the intersection of discs with voronoi cells


Member Function Documentation

double fastjet::ClusterSequenceVoronoiArea::VoronoiAreaCalc::area int  index  )  const [inline]
 

return the area of the particle associated with the given index

Definition at line 58 of file ClusterSequenceVoronoiArea.cc.

Referenced by fastjet::ClusterSequenceVoronoiArea::_initializeVA().

00058 {return _areas[index];};

double fastjet::ClusterSequenceVoronoiArea::VoronoiAreaCalc::circle_area const double  d12_2,
double  d01_2,
double  d02_2
[inline, private]
 

get the area of a circle of radius R centred on the point 0 with 1 and 2 on each "side" of the arc.

dij is the distance between point i and point j and all distances are squared

Definition at line 75 of file ClusterSequenceVoronoiArea.cc.

00075                                                                            {
00076     return 0.5*_effective_R_squared
00077       *acos((d01_2+d02_2-d12_2)/(2*sqrt(d01_2*d02_2)));
00078   }

double fastjet::ClusterSequenceVoronoiArea::VoronoiAreaCalc::edge_circle_intersection const Point p0,
const GraphEdge edge
[private]
 

compute the intersection of one triangle with the circle the area is returned


Member Data Documentation

std::vector<double> fastjet::ClusterSequenceVoronoiArea::VoronoiAreaCalc::_areas [private]
 

areas, numbered as jets

Definition at line 61 of file ClusterSequenceVoronoiArea.cc.

double fastjet::ClusterSequenceVoronoiArea::VoronoiAreaCalc::_effective_R [private]
 

effective radius

Definition at line 62 of file ClusterSequenceVoronoiArea.cc.

double fastjet::ClusterSequenceVoronoiArea::VoronoiAreaCalc::_effective_R_squared [private]
 

effective radius squared

Definition at line 63 of file ClusterSequenceVoronoiArea.cc.


The documentation for this class was generated from the following file:
Generated on Mon Dec 3 11:54:23 2007 for fastjet by doxygen 1.3.4