CMS 3D CMS Logo

Static Public Member Functions

OAQualityTranslator Struct Reference

#include <OAQuality.h>

List of all members.

Static Public Member Functions

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

Detailed Description

Definition at line 6 of file OAQuality.h.


Member Function Documentation

static const OAQuality OAQualityTranslator::index ( const int &  ind) [inline, static]

Definition at line 18 of file OAQuality.h.

References oa_calibrated, oa_fixed, and oa_unknown.

                                                 {
    switch (ind) {
    case 0:
      return oa_fixed;
      break;
    case 1:
      return oa_calibrated;
      break;
    case 2:
      return oa_unknown;
      break;
    default:
      return oa_unknown;
      break;
    }
  }
static const char* OAQualityTranslator::name ( OAQuality  oaq) [inline, static]

Definition at line 8 of file OAQuality.h.

References trackerHits::c.

  {
    static const char* c[] = { 
      "fixed",
      "calibrated",
      "unknown"   
    };
    return c[oaq];                        
  }