1 #ifndef CondTools_SiPixel_PixelPopConDCSSourceHandler_h 2 #define CondTools_SiPixel_PixelPopConDCSSourceHandler_h 15 #include "CoralBase/Attribute.h" 16 #include "CoralBase/AttributeList.h" 17 #include "RelationalAccess/ICursor.h" 21 #include "CondTools/SiPixel/interface/PixelDCSBase.h" 57 const size_t nTable = row.size() - 1;
62 <<
"Found " << nTable <<
" last value tables instead of 1. " 63 <<
"Check your cfg.\n";
66 value = row[0].data<
float>();
72 const size_t nTable = row.size() - 1;
77 <<
"CaenChannel has 3 values (isOn, iMon, vMon) " 78 <<
"but your cfg has " << nTable <<
" last value tables.\n";
81 value.
isOn = row[0].data<
float>();
82 value.
iMon = row[1].data<
float>();
83 value.
vMon = row[2].data<
float>();
91 while ( cursor.next() )
93 const coral::AttributeList& row = cursor.currentRow();
99 data->
items.push_back(datum);
105 template <
class Type>
111 template <
class Type>
117 name +=
"SourceHandler";
std::vector< Item > items
virtual void fillObject(coral::ICursor &)
Fill object from all rows in DB.
def getData(doc, options, dataset, site)
OldContainer m_to_transfer
virtual void getNewObjects()
Get data from DB by calling PixelDCSBase::getData().
virtual std::string id() const
Name of this source handler.
PixelPopConDCSSourceHandler(const edm::ParameterSet &)
Init PixelDCSBase from cfg file.
static void setValue(Type &value, const coral::AttributeList &)
Specialise this template to assign values to a non-POD object type from a row in DB.
char data[epos_bytes_allocation]