ATLAS Offline Software
Classes | Typedefs | Functions
JetVoronoiDiagramHelpers Namespace Reference

Jakub Cuth
May 2015. More...

Classes

class  Diagram
 
class  Point
 
class  Polygon
 
class  Segment
 
class  SegmentList
 

Typedefs

typedef double coord
 
typedef std::vector< PolygonPolygonList
 

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  }

◆ Norm()

Point JetVoronoiDiagramHelpers::Norm ( const Point a)

Definition at line 79 of file JetVoronoiDiagramHelpers.cxx.

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

◆ operator!=()

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  }

◆ 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  }
x
#define x
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
JetVoronoiDiagramHelpers::coord
double coord
Definition: JetVoronoiDiagramHelpers.h:45
a
TList * a
Definition: liststreamerinfos.cxx:10
y
#define y