32 produces<FEDRawDataCollection>();
36 auto producedData = std::make_unique<FEDRawDataCollection>();
41 std::vector<int> selFEDs;
47 if (fedData.
size() < 24)
53 if (calibType !=
value)
54 edm::LogWarning(
"HcalCalibFEDSelector") <<
"Conflicting calibration types found: " << calibType <<
" vs. " 55 <<
value <<
". Staying with " << calibType;
62 bool duplicate =
false;
63 for (
unsigned int j = 0;
j < selFEDs.size();
j++) {
77 bool rightFED =
false;
78 for (uint32_t
k = 0;
k < selFEDs.size();
k++) {
79 if (
j == selFEDs[
k]) {
91 if (fedDataProd.
size() != 0) {
95 unsigned char* dataProd = fedDataProd.
data();
96 const unsigned char*
data = fedData.
data();
T getParameter(std::string const &) const
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
size_t size() const
Lenght of the data buffer in bytes.
HcalCalibFEDSelector(const edm::ParameterSet &)
std::vector< int > extraFEDs_
void resize(size_t newsize)
edm::EDGetTokenT< FEDRawDataCollection > tok_fed_
#define DEFINE_FWK_MODULE(type)
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
char data[epos_bytes_allocation]
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
Log< level::Warning, false > LogWarning
static constexpr int lastFEDId()
std::vector< int > getListOfFEDs()