13 uint32_t cdfHeader[4];
28 void HcalTBSlowDataUnpacker::unpackMaps(
const FEDRawData &raw,
29 std::map<std::string, std::string> &strings,
30 std::map<std::string, double> &numerics)
const {
31 if (raw.
size() < 3 * 8) {
32 throw cms::Exception(
"Missing Data") <<
"No data in the slow data block";
52 cout << keyptr <<
" = " << *valptr << endl;
54 numerics[keyptr] = *valptr;
61 keyptr = (
const char *)valptr;
66 cout << keyptr <<
" = " << strptr << endl;
68 strings[keyptr] = strptr;
75 map<string, double> sd_dblmap;
76 map<string, string> sd_strmap;
78 unpackMaps(raw, sd_strmap, sd_dblmap);
81 htbrd.
setRunData(sd_strmap[
"RunType"].c_str(), sd_strmap[
"Beam.Mode"].c_str(), sd_dblmap[
"Beam.Energy"]);
83 htbep.
setHFtableCoords(sd_dblmap[
"HFTable.X"], sd_dblmap[
"HFTable.Y"], sd_dblmap[
"HFTable.V"]);
std::pair< unsigned int, unsigned int > unpack(cond::Time_t since)
void setRunData(const char *run_type, const char *beam_mode, double beam_energy_gev)
size_t size() const
Lenght of the data buffer in bytes.
void setHBHEtableCoords(double eta, double phi)
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
void setHFtableCoords(double x, double y, double v)