Unpacks "SlowData" packages used for SiPM calibration and other purposes in HCAL Local DAQ. More...
#include <HcalTBSlowDataUnpacker.h>
Public Member Functions | |
HcalTBSlowDataUnpacker (void) | |
void | unpack (const FEDRawData &raw, HcalTBRunData &htbrd, HcalTBEventPosition &htbep) const |
void | unpackMaps (const FEDRawData &raw, std::map< std::string, std::string > &strings, std::map< std::string, double > &numerics) const |
Static Public Attributes | |
static const int | SIPM_CAL_FED_ID = 11 |
static const int | STANDARD_FED_ID = 3 |
Unpacks "SlowData" packages used for SiPM calibration and other purposes in HCAL Local DAQ.
To use this code in an analysis module, you need only:
analyze(const edm::Event& iEvent, const edm::EventSetup&) {
edm::Handle<edm::FEDRawDataCollection> rawraw;
iEvent.getByType(rawraw);
hcaltb::HcalTBSlowDataUnpacker sdp; std::map<std::string,std::string> strings; std::map<std::string,double> numerics; if regular slow data sdp.unpackMaps(rawraw->FEDData(hcaltb::HcalTBSlowDataUnpacker::STANDARD_FED_ID),strings,numerics); if SiPM Cal slow data (different 'FED') sdp.unpackMaps(rawraw->FEDData(hcaltb::HcalTBSlowDataUnpacker::SIPM_CAL_FED_ID),strings,numerics);
Definition at line 31 of file HcalTBSlowDataUnpacker.h.
|
inline |
Definition at line 33 of file HcalTBSlowDataUnpacker.h.
void hcaltb::HcalTBSlowDataUnpacker::unpack | ( | const FEDRawData & | raw, |
HcalTBRunData & | htbrd, | ||
HcalTBEventPosition & | htbep | ||
) | const |
Definition at line 74 of file HcalTBSlowDataUnpacker.cc.
References HcalTBEventPosition::setHBHEtableCoords(), HcalTBEventPosition::setHFtableCoords(), and HcalTBRunData::setRunData().
Referenced by HcalTBObjectUnpacker::produce().
void hcaltb::HcalTBSlowDataUnpacker::unpackMaps | ( | const FEDRawData & | raw, |
std::map< std::string, std::string > & | strings, | ||
std::map< std::string, double > & | numerics | ||
) | const |
Definition at line 28 of file HcalTBSlowDataUnpacker.cc.
References gather_cfg::cout, FEDRawData::data(), Exception, mps_fire::i, xdaqSlowDataFormat::key_length, xdaqSlowDataFormat::n_doubles, xdaqSlowDataFormat::n_strings, FEDRawData::size(), xdaqSlowDataFormat::start_of_data, xdaqSlowDataFormat::string_value_length, and nano_cff::strings.
|
static |
Definition at line 42 of file HcalTBSlowDataUnpacker.h.
|
static |
Definition at line 41 of file HcalTBSlowDataUnpacker.h.