37 : getEcal_(iConfig.getParameter<
bool>(
"getECAL")),
38 getHcal_(iConfig.getParameter<
bool>(
"getHCAL")),
39 getStrip_(iConfig.getParameter<
bool>(
"getSiStrip")),
40 getPixel_(iConfig.getParameter<
bool>(
"getSiPixel")),
41 getMuon_(iConfig.getParameter<
bool>(
"getMuon")),
42 getTrigger_(iConfig.getParameter<
bool>(
"getTrigger")),
44 produces<FEDRawDataCollection>();
50 auto producedData = std::make_unique<FEDRawDataCollection>();
54 std::vector<int> selFEDs;
100 selFEDs.push_back(
i);
106 selFEDs.push_back(
i);
112 selFEDs.push_back(
i);
115 selFEDs.push_back(
i);
118 selFEDs.push_back(
i);
121 selFEDs.push_back(
i);
124 selFEDs.push_back(
i);
128 selFEDs.push_back(
i);
132 selFEDs.push_back(
i);
136 selFEDs.push_back(
i);
140 selFEDs.push_back(
i);
144 selFEDs.push_back(
i);
147 selFEDs.push_back(
i);
151 selFEDs.push_back(
i);
154 selFEDs.push_back(
i);
157 selFEDs.push_back(
i);
162 selFEDs.push_back(
i);
172 bool rightFED =
false;
173 for (uint32_t
k = 0;
k < selFEDs.size();
k++) {
174 if (
j == selFEDs[
k]) {
185 FEDRawData& fedDataProd = producedData->FEDData(
j);
186 if (fedDataProd.
size() != 0) {
192 unsigned char* dataProd = fedDataProd.
data();
193 const unsigned char*
data = fedData.
data();
194 for (
unsigned int k = 0;
k <
size; ++
k) {
206 desc.add<
bool>(
"getSiPixel",
true);
207 desc.add<
bool>(
"getHCAL",
true);
208 desc.add<
bool>(
"getECAL",
false);
209 desc.add<
bool>(
"getMuon",
false);
210 desc.add<
bool>(
"getTrigger",
true);
211 desc.add<
bool>(
"getSiStrip",
false);
212 descriptions.
add(
"subdetFED",
desc);
#define DEFINE_FWK_MODULE(type)
size_t size() const
Lenght of the data buffer in bytes.
void resize(size_t newsize)
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
SubdetFEDSelector(const edm::ParameterSet &)
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
~SubdetFEDSelector() override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const 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.