Definition at line 13 of file ESRawToDigi.h.
Definition at line 46 of file ESRawToDigi.cc.
References gather_cfg::cout, dataToken_, debug_, ESdigiCollection_, ESUnpacker_, FEDRawDataCollection::FEDData(), l1tstage2_dqm_sourceclient-live_cfg::fedId, l1t_dqm_sourceclient-live_cfg::fedRawData, fedsToken_, edm::Event::getByToken(), ESListOfFEDS::GetList(), mps_fire::i, ESUnpacker::interpretRawData(), edm::HandleBase::isValid(), LogDebug, FEDNumbering::MAXPreShowerFEDID, FEDNumbering::MINPreShowerFEDID, eostools::move(), edm::Event::put(), regional_, and FEDRawData::size().
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
51 LogDebug(
"") <<
"ESRawToDigi : Error! can't get rawdata!" << std::endl;
54 std::vector<int> esFeds_to_unpack;
58 esFeds_to_unpack = fedslist->
GetList();
62 auto productDCC = std::make_unique<ESRawDataCollection>();
63 auto productKCHIP = std::make_unique<ESLocalRawDataCollection>();
64 auto productDigis = std::make_unique<ESDigiCollection>();
69 for (
unsigned int i = 0;
i < esFeds_to_unpack.size(); ++
i) {
74 std::cout <<
"FED : " << esFeds_to_unpack[
i] <<
" Data size : " << fedRawData.
size() <<
" (Bytes)" << std::endl;
82 std::cout <<
"FED : " <<
fedId <<
" Data size : " << fedRawData.
size() <<
" (Bytes)" << std::endl;
edm::EDGetTokenT< FEDRawDataCollection > dataToken_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
size_t size() const
Lenght of the data buffer in bytes.
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
std::vector< int > GetList() const
std::string ESdigiCollection_
void interpretRawData(int fedId, const FEDRawData &rawData, ESRawDataCollection &dccs, ESLocalRawDataCollection &kchips, ESDigiCollection &digis)
edm::EDGetTokenT< ESListOfFEDS > fedsToken_