ATLAS Offline Software
Typedefs | Functions
FPGATrackSimLLPDoubletHoughTransformTool.cxx File Reference
#include "TH2.h"
#include "FPGATrackSimLLPDoubletHoughTransformTool.h"
Include dependency graph for FPGATrackSimLLPDoubletHoughTransformTool.cxx:

Go to the source code of this file.

Typedefs

typedef double fp_t
 
typedef std::array< fp_t, 2 > pvec
 

Functions

pvec operator+ (const pvec &a, const pvec &b)
 
pvec operator- (const pvec &a, const pvec &b)
 
pvec operator* (const pvec &a, double scale)
 
double length (const pvec &v)
 
pvec rotate90 (const pvec &v)
 
double crossProduct (const pvec &a, const pvec &b)
 

Typedef Documentation

◆ fp_t

typedef double fp_t

Definition at line 7 of file FPGATrackSimLLPDoubletHoughTransformTool.cxx.

◆ pvec

typedef std::array<fp_t, 2> pvec

Definition at line 9 of file FPGATrackSimLLPDoubletHoughTransformTool.cxx.

Function Documentation

◆ crossProduct()

double crossProduct ( const pvec a,
const pvec b 
)

Definition at line 34 of file FPGATrackSimLLPDoubletHoughTransformTool.cxx.

34  {
35  return a[0]*b[1] - a[1]*b[0];
36 }

◆ length()

double length ( const pvec v)

Definition at line 26 of file FPGATrackSimLLPDoubletHoughTransformTool.cxx.

26  {
27  return std::hypot(v[0], v[1]);
28 }

◆ operator*()

pvec operator* ( const pvec a,
double  scale 
)

Definition at line 22 of file FPGATrackSimLLPDoubletHoughTransformTool.cxx.

22  {
23  return { {a[0]*scale, a[1]*scale} };
24 }

◆ operator+()

pvec operator+ ( const pvec a,
const pvec b 
)

Definition at line 15 of file FPGATrackSimLLPDoubletHoughTransformTool.cxx.

15  {
16  return { {a[0]+b[0], a[1]+b[1]} };
17 }

◆ operator-()

pvec operator- ( const pvec a,
const pvec b 
)

Definition at line 18 of file FPGATrackSimLLPDoubletHoughTransformTool.cxx.

18  {
19  return { {a[0]-b[0], a[1]-b[1]} };
20 
21 }

◆ rotate90()

pvec rotate90 ( const pvec v)

Definition at line 30 of file FPGATrackSimLLPDoubletHoughTransformTool.cxx.

30  {
31  return { -v[1], v[0]};
32 }
yodamerge_tmp.scale
scale
Definition: yodamerge_tmp.py:138
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
python.PyAthena.v
v
Definition: PyAthena.py:154
a
TList * a
Definition: liststreamerinfos.cxx:10