73 if (fedUnpackList_.empty())
75 fedUnpackList_.push_back(
i);
77 produces< FEDRawDataCollection >();
120 uint64_t * fedTrailer = pData + (length - 1);
121 bool crcError = (*fedTrailer >> 2 ) & 0x1;
125 FEDRawData & fedDataProd = producedData->FEDData(*
i);
126 if ( fedDataProd.
size() != 0 )
133 unsigned char *dataProd=fedDataProd.
data();
134 const unsigned char *
data=fedData.
data();
135 for (
unsigned int k=0;
k<fedData.
size(); ++
k )
143 iEvent.
put(producedData);
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
~EcalFEDWithCRCErrorProducer()
#define DEFINE_FWK_MODULE(type)
size_t size() const
Lenght of the data buffer in bytes.
void resize(size_t newsize)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
EcalFEDWithCRCErrorProducer(const edm::ParameterSet &)
virtual void produce(edm::Event &, const edm::EventSetup &) override
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
unsigned long long uint64_t
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
std::vector< int > fedUnpackList_