15 produces<FEDRawDataCollection>();
27 auto producedData = std::make_unique<FEDRawDataCollection>();
32 std::vector<int> selFEDs;
105 selFEDs.push_back(
i);
113 selFEDs.push_back(
i);
117 selFEDs.push_back(
i);
121 selFEDs.push_back(
i);
125 selFEDs.push_back(
i);
129 selFEDs.push_back(
i);
134 selFEDs.push_back(
i);
139 selFEDs.push_back(
i);
144 selFEDs.push_back(
i);
149 selFEDs.push_back(
i);
154 selFEDs.push_back(
i);
158 selFEDs.push_back(
i);
163 selFEDs.push_back(
i);
167 selFEDs.push_back(
i);
171 selFEDs.push_back(
i);
178 selFEDs.push_back(
i);
191 for (uint32_t
k=0;
k<selFEDs.size();
k++)
198 if (!rightFED)
continue;
205 FEDRawData & fedDataProd = producedData->FEDData(j);
206 if ( fedDataProd.
size() != 0 ) {
212 unsigned char *dataProd=fedDataProd.
data();
213 const unsigned char *
data=fedData.
data();
214 for (
unsigned int k=0;
k<
size; ++
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