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 49 of file ClusterSequenceVoronoiArea.cc.


Constructor & Destructor Documentation

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 ClusterSequenceVoronoiArea::VoronoiAreaCalc::area ( int  index  )  const [inline]

return the area of the particle associated with the given index

Definition at line 60 of file ClusterSequenceVoronoiArea.cc.

References _areas.

Referenced by ClusterSequenceVoronoiArea::_initializeVA().

00060 {return _areas[index];};

double 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 77 of file ClusterSequenceVoronoiArea.cc.

References _effective_R_squared.

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

double 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

areas, numbered as jets

Definition at line 60 of file ClusterSequenceVoronoiArea.cc.

Referenced by area().

effective radius

Definition at line 64 of file ClusterSequenceVoronoiArea.cc.

effective radius squared

Definition at line 65 of file ClusterSequenceVoronoiArea.cc.

Referenced by circle_area().


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

Generated on 26 Feb 2010 for fastjet by  doxygen 1.6.1