src
CondFormats
OptAlignObjects
interface
OAQuality.h
Go to the documentation of this file.
1
#ifndef OAQuality_H
2
#define OAQuality_H
3
4
enum
OAQuality
{
oa_fixed
,
oa_calibrated
,
oa_unknown
};
5
6
struct
OAQualityTranslator
{
7
constexpr
static
const
char
*
const
name
(
OAQuality
oaq) {
8
constexpr
const
char
*
const
c
[] = {
"fixed"
,
"calibrated"
,
"unknown"
};
9
return
c
[oaq];
10
}
11
12
static
constexpr
const
OAQuality
index
(
int
ind) {
13
switch
(ind) {
14
case
0:
15
return
oa_fixed
;
16
break
;
17
case
1:
18
return
oa_calibrated
;
19
break
;
20
case
2:
21
return
oa_unknown
;
22
break
;
23
default
:
24
return
oa_unknown
;
25
break
;
26
}
27
}
28
};
29
#endif
DummyCfis.c
c
Definition:
DummyCfis.py:86
oa_unknown
Definition:
OAQuality.h:4
OAQualityTranslator
Definition:
OAQuality.h:6
ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr
if constexpr(n > 3)
Definition:
BrokenLine.h:164
oa_fixed
Definition:
OAQuality.h:4
OAQualityTranslator::index
static constexpr const OAQuality index(int ind)
Definition:
OAQuality.h:12
OAQualityTranslator::name
static constexpr const char *const name(OAQuality oaq)
Definition:
OAQuality.h:7
oa_calibrated
Definition:
OAQuality.h:4
OAQuality
OAQuality
Definition:
OAQuality.h:4
Generated for CMSSW Reference Manual by
1.8.14