46 produces<FEDRawDataCollection>();
52 auto producedData = std::make_unique<FEDRawDataCollection>();
57 std::vector<int> selFEDs;
103 selFEDs.push_back(
i);
109 selFEDs.push_back(
i);
115 selFEDs.push_back(
i);
118 selFEDs.push_back(
i);
121 selFEDs.push_back(
i);
124 selFEDs.push_back(
i);
127 selFEDs.push_back(
i);
131 selFEDs.push_back(
i);
135 selFEDs.push_back(
i);
139 selFEDs.push_back(
i);
143 selFEDs.push_back(
i);
147 selFEDs.push_back(
i);
150 selFEDs.push_back(
i);
154 selFEDs.push_back(
i);
157 selFEDs.push_back(
i);
160 selFEDs.push_back(
i);
165 selFEDs.push_back(
i);
175 bool rightFED =
false;
176 for (uint32_t
k = 0;
k < selFEDs.size();
k++) {
177 if (
j == selFEDs[
k]) {
188 FEDRawData& fedDataProd = producedData->FEDData(
j);
189 if (fedDataProd.
size() != 0) {
195 unsigned char* dataProd = fedDataProd.
data();
196 const unsigned char*
data = fedData.
data();
197 for (
unsigned int k = 0;
k <
size; ++
k) {
198 dataProd[
k] = data[
k];
209 desc.
add<
bool>(
"getSiPixel",
true);
210 desc.
add<
bool>(
"getHCAL",
true);
211 desc.
add<
bool>(
"getECAL",
false);
212 desc.
add<
bool>(
"getMuon",
false);
213 desc.
add<
bool>(
"getTrigger",
true);
214 desc.
add<
bool>(
"getSiStrip",
false);
215 descriptions.
add(
"subdetFED", desc);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
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)
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
SubdetFEDSelector(const edm::ParameterSet &)
~SubdetFEDSelector() override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
T getParameter(std::string const &) const
edm::EDGetTokenT< FEDRawDataCollection > tok_raw_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
char data[epos_bytes_allocation]
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
tuple size
Write out results.