ATLAS Offline Software
Loading...
Searching...
No Matches
JetVoronoiDiagramHelpers Namespace Reference

Jakub Cuth
May 2015. More...

Classes

class  Diagram
 Tool for calculating and storing diagram. More...
class  Point
 Default object of 2D space. More...
class  Polygon
 List of points in 2D space. More...
class  Segment
 Straight line in 2D space. More...
class  SegmentList
 List of segments. More...

Typedefs

typedef double coord
 Type of coordination system.
typedef std::vector< PolygonPolygonList
 List of polygons.

Functions

Point operator* (double a, const Point &b)
Point operator* (const Point &b, double a)
double operator* (const Point &a, const Point &b)
Point operator+ (const Point &a, const Point &b)
Point operator+ (double a, const Point &b)
Point operator+ (const Point &b, double a)
Point operator- (const Point &a, const Point &b)
Point operator- (const Point &b)
bool operator== (const Point &a, const Point &b)
bool operator!= (const Point &a, const Point &b)
Point Center (const Point &a, const Point &b)
Point Norm (const Point &a)

Detailed Description

Jakub Cuth
May 2015.

Tool to add jet moments based on voronoi diagram.

Moments to add: VoronoiArea Area of voronoi cell corresponding to jet in eta-phi plane

Typedef Documentation

◆ coord

Type of coordination system.

Default integer in boost.

Definition at line 45 of file JetVoronoiDiagramHelpers.h.

◆ PolygonList

List of polygons.

Definition at line 112 of file JetVoronoiDiagramHelpers.h.

Function Documentation

◆ Center()

Point JetVoronoiDiagramHelpers::Center ( const Point & a,
const Point & b )

Definition at line 75 of file JetVoronoiDiagramHelpers.cxx.

75 {
76 return 0.5* (a+b);
77 }
static Double_t a

◆ Norm()

Point JetVoronoiDiagramHelpers::Norm ( const Point & a)

Definition at line 79 of file JetVoronoiDiagramHelpers.cxx.

79 {
80 return {a.y, -a.x};
81 }

◆ operator!=()

bool JetVoronoiDiagramHelpers::operator!= ( const Point & a,
const Point & b )

Definition at line 69 of file JetVoronoiDiagramHelpers.cxx.

69 {
70 return ! (a==b);
71 }

◆ operator*() [1/3]

double JetVoronoiDiagramHelpers::operator* ( const Point & a,
const Point & b )

Definition at line 24 of file JetVoronoiDiagramHelpers.cxx.

24 {
25 coord x = (a.x * b.x);
26 coord y = (a.y * b.y);
27 return x+y;
28 }
#define y
#define x
double coord
Type of coordination system.

◆ operator*() [2/3]

Point JetVoronoiDiagramHelpers::operator* ( const Point & b,
double a )

Definition at line 20 of file JetVoronoiDiagramHelpers.cxx.

20 {
21 return a * b;
22 }

◆ operator*() [3/3]

Point JetVoronoiDiagramHelpers::operator* ( double a,
const Point & b )

Definition at line 14 of file JetVoronoiDiagramHelpers.cxx.

14 {
15 coord x = (a * b.x);
16 coord y = (a * b.y);
17 return {x,y};
18 }

◆ operator+() [1/3]

Point JetVoronoiDiagramHelpers::operator+ ( const Point & a,
const Point & b )

Definition at line 32 of file JetVoronoiDiagramHelpers.cxx.

32 {
33 coord x = (a.x + b.x);
34 coord y = (a.y + b.y);
35 return {x,y};
36 }

◆ operator+() [2/3]

Point JetVoronoiDiagramHelpers::operator+ ( const Point & b,
double a )

Definition at line 44 of file JetVoronoiDiagramHelpers.cxx.

44 {
45 return a+b;
46 }

◆ operator+() [3/3]

Point JetVoronoiDiagramHelpers::operator+ ( double a,
const Point & b )

Definition at line 38 of file JetVoronoiDiagramHelpers.cxx.

38 {
39 coord x = (a + b.x);
40 coord y = (a + b.y);
41 return {x,y};
42 }

◆ operator-() [1/2]

Point JetVoronoiDiagramHelpers::operator- ( const Point & a,
const Point & b )

Definition at line 50 of file JetVoronoiDiagramHelpers.cxx.

50 {
51 coord x = (a.x - b.x);
52 coord y = (a.y - b.y);
53 return {x,y};
54 }

◆ operator-() [2/2]

Point JetVoronoiDiagramHelpers::operator- ( const Point & b)

Definition at line 56 of file JetVoronoiDiagramHelpers.cxx.

56 {
57 return -1*b;
58 }

◆ operator==()

bool JetVoronoiDiagramHelpers::operator== ( const Point & a,
const Point & b )

Definition at line 62 of file JetVoronoiDiagramHelpers.cxx.

62 {
63 bool isSame = true;
64 isSame &= (a.x == b.x);
65 isSame &= (a.y == b.y);
66 return isSame;
67 }