14 produces<FEDRawDataCollection>();
20 auto producedData = std::make_unique<FEDRawDataCollection>();
25 std::vector<int> selFEDs;
103 selFEDs.push_back(
i);
107 selFEDs.push_back(
i);
111 selFEDs.push_back(
i);
115 selFEDs.push_back(
i);
118 selFEDs.push_back(
i);
122 selFEDs.push_back(
i);
125 selFEDs.push_back(
i);
128 selFEDs.push_back(
i);
133 selFEDs.push_back(
i);
143 bool rightFED =
false;
144 for (uint32_t
k = 0;
k < selFEDs.size();
k++) {
145 if (j == selFEDs[
k]) {
156 FEDRawData& fedDataProd = producedData->FEDData(j);
157 if (fedDataProd.
size() != 0) {
163 unsigned char* dataProd = fedDataProd.
data();
164 const unsigned char*
data = fedData.
data();
165 for (
unsigned int k = 0;
k <
size; ++
k) {
166 dataProd[
k] = data[
k];
T getParameter(std::string const &) const
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
void resize(size_t newsize)
SubdetFEDSelector(const edm::ParameterSet &)
~SubdetFEDSelector() override
edm::EDGetTokenT< FEDRawDataCollection > tok_raw_
char data[epos_bytes_allocation]
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
void produce(edm::Event &, const edm::EventSetup &) override