|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #ifndef JETMOMENTTOOLS_JETVORONOIDIAGRAMHELPERS_H
8 #define JETMOMENTTOOLS_JETVORONOIDIAGRAMHELPERS_H
25 #include <boost/polygon/voronoi.hpp>
34 #include <boost/geometry.hpp>
35 #include <boost/geometry/geometries/point_xy.hpp>
36 #include <boost/geometry/geometries/polygon.hpp>
94 struct Polygon :
public std::vector<Point> {
105 boost::geometry::correct(
out);
176 return (orient == HORIZONTAL) ? point.
x : point.
y;
183 if(orient == HORIZONTAL)
JetVoronoiDiagramHelpers::coord coordinate_type
Point operator+(const Point &a, const Point &b)
boost::polygon::voronoi_diagram< double >::edge_type VoronoiEdgeBoost
boost::geometry::model::polygon< VoronoiPointBoost > VoronoiPolygonBoost
bool checkSameNumber(double in, double out, const std::string &description)
void FillVoroPolygon(VoronoiPolygonBoost &out) const
Diagram(const std::string &name)
Point(coord the_x=0, coord the_y=0)
std::vector< Polygon > PolygonList
double intersectionAndArea(JetVoronoiDiagramHelpers::Polygon const &geo1, JetVoronoiDiagramHelpers::Polygon const &geo2, JetVoronoiDiagramHelpers::Polygon &out)
static JetVoronoiDiagramHelpers::Point construct(int x_value, int y_value)
bool operator==(const Point &a, const Point &b)
static coordinate_type get(const JetVoronoiDiagramHelpers::Point &point, orientation_2d orient)
boost::polygon::voronoi_diagram< double > VoronoiBoost
Jakub Cuth May 2015.
bool operator!=(const Point &a, const Point &b)
StatusCode initialize()
Dummy implementation of the initialisation function.
boost::polygon::voronoi_diagram< double >::vertex_type VoronoiVtxBoost
JetVoronoiDiagramHelpers::Point point_type
void Add(coord x1, coord y1, coord x2, coord y2)
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode checkStatus(const VoronoiBoost &vd, size_t n_cells_processed)
Point Norm(const Point &a)
Segment(Point a, Point b)
boost::polygon::voronoi_diagram< double >::cell_type VoronoiCellBoost
Segment(coord x1, coord y1, coord x2, coord y2)
JetVoronoiDiagramHelpers::coord coordinate_type
StatusCode createVoronoiDiagram()
boost::geometry::model::d2::point_xy< double > VoronoiPointBoost
Linear spline representation of a function used to calculate weights.
Point operator*(double a, const Point &b)
std::vector< double > m_area_cells
Point Center(const Point &a, const Point &b)
void Add(coord x, coord y)
static void set(JetVoronoiDiagramHelpers::Point &point, orientation_2d orient, int value)
size_t findPointIndex(const Point &a) const
Point interpolateInfinityVertex(const int i_a, const int i_b)
float getCellArea(const coord x, const coord y) const
static point_type get(const JetVoronoiDiagramHelpers::Segment &segment, direction_1d dir)
JetVoronoiDiagramHelpers::coord coordinate_type
Point operator-(const Point &a, const Point &b)
Muon::NSW_PadTriggerSegment segment(const NSWL1::PadTrigger &data)
std::string description
glabal timer - how long have I taken so far?