Project
Loading...
Searching...
No Matches
CircleXY.h
Go to the documentation of this file.
1
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3
// All rights not expressly granted are reserved.
4
//
5
// This software is distributed under the terms of the GNU General Public
6
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7
//
8
// In applying this license CERN does not waive the privileges and immunities
9
// granted to it by virtue of its status as an Intergovernmental Organization
10
// or submit itself to any jurisdiction.
11
16
17
#ifndef MATHUTILS_INCLUDE_MATHUTILS_DETAIL_CIRCLEXY_H_
18
#define MATHUTILS_INCLUDE_MATHUTILS_DETAIL_CIRCLEXY_H_
19
20
#include "
GPUCommonDef.h
"
21
#include "
GPUCommonRtypes.h
"
22
23
namespace
o2
24
{
25
namespace
math_utils
26
{
27
namespace
detail
28
{
29
30
template
<
typename
T>
31
struct
CircleXY
{
32
using
value_t
=
T
;
33
34
T
rC
;
// circle radius
35
T
xC
;
// x-center
36
T
yC
;
// y-center
37
GPUd
()
CircleXY
(
T
r
=
T
(),
T
x
=
T
(),
T
y
=
T
());
38
GPUd
()
T
getCenterD2() const;
39
ClassDefNV
(
CircleXY
, 2);
40
};
41
42
template <typename
T
>
43
GPUdi
()
CircleXY
<
T
>::
CircleXY
(
T
r
,
T
x
,
T
y
) :
rC
(
r
),
xC
(
x
),
yC
(
y
)
44
{
45
}
46
47
template
<
typename
T>
48
GPUdi
()
T
CircleXY
<
T
>::getCenterD2()
const
49
{
50
return
xC
*
xC
+
yC
*
yC
;
51
}
52
}
// namespace detail
53
}
// namespace math_utils
54
}
// namespace o2
55
56
#endif
/* MATHUTILS_INCLUDE_MATHUTILS_DETAIL_CIRCLEXY_H_ */
GPUCommonDef.h
GPUCommonRtypes.h
int
x
GLint GLenum GLint x
Definition
glcorearb.h:403
r
GLboolean r
Definition
glcorearb.h:1233
o2::math_utils::detail::T
T
Definition
SMatrixGPU.h:747
o2::math_utils::detail::GPUdi
GPUdi() int nint(T x)
Definition
basicMath.h:66
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
BitstreamReader.h:24
o2::math_utils::detail::CircleXY
Definition
CircleXY.h:31
o2::math_utils::detail::CircleXY::rC
T rC
Definition
CircleXY.h:34
o2::math_utils::detail::CircleXY::yC
T yC
Definition
CircleXY.h:36
o2::math_utils::detail::CircleXY::GPUd
GPUd() CircleXY(T r
o2::math_utils::detail::CircleXY::xC
T xC
Definition
CircleXY.h:35
o2::math_utils::detail::CircleXY::ClassDefNV
ClassDefNV(CircleXY, 2)
o2::math_utils::detail::CircleXY::value_t
T value_t
Definition
CircleXY.h:32
Common
MathUtils
include
MathUtils
detail
CircleXY.h
Generated on Tue Feb 25 2025 23:16:08 for Project by
1.9.8