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)
 
constexpr static 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)
inlinestaticconstexpr

Definition at line 12 of file OAQuality.h.

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  }

References oa_calibrated, oa_fixed, and oa_unknown.

Referenced by BeautifulSoup.PageElement::insert().

◆ name()

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

Definition at line 7 of file OAQuality.h.

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

References c.

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

oa_unknown
Definition: OAQuality.h:4
oa_fixed
Definition: OAQuality.h:4
oa_calibrated
Definition: OAQuality.h:4
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56