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
PhysicsAnalysis
Algorithms
EventSelectionAlgorithms
EventSelectionAlgorithms
SignEnums.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
#ifndef EVENT_SELECTOR_SIGN_ENUMS_H
8
#define EVENT_SELECTOR_SIGN_ENUMS_H
9
10
12
13
namespace
SignEnum
{
14
16
enum
ComparisonOperator
{
17
LT
,
18
GT
,
19
EQ
,
20
GE
,
21
LE
22
};
23
25
static
const
std::map<std::string, ComparisonOperator> stringToOperator = {
26
{
"LT"
,
ComparisonOperator::LT
},
// <
27
{
"GT"
,
ComparisonOperator::GT
},
// >
28
{
"EQ"
,
ComparisonOperator::EQ
},
// ==
29
{
"GE"
,
ComparisonOperator::GE
},
// >=
30
{
"LE"
,
ComparisonOperator::LE
}
// <=
31
};
32
34
template
<
typename
T>
35
bool
checkValue
(T
reference
,
ComparisonOperator
sign
, T
test
) {
36
switch
(
sign
) {
37
case
ComparisonOperator::LT
:
38
return
test
<
reference
;
39
case
ComparisonOperator::GT
:
40
return
test
>
reference
;
41
case
ComparisonOperator::EQ
:
42
return
test
==
reference
;
43
case
ComparisonOperator::GE
:
44
return
test
>=
reference
;
45
case
ComparisonOperator::LE
:
46
return
test
<=
reference
;
47
}
48
throw
std::runtime_error(
"SignEnum::checkValue did not recognise the sign argument! Make sure it is listed within SignEnum::ComparisonOperator."
);
49
}
50
51
}
// namespace SignEnum
52
53
#endif // EVENT_SELECTOR_SIGN_ENUMS_H
SignEnum::EQ
@ EQ
Definition:
SignEnums.h:19
SignEnum
the conversion key for comparison operators for Event Selection Algorithms
Definition:
SignEnums.h:13
reference
Definition:
hcg.cxx:437
TrigInDetValidation_Base.test
test
Definition:
TrigInDetValidation_Base.py:147
SignEnum::GE
@ GE
Definition:
SignEnums.h:20
SignEnum::ComparisonOperator
ComparisonOperator
all possible comparison user inputs
Definition:
SignEnums.h:16
SignEnum::LE
@ LE
Definition:
SignEnums.h:21
sign
int sign(int a)
Definition:
TRT_StrawNeighbourSvc.h:107
SignEnum::GT
@ GT
Definition:
SignEnums.h:18
SignEnum::checkValue
bool checkValue(T reference, ComparisonOperator sign, T test)
the comparison test given the specified sign and two test values
Definition:
SignEnums.h:35
SignEnum::LT
@ LT
Definition:
SignEnums.h:17
dq_make_web_display.reference
reference
Definition:
dq_make_web_display.py:44
Generated on Thu Mar 13 2025 21:18:16 for ATLAS Offline Software by
1.8.18