|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #include <boost/geometry.hpp>
8 #include <boost/geometry/geometries/point_xy.hpp>
9 #include <boost/geometry/geometries/polygon.hpp>
11 #include "Math/Vector3D.h"
17 using Vertex=boost::geometry::model::d2::point_xy<double>;
18 using Polygon=boost::geometry::model::polygon<Vertex>;
22 float eta(
float,
float,
float);
23 float phi(
float,
float,
float);
32 void print(
const T&
t){std::cout<<boost::geometry::wkt(
t)<<std::endl;}
57 return boost::geometry::get<XY>(
v);
69 for(
auto vertex : boost::geometry::exterior_ring(
p)){
70 float currVal=boost::geometry::get<XY>(
vertex);
float eta(float x, float y, float z)
int nVertices(const Polygon &p)
boost::geometry::model::d2::point_xy< double > Vertex
boost::geometry::model::polygon< Vertex > Polygon
Polygon largestIntersection(const Polygon &p1, const Polygon &p2)
float coordinate(const Vertex &v)
std::vector< Polygon > allIntersections(const Polygon &p1, const Polygon &p2)
Polygon Project(const Polygon &p, float Zinit, float Zfin)
float area(const Polygon &p)
Vertex getVertex(const Polygon &p, unsigned int i)
Polygon firstIntersection(const Polygon &p1, const Polygon &p2)
std::pair< float, float > coordinateRange(const Polygon &p)
Polygon intersectionRegion(const std::vector< Polygon > &polygons)
float phi(float x, float y, float z)
A trigger trigger candidate for a stgc sector.
Polygon globalToLocal(const Polygon &pol, float z, const Trk::PlaneSurface &surf)
std::vector< Vertex > Vertices
Vertex centroid(const Polygon &p)
Polygon buildPolygon(const Vertices &pts)