Go to the documentation of this file.
35 produces<FEDRawDataCollection>();
41 auto producedData = std::make_unique<FEDRawDataCollection>();
46 std::vector<int> selFEDs;
52 if (fedData.
size() < 24)
58 if (calibType !=
value)
59 edm::LogWarning(
"HcalCalibFEDSelector") <<
"Conflicting calibration types found: " << calibType <<
" vs. "
60 <<
value <<
". Staying with " << calibType;
67 bool duplicate =
false;
68 for (
unsigned int j = 0;
j < selFEDs.size();
j++) {
82 bool rightFED =
false;
83 for (uint32_t
k = 0;
k < selFEDs.size();
k++) {
84 if (
j == selFEDs[
k]) {
96 if (fedDataProd.
size() != 0) {
100 unsigned char* dataProd = fedDataProd.
data();
101 const unsigned char*
data = fedData.
data();
std::vector< int > extraFEDs_
T const * product() const
static constexpr int lastFEDId()
Log< level::Warning, false > LogWarning
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
#define DEFINE_FWK_MODULE(type)
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
HcalCalibFEDSelector(const edm::ParameterSet &)
size_t size() const
Lenght of the data buffer in bytes.
~HcalCalibFEDSelector() override
void produce(edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< FEDRawDataCollection > tok_fed_
void resize(size_t newsize)
T getParameter(std::string const &) const
char data[epos_bytes_allocation]
std::vector< int > getListOfFEDs()