CMS 3D CMS Logo

Classes | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Static Private Attributes

EcalDQMStatusDictionary Class Reference

#include <EcalDQMStatusDictionary.h>

List of all members.

Classes

struct  codeDef

Static Public Member Functions

static void getCodes (std::vector< codeDef > &codeVec, uint32_t code)
static void getDictionary (std::vector< codeDef > &dict)

Private Member Functions

 EcalDQMStatusDictionary ()
 ~EcalDQMStatusDictionary ()

Static Private Member Functions

static codeDef getDef (unsigned int i)

Static Private Attributes

static const unsigned int DICTSIZE1 = 30
static const unsigned int DICTSIZE2 = 7

Detailed Description

Definition at line 18 of file EcalDQMStatusDictionary.h.


Constructor & Destructor Documentation

EcalDQMStatusDictionary::EcalDQMStatusDictionary ( ) [inline, private]

Definition at line 43 of file EcalDQMStatusDictionary.h.

{}; // Hidden to force static use
EcalDQMStatusDictionary::~EcalDQMStatusDictionary ( ) [inline, private]

Definition at line 44 of file EcalDQMStatusDictionary.h.

{}; // Hidden to force static use

Member Function Documentation

static void EcalDQMStatusDictionary::getCodes ( std::vector< codeDef > &  codeVec,
uint32_t  code 
) [inline, static]

Definition at line 32 of file EcalDQMStatusDictionary.h.

References DICTSIZE1, DICTSIZE2, getDef(), and i.

Referenced by EcalDQMStatusReader::beginRun().

                                                                   {
      codeVec.clear();
      for (unsigned int i=0; i<DICTSIZE1+DICTSIZE2; i++) {
        if (code & getDef(i).code) {
          codeVec.push_back(getDef(i));
      }
    }
  }
static codeDef EcalDQMStatusDictionary::getDef ( unsigned int  i) [inline, static, private]

Definition at line 49 of file EcalDQMStatusDictionary.h.

References EcalDQMStatusHelper::CH_GAIN_SWITCH_ERROR, EcalDQMStatusHelper::CH_GAIN_ZERO_ERROR, EcalDQMStatusHelper::CH_ID_ERROR, DICTSIZE1, DICTSIZE2, i, EcalDQMStatusHelper::LASER_MEAN_ERROR, EcalDQMStatusHelper::LASER_RMS_ERROR, EcalDQMStatusHelper::LASER_TIMING_MEAN_ERROR, EcalDQMStatusHelper::LASER_TIMING_RMS_ERROR, EcalDQMStatusHelper::LED_MEAN_ERROR, EcalDQMStatusHelper::LED_RMS_ERROR, EcalDQMStatusHelper::LED_TIMING_MEAN_ERROR, EcalDQMStatusHelper::LED_TIMING_RMS_ERROR, EcalDQMStatusHelper::PEDESTAL_HIGH_GAIN_MEAN_ERROR, EcalDQMStatusHelper::PEDESTAL_HIGH_GAIN_RMS_ERROR, EcalDQMStatusHelper::PEDESTAL_LOW_GAIN_MEAN_ERROR, EcalDQMStatusHelper::PEDESTAL_LOW_GAIN_RMS_ERROR, EcalDQMStatusHelper::PEDESTAL_MIDDLE_GAIN_MEAN_ERROR, EcalDQMStatusHelper::PEDESTAL_MIDDLE_GAIN_RMS_ERROR, EcalDQMStatusHelper::PEDESTAL_ONLINE_HIGH_GAIN_MEAN_ERROR, EcalDQMStatusHelper::PEDESTAL_ONLINE_HIGH_GAIN_RMS_ERROR, EcalDQMStatusHelper::PHYSICS_BAD_CHANNEL_ERROR, EcalDQMStatusHelper::PHYSICS_BAD_CHANNEL_WARNING, EcalDQMStatusHelper::STATUS_FLAG_ERROR, EcalDQMStatusHelper::TESTPULSE_HIGH_GAIN_MEAN_ERROR, EcalDQMStatusHelper::TESTPULSE_HIGH_GAIN_RMS_ERROR, EcalDQMStatusHelper::TESTPULSE_LOW_GAIN_MEAN_ERROR, EcalDQMStatusHelper::TESTPULSE_LOW_GAIN_RMS_ERROR, EcalDQMStatusHelper::TESTPULSE_MIDDLE_GAIN_MEAN_ERROR, EcalDQMStatusHelper::TESTPULSE_MIDDLE_GAIN_RMS_ERROR, EcalDQMStatusHelper::TT_ID_ERROR, and EcalDQMStatusHelper::TT_SIZE_ERROR.

Referenced by getCodes(), and getDictionary().

                                        {
    const static codeDef DICT[DICTSIZE1+DICTSIZE2] =
      {

        // single status codes

        { ((uint32_t) 1 << EcalDQMStatusHelper::CH_ID_ERROR), "CH_ID_ERROR" },
        { ((uint32_t) 1 << EcalDQMStatusHelper::CH_GAIN_ZERO_ERROR), "CH_GAIN_ZERO_ERROR" },
        { ((uint32_t) 1 << EcalDQMStatusHelper::CH_GAIN_SWITCH_ERROR), "CH_GAIN_SWITCH_ERROR" },
        { ((uint32_t) 1 << EcalDQMStatusHelper::TT_ID_ERROR), "TT_ID_ERROR"},
        { ((uint32_t) 1 << EcalDQMStatusHelper::TT_SIZE_ERROR), "TT_SIZE_ERROR"},

        { ((uint32_t) 1 << EcalDQMStatusHelper::PEDESTAL_LOW_GAIN_MEAN_ERROR), "PEDESTAL_LOW_GAIN_MEAN_ERROR"},
        { ((uint32_t) 1 << EcalDQMStatusHelper::PEDESTAL_MIDDLE_GAIN_MEAN_ERROR), "PEDESTAL_MIDDLE_GAIN_MEAN_ERROR"},
        { ((uint32_t) 1 << EcalDQMStatusHelper::PEDESTAL_HIGH_GAIN_MEAN_ERROR), "PEDESTAL_HIGH_GAIN_MEAN_ERROR"},
        { ((uint32_t) 1 << EcalDQMStatusHelper::PEDESTAL_LOW_GAIN_RMS_ERROR), "PEDESTAL_LOW_GAIN_RMS_ERROR"},
        { ((uint32_t) 1 << EcalDQMStatusHelper::PEDESTAL_MIDDLE_GAIN_RMS_ERROR), "PEDESTAL_MIDDLE_GAIN_RMS_ERROR"},
        { ((uint32_t) 1 << EcalDQMStatusHelper::PEDESTAL_HIGH_GAIN_RMS_ERROR), "PEDESTAL_HIGH_GAIN_RMS_ERROR"},

        { ((uint32_t) 1 << EcalDQMStatusHelper::PEDESTAL_ONLINE_HIGH_GAIN_MEAN_ERROR), "PEDESTAL_ONLINE_HIGH_GAIN_MEAN_ERROR"},
        { ((uint32_t) 1 << EcalDQMStatusHelper::PEDESTAL_ONLINE_HIGH_GAIN_RMS_ERROR), "PEDESTAL_ONLINE_HIGH_GAIN_RMS_ERROR"},

        { ((uint32_t) 1 << EcalDQMStatusHelper::TESTPULSE_LOW_GAIN_MEAN_ERROR), "TESTPULSE_LOW_GAIN_MEAN_ERROR"},
        { ((uint32_t) 1 << EcalDQMStatusHelper::TESTPULSE_MIDDLE_GAIN_MEAN_ERROR), "TESTPULSE_MIDDLE_GAIN_MEAN_ERROR"},
        { ((uint32_t) 1 << EcalDQMStatusHelper::TESTPULSE_HIGH_GAIN_MEAN_ERROR), "TESTPULSE_HIGH_GAIN_MEAN_ERROR"},
        { ((uint32_t) 1 << EcalDQMStatusHelper::TESTPULSE_LOW_GAIN_RMS_ERROR), "TESTPULSE_LOW_GAIN_RMS_ERROR"},
        { ((uint32_t) 1 << EcalDQMStatusHelper::TESTPULSE_MIDDLE_GAIN_RMS_ERROR), "TESTPULSE_MIDDLE_GAIN_RMS_ERROR"},
        { ((uint32_t) 1 << EcalDQMStatusHelper::TESTPULSE_HIGH_GAIN_RMS_ERROR), "TESTPULSE_HIGH_GAIN_RMS_ERROR"},

        { ((uint32_t) 1 << EcalDQMStatusHelper::LASER_MEAN_ERROR), "LASER_MEAN_ERROR"},
        { ((uint32_t) 1 << EcalDQMStatusHelper::LASER_RMS_ERROR), "LASER_RMS_ERROR"},
        { ((uint32_t) 1 << EcalDQMStatusHelper::LASER_TIMING_MEAN_ERROR), "LASER_TIMING_MEAN_ERROR"},
        { ((uint32_t) 1 << EcalDQMStatusHelper::LASER_TIMING_RMS_ERROR), "LASER_TIMING_RMS_ERROR"},

        { ((uint32_t) 1 << EcalDQMStatusHelper::LED_MEAN_ERROR), "LED_MEAN_ERROR"},
        { ((uint32_t) 1 << EcalDQMStatusHelper::LED_RMS_ERROR), "LED_RMS_ERROR"},
        { ((uint32_t) 1 << EcalDQMStatusHelper::LED_TIMING_MEAN_ERROR), "LED_TIMING_MEAN_ERROR"},
        { ((uint32_t) 1 << EcalDQMStatusHelper::LED_TIMING_RMS_ERROR), "LED_TIMING_RMS_ERROR"},

        { ((uint32_t) 1 << EcalDQMStatusHelper::STATUS_FLAG_ERROR), "STATUS_FLAG_ERROR"},

        { ((uint32_t) 1 << EcalDQMStatusHelper::PHYSICS_BAD_CHANNEL_WARNING), "PHYSICS_BAD_CHANNEL_WARNING"},
        { ((uint32_t) 1 << EcalDQMStatusHelper::PHYSICS_BAD_CHANNEL_ERROR), "PHYSICS_BAD_CHANNEL_ERROR"},

        // combined status codes

        { ((uint32_t) 1 << EcalDQMStatusHelper::TT_SIZE_ERROR |
                      1 << EcalDQMStatusHelper::PEDESTAL_LOW_GAIN_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::PEDESTAL_MIDDLE_GAIN_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::PEDESTAL_HIGH_GAIN_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::PEDESTAL_ONLINE_HIGH_GAIN_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::TESTPULSE_LOW_GAIN_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::TESTPULSE_MIDDLE_GAIN_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::TESTPULSE_HIGH_GAIN_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::LASER_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::LED_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::PHYSICS_BAD_CHANNEL_WARNING |
                      1 << EcalDQMStatusHelper::PHYSICS_BAD_CHANNEL_ERROR), "disabled_channel"},

        { ((uint32_t) 1 << EcalDQMStatusHelper::PEDESTAL_LOW_GAIN_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::PEDESTAL_LOW_GAIN_RMS_ERROR |
                      1 << EcalDQMStatusHelper::PEDESTAL_MIDDLE_GAIN_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::PEDESTAL_MIDDLE_GAIN_RMS_ERROR |
                      1 << EcalDQMStatusHelper::PEDESTAL_HIGH_GAIN_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::PEDESTAL_HIGH_GAIN_RMS_ERROR |
                      1 << EcalDQMStatusHelper::PEDESTAL_ONLINE_HIGH_GAIN_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::PEDESTAL_ONLINE_HIGH_GAIN_RMS_ERROR |
                      1 << EcalDQMStatusHelper::TESTPULSE_LOW_GAIN_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::TESTPULSE_LOW_GAIN_RMS_ERROR |
                      1 << EcalDQMStatusHelper::TESTPULSE_MIDDLE_GAIN_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::TESTPULSE_MIDDLE_GAIN_RMS_ERROR |
                      1 << EcalDQMStatusHelper::TESTPULSE_HIGH_GAIN_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::TESTPULSE_HIGH_GAIN_RMS_ERROR |
                      1 << EcalDQMStatusHelper::LASER_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::LASER_RMS_ERROR |
                      1 << EcalDQMStatusHelper::LASER_TIMING_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::LASER_TIMING_RMS_ERROR |
                      1 << EcalDQMStatusHelper::LED_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::LED_RMS_ERROR |
                      1 << EcalDQMStatusHelper::LED_TIMING_MEAN_ERROR | 
                      1 << EcalDQMStatusHelper::LED_TIMING_RMS_ERROR |
                      1 << EcalDQMStatusHelper::PHYSICS_BAD_CHANNEL_WARNING |
                      1 << EcalDQMStatusHelper::PHYSICS_BAD_CHANNEL_ERROR), "dead_channel"},

        { ((uint32_t) 1 << EcalDQMStatusHelper::PEDESTAL_LOW_GAIN_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::PEDESTAL_LOW_GAIN_RMS_ERROR |
                      1 << EcalDQMStatusHelper::PEDESTAL_MIDDLE_GAIN_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::PEDESTAL_MIDDLE_GAIN_RMS_ERROR |
                      1 << EcalDQMStatusHelper::PEDESTAL_HIGH_GAIN_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::PEDESTAL_HIGH_GAIN_RMS_ERROR |
                      1 << EcalDQMStatusHelper::PEDESTAL_ONLINE_HIGH_GAIN_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::PEDESTAL_ONLINE_HIGH_GAIN_RMS_ERROR), "pedestal_problem"},

        { ((uint32_t) 1 << EcalDQMStatusHelper::TESTPULSE_LOW_GAIN_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::TESTPULSE_LOW_GAIN_RMS_ERROR |
                      1 << EcalDQMStatusHelper::TESTPULSE_MIDDLE_GAIN_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::TESTPULSE_MIDDLE_GAIN_RMS_ERROR |
                      1 << EcalDQMStatusHelper::TESTPULSE_HIGH_GAIN_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::TESTPULSE_HIGH_GAIN_RMS_ERROR), "testpulse_problem"},

        { ((uint32_t) 1 << EcalDQMStatusHelper::LASER_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::LASER_RMS_ERROR |
                      1 << EcalDQMStatusHelper::LASER_TIMING_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::LASER_TIMING_RMS_ERROR), "laser_problem"},

        { ((uint32_t) 1 << EcalDQMStatusHelper::LED_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::LED_RMS_ERROR |
                      1 << EcalDQMStatusHelper::LED_TIMING_MEAN_ERROR |
                      1 << EcalDQMStatusHelper::LED_TIMING_RMS_ERROR), "led_problem"},

        { ((uint32_t) 1 << EcalDQMStatusHelper::PEDESTAL_LOW_GAIN_RMS_ERROR |
                      1 << EcalDQMStatusHelper::PEDESTAL_MIDDLE_GAIN_RMS_ERROR |
                      1 << EcalDQMStatusHelper::PEDESTAL_HIGH_GAIN_RMS_ERROR |
                      1 << EcalDQMStatusHelper::PEDESTAL_ONLINE_HIGH_GAIN_RMS_ERROR |
                      1 << EcalDQMStatusHelper::PHYSICS_BAD_CHANNEL_ERROR), "noise_problem"}

      };

    return DICT[i];
  }
static void EcalDQMStatusDictionary::getDictionary ( std::vector< codeDef > &  dict) [inline, static]

Member Data Documentation

const unsigned int EcalDQMStatusDictionary::DICTSIZE1 = 30 [static, private]

Definition at line 46 of file EcalDQMStatusDictionary.h.

Referenced by getCodes(), getDef(), and getDictionary().

const unsigned int EcalDQMStatusDictionary::DICTSIZE2 = 7 [static, private]

Definition at line 47 of file EcalDQMStatusDictionary.h.

Referenced by getCodes(), getDef(), and getDictionary().