13 uint32_t cdfHeader[4];
28 void HcalTBSlowDataUnpacker::unpackMaps(
const FEDRawData& raw, std::map<std::string,std::string>& strings, std::map<std::string,double>& numerics)
const {
31 throw cms::Exception(
"Missing Data") <<
"No data in the slow data block";
47 const double *valptr =
52 cout << keyptr <<
" = " << *valptr << endl;
54 numerics[keyptr] = *valptr;
61 keyptr = (
const char *)valptr;
66 cout << keyptr <<
" = " << strptr << endl;
68 strings[keyptr] = strptr;
78 map<string,double> sd_dblmap;
79 map<string,string> sd_strmap;
81 unpackMaps(raw,sd_strmap,sd_dblmap);
85 sd_strmap[
"Beam.Mode"].c_str(),
86 sd_dblmap[
"Beam.Energy"]);
89 sd_dblmap[
"HFTable.Y"],
90 sd_dblmap[
"HFTable.V"]);
93 sd_dblmap[
"Table.Phi"]);
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)