21 produces<FEDRawDataCollection>();
32 if (debug)
cout <<
"[DTDigiToRawModule]: constructor" << endl;
37 if (
debug)
cout <<
"[DTDigiToRawModule]: destructor" << endl;
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
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual ~DTDigiToRawModule()
Destructor.
static void set(unsigned char *trailer, int evt_lgth, int crc, int evt_stat, int tts, bool T=false)
Set all fields in the trailer.
size_t size() const
Lenght of the data buffer in bytes.
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
unsigned short compute_crc(unsigned char *buffer, unsigned int bufSize)
DTDigiToRawModule(const edm::ParameterSet &pset)
Constructor.
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
virtual void produce(edm::Event &, const edm::EventSetup &)