Get Data from all FEDs
Definition at line 36 of file RawDataCollectorByLabel.cc.
References gather_cfg::cout, FEDRawData::data(), data, FEDRawDataCollection::FEDData(), edm::Event::getByToken(), mps_fire::i, input, dqmiolumiharvest::j, dqmdumpme::k, FEDNumbering::MAXFEDID, eostools::move(), edm::Event::put(), l1tstage2_dqm_sourceclient-live_cfg::rawData, FEDRawData::resize(), FEDRawData::size(), and findQualityFiles::size.
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
38 std::vector<Handle<FEDRawDataCollection> >
rawData;
43 rawData.push_back(input);
48 auto producedData = std::make_unique<FEDRawDataCollection>();
50 for (
unsigned int i = 0;
i < rawData.size(); ++
i) {
54 std::cout <<
"\nRAW collection #" <<
i + 1 << std::endl;
55 std::cout <<
"branch name = " << rawData[
i].provenance()->branchName() << std::endl;
56 std::cout <<
"process index = " << rawData[
i].provenance()->productID().processIndex() << std::endl;
66 std::cout <<
"Copying data from FED #" <<
j << std::endl;
68 if (fedDataProd.
size() != 0) {
70 std::cout <<
" More than one FEDRawDataCollection with data in FED ";
76 unsigned char *dataProd = fedDataProd.
data();
77 const unsigned char *
data = fedData.
data();
78 for (
unsigned int k = 0;
k <
size; ++
k) {
79 dataProd[
k] = data[
k];
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
std::vector< edm::EDGetTokenT< FEDRawDataCollection > >::const_iterator tok_iterator_t
bool getByToken(EDGetToken token, Handle< PROD > &result) const
size_t size() const
Lenght of the data buffer in bytes.
static std::string const input
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
void resize(size_t newsize)
char data[epos_bytes_allocation]
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
std::vector< edm::EDGetTokenT< FEDRawDataCollection > > inputTokens_