Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:31

0001 #ifndef CondFormats_SiPixelObjects_PixelDCSObject_h
0002 #define CondFormats_SiPixelObjects_PixelDCSObject_h
0003 
0004 /** \class PixelDCSObject
0005  *
0006  *  Template struct for Pixel DCS object.
0007  *
0008  *  Value type is specified by the template parameter Type.
0009  *  Define a new struct for non-POD value type.
0010  *
0011  *  $Date: 2008/11/30 19:41:08 $
0012  *  $Revision: 1.2 $
0013  *  \author Chung Khim Lae
0014  */
0015 
0016 #include "CondFormats/Serialization/interface/Serializable.h"
0017 
0018 #include <string>
0019 #include <vector>
0020 
0021 template <class T>
0022 struct PixelDCSObject {
0023   typedef T Type;
0024 
0025   struct Item {
0026     std::string name;  // name of detector element
0027 
0028     Type value;
0029 
0030     COND_SERIALIZABLE;
0031   };
0032 
0033   std::vector<Item> items;
0034 
0035   COND_SERIALIZABLE;
0036 };
0037 
0038 struct CaenChannel {
0039   bool isOn;   // true if channel is on
0040   float iMon;  // current value
0041   float vMon;  // voltage value
0042 
0043   COND_SERIALIZABLE;
0044 };
0045 
0046 #endif