72 produces<FEDRawDataCollection>();
90 auto producedData = std::make_unique<FEDRawDataCollection>();
104 uint64_t* fedTrailer = pData + (length - 1);
105 bool crcError = (*fedTrailer >> 2) & 0
x1;
108 FEDRawData& fedDataProd = producedData->FEDData(*
i);
109 if (fedDataProd.
size() != 0) {
115 unsigned char* dataProd = fedDataProd.
data();
116 const unsigned char*
data = fedData.
data();
117 for (
unsigned int k = 0;
k < fedData.
size(); ++
k) {
T getParameter(std::string const &) const
edm::EDGetTokenT< FEDRawDataCollection > DataToken_
~EcalFEDWithCRCErrorProducer() override
size_t size() const
Lenght of the data buffer in bytes.
T getUntrackedParameter(std::string const &, T const &) const
void resize(size_t newsize)
EcalFEDWithCRCErrorProducer(const edm::ParameterSet &)
void produce(edm::Event &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
unsigned long long uint64_t
char data[epos_bytes_allocation]
std::vector< int > fedUnpackList_
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.