21 produces<FEDRawDataCollection>();
32 if (debug)
cout <<
"[DTDigiToRawModule]: constructor" << endl;
37 if (
debug)
cout <<
"[DTDigiToRawModule]: destructor" << endl;
43 auto fed_buffers = std::make_unique<FEDRawDataCollection>();
54 int FEDIDmin = 0, FEDIDMax = 0;
55 if (useStandardFEDid_){
64 for (
int id=FEDIDmin;
id<=FEDIDMax; ++
id){
67 FEDRawData* rawData = packer->createFedBuffers(*digis, map);
69 FEDRawData& fedRawData = fed_buffers->FEDData(
id);
70 fedRawData = *rawData;
T getParameter(std::string const &) const
EventNumber_t event() const
T getUntrackedParameter(std::string const &, T const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void produce(edm::Event &, const edm::EventSetup &) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
size_t size() const
Lenght of the data buffer in bytes.
static void set(unsigned char *trailer, uint32_t lenght, uint16_t crc, uint8_t evt_stat, uint8_t tts, bool moreTrailers=false)
Set all fields in the trailer.
unsigned short compute_crc(unsigned char *buffer, unsigned int bufSize)
~DTDigiToRawModule() override
Destructor.
DTDigiToRawModule(const edm::ParameterSet &pset)
Constructor.
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.