CMS 3D CMS Logo

List of all members | Static Public Member Functions
OAQualityTranslator Struct Reference

#include <OAQuality.h>

Static Public Member Functions

static constexpr const OAQuality index (int ind)
 
static constexpr const char *const name (OAQuality oaq)
 

Detailed Description

Definition at line 6 of file OAQuality.h.

Member Function Documentation

◆ index()

static constexpr const OAQuality OAQualityTranslator::index ( int  ind)
inlinestatic

Definition at line 12 of file OAQuality.h.

References oa_calibrated, oa_fixed, and oa_unknown.

12  {
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  }

◆ name()

static constexpr const char* const OAQualityTranslator::name ( OAQuality  oaq)
inlinestatic

Definition at line 7 of file OAQuality.h.

References DummyCfis::c, and ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr().

Referenced by config.CFG::__str__(), validation.Sample::digest(), and VIDSelectorBase.VIDSelectorBase::initialize().

7  {
8  constexpr const char* const c[] = {"fixed", "calibrated", "unknown"};
9  return c[oaq];
10  }