CMS 3D CMS Logo

OAQuality.h
Go to the documentation of this file.
1 #ifndef OAQuality_H
2 #define OAQuality_H
3 
5 
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
static constexpr const OAQuality index(int ind)
Definition: OAQuality.h:12
static constexpr const char *const name(OAQuality oaq)
Definition: OAQuality.h:7
OAQuality
Definition: OAQuality.h:4