#include <RawDataCollectorByLabel.h>
Definition at line 14 of file RawDataCollectorByLabel.h.
◆ tag_iterator_t
◆ tok_iterator_t
◆ RawDataCollectorByLabel()
◆ ~RawDataCollectorByLabel()
RawDataCollectorByLabel::~RawDataCollectorByLabel |
( |
| ) |
|
|
override |
◆ produce()
Get Data from all FEDs
Definition at line 36 of file RawDataCollectorByLabel.cc.
References gather_cfg::cout, FEDRawData::data(), data, MillePedeFileConverter_cfg::e, FEDRawDataCollection::FEDData(), mps_fire::i, input, dqmiolumiharvest::j, dqmdumpme::k, FEDNumbering::MAXFEDID, eostools::move(), l1tstage2_dqm_sourceclient-live_cfg::rawData, FEDRawData::resize(), and FEDRawData::size().
38 std::vector<Handle<FEDRawDataCollection> >
rawData;
42 if (
e.getByToken(*inputTok,
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) {
std::vector< edm::EDGetTokenT< FEDRawDataCollection > >::const_iterator tok_iterator_t
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, size_t wordsize=8)
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_
◆ inputTags_
◆ inputTokens_
◆ verbose_
int RawDataCollectorByLabel::verbose_ |
|
private |