CaenChannel

Item

PixelDCSObject

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
#ifndef CondFormats_SiPixelObjects_PixelDCSObject_h
#define CondFormats_SiPixelObjects_PixelDCSObject_h

/** \class PixelDCSObject
 *
 *  Template struct for Pixel DCS object.
 *
 *  Value type is specified by the template parameter Type.
 *  Define a new struct for non-POD value type.
 *
 *  $Date: 2008/11/30 19:41:08 $
 *  $Revision: 1.2 $
 *  \author Chung Khim Lae
 */

#include "CondFormats/Serialization/interface/Serializable.h"

#include <string>
#include <vector>

template <class T>
struct PixelDCSObject {
  typedef T Type;

  struct Item {
    std::string name;  // name of detector element

    Type value;

    COND_SERIALIZABLE;
  };

  std::vector<Item> items;

  COND_SERIALIZABLE;
};

struct CaenChannel {
  bool isOn;   // true if channel is on
  float iMon;  // current value
  float vMon;  // voltage value

  COND_SERIALIZABLE;
};

#endif