Main Page
Namespaces
Classes
Package Documentation
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
8
constexpr
static
const
char
*
const
name
(
OAQuality
oaq)
9
{
10
constexpr
const
char
*
const
c
[] = {
11
"fixed"
,
12
"calibrated"
,
13
"unknown"
14
};
15
return
c[oaq];
16
}
17
18
static
constexpr
const
OAQuality
index
(
int
ind ) {
19
switch
(ind) {
20
case
0:
21
return
oa_fixed
;
22
break
;
23
case
1:
24
return
oa_calibrated
;
25
break
;
26
case
2:
27
return
oa_unknown
;
28
break
;
29
default
:
30
return
oa_unknown
;
31
break
;
32
}
33
}
34
35
};
36
#endif
oa_unknown
Definition:
OAQuality.h:4
EnergyCorrector.c
c
Definition:
EnergyCorrector.py:44
OAQualityTranslator
Definition:
OAQuality.h:6
oa_fixed
Definition:
OAQuality.h:4
OAQualityTranslator::index
static constexpr const OAQuality index(int ind)
Definition:
OAQuality.h:18
OAQualityTranslator::name
static constexpr const char *const name(OAQuality oaq)
Definition:
OAQuality.h:8
oa_calibrated
Definition:
OAQuality.h:4
constexpr
#define constexpr
Definition:
GCC11Compatibility.h:35
OAQuality
OAQuality
Definition:
OAQuality.h:4
Generated for CMSSW Reference Manual by
1.8.11