ATLAS Offline Software
Namespaces | Typedefs | Functions
GeoUtils.h File Reference
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include "TrkSurfaces/PlaneSurface.h"
#include "Math/Vector3D.h"
#include <vector>
#include <cmath>
#include <algorithm>
Include dependency graph for GeoUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 NSWL1
 A trigger trigger candidate for a stgc sector.
 

Typedefs

using NSWL1::Vertex = boost::geometry::model::d2::point_xy< double >
 
using NSWL1::Polygon = boost::geometry::model::polygon< Vertex >
 
using NSWL1::Vertices = std::vector< Vertex >
 

Functions

float NSWL1::eta (float x, float y, float z)
 
float NSWL1::phi (float x, float y, float z)
 
Polygon NSWL1::Project (const Polygon &p, float Zinit, float Zfin)
 
Polygon NSWL1::buildPolygon (const Vertices &pts)
 
template<class T >
void NSWL1::print (const T &t)
 
float NSWL1::area (const Polygon &p)
 
Vertex NSWL1::centroid (const Polygon &p)
 
std::vector< Polygon > NSWL1::allIntersections (const Polygon &p1, const Polygon &p2)
 
Polygon NSWL1::firstIntersection (const Polygon &p1, const Polygon &p2)
 
Polygon NSWL1::largestIntersection (const Polygon &p1, const Polygon &p2)
 
Polygon NSWL1::intersectionRegion (const std::vector< Polygon > &polygons)
 
template<int XY>
float NSWL1::coordinate (const Vertex &v)
 
int NSWL1::nVertices (const Polygon &p)
 
Vertex NSWL1::getVertex (const Polygon &p, unsigned int i)
 
template<int XY>
std::pair< float, float > NSWL1::coordinateRange (const Polygon &p)
 
Polygon NSWL1::globalToLocal (const Polygon &pol, float z, const Trk::PlaneSurface &surf)
 
Polygon NSWL1::NilPolygon ()