Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
static
const
char
*
name
(
OAQuality
oaq)
9
{
10
static
const
char
*
c
[] = {
11
"fixed"
,
12
"calibrated"
,
13
"unknown"
14
};
15
return
c[oaq];
16
}
17
18
static
const
OAQuality
index
(
const
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
OAQualityTranslator::index
static const OAQuality index(const int &ind)
Definition:
OAQuality.h:18
oa_unknown
Definition:
OAQuality.h:4
OAQualityTranslator
Definition:
OAQuality.h:6
oa_fixed
Definition:
OAQuality.h:4
trackerHits.c
tuple c
Definition:
trackerHits.py:26
OAQualityTranslator::name
static const char * name(OAQuality oaq)
Definition:
OAQuality.h:8
oa_calibrated
Definition:
OAQuality.h:4
OAQuality
OAQuality
Definition:
OAQuality.h:4
Generated for CMSSW Reference Manual by
1.8.5