Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
x
z
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
GitLab
LXR
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
InnerDetector
InDetDetDescr
TRT_GeoModel
src
ArrayFunction.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
ArrayFunction.h
"
6
7
namespace
GeoGenfun
{
8
9
FUNCTION_OBJECT_IMP(
ArrayFunction
)
10
11
// Constructor
12
ArrayFunction
::
ArrayFunction
(
const
double
*
begin
,
const
double
*
end
) :
13
m_values(
begin
,
end
) {}
14
15
// Destructor
16
ArrayFunction::~ArrayFunction
(){}
17
18
// Copy constructor
19
ArrayFunction::ArrayFunction
(
const
ArrayFunction
&right):
20
GeoGenfun
::AbsFunction(), m_values(right.m_values) {}
21
22
// Retrieve function value
23
double
ArrayFunction::operator ()
(
double
argument
)
const
{
24
int
i
=
int
(
argument
+0.5);
25
if
(i<0 || i>=
int
(
m_values
.size()))
return
0;
26
else
return
m_values
[
i
];
27
}
28
29
}
GeoGenfun::ArrayFunction::~ArrayFunction
virtual ~ArrayFunction()
Definition:
ArrayFunction.cxx:16
GeoGenfun::ArrayFunction::m_values
std::vector< double > m_values
Definition:
ArrayFunction.h:41
PlotCalibFromCool.begin
begin
Definition:
PlotCalibFromCool.py:94
python.acmdlib.argument
def argument(*args, **kwargs)
Definition:
acmdlib.py:181
const
bool const RAWDATA *ch2 const
Definition:
LArRodBlockPhysicsV0.cxx:560
mergePhysValFiles.end
end
Definition:
DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
GeoGenfun::ArrayFunction
Definition:
ArrayFunction.h:16
GeoGenfun::ArrayFunction::ArrayFunction
ArrayFunction(const double *begin, const double *end)
Definition:
ArrayFunction.cxx:12
lumiFormat.i
int i
Definition:
lumiFormat.py:85
GeoGenfun::ArrayFunction::operator()
virtual double operator()(double argument) const override
Definition:
ArrayFunction.cxx:23
python.LArMinBiasAlgConfig.int
int
Definition:
LArMinBiasAlgConfig.py:59
ArrayFunction.h
GeoGenfun
Definition:
ArrayFunction.cxx:7
Generated on Mon Mar 24 2025 21:07:15 for ATLAS Offline Software by
1.8.18