38 : getEcal_(iConfig.getParameter<
bool>(
"getECAL")),
39 getHcal_(iConfig.getParameter<
bool>(
"getHCAL")),
40 getStrip_(iConfig.getParameter<
bool>(
"getSiStrip")),
41 getPixel_(iConfig.getParameter<
bool>(
"getSiPixel")),
42 getMuon_(iConfig.getParameter<
bool>(
"getMuon")),
43 getTrigger_(iConfig.getParameter<
bool>(
"getTrigger")),
45 produces<FEDRawDataCollection>();
51 auto producedData = std::make_unique<FEDRawDataCollection>();
55 std::vector<int> selFEDs;
101 selFEDs.push_back(
i);
107 selFEDs.push_back(
i);
113 selFEDs.push_back(
i);
116 selFEDs.push_back(
i);
119 selFEDs.push_back(
i);
122 selFEDs.push_back(
i);
125 selFEDs.push_back(
i);
129 selFEDs.push_back(
i);
133 selFEDs.push_back(
i);
137 selFEDs.push_back(
i);
141 selFEDs.push_back(
i);
145 selFEDs.push_back(
i);
148 selFEDs.push_back(
i);
152 selFEDs.push_back(
i);
155 selFEDs.push_back(
i);
158 selFEDs.push_back(
i);
163 selFEDs.push_back(
i);
173 bool rightFED =
false;
174 for (uint32_t
k = 0;
k < selFEDs.size();
k++) {
175 if (
j == selFEDs[
k]) {
186 FEDRawData& fedDataProd = producedData->FEDData(
j);
187 if (fedDataProd.
size() != 0) {
188 edm::LogVerbatim(
"HcalCalib") <<
" More than one FEDRawDataCollection with data in FED " <<
j 189 <<
" Skipping the 2nd";
193 unsigned char* dataProd = fedDataProd.
data();
194 const unsigned char*
data = fedData.
data();
195 for (
unsigned int k = 0;
k <
size; ++
k) {
207 desc.add<
bool>(
"getSiPixel",
true);
208 desc.add<
bool>(
"getHCAL",
true);
209 desc.add<
bool>(
"getECAL",
false);
210 desc.add<
bool>(
"getMuon",
false);
211 desc.add<
bool>(
"getTrigger",
true);
212 desc.add<
bool>(
"getSiStrip",
false);
213 descriptions.
add(
"subdetFED",
desc);
Log< level::Info, true > LogVerbatim
size_t size() const
Lenght of the data buffer in bytes.
void resize(size_t newsize)
#define DEFINE_FWK_MODULE(type)
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.