36 #define SLINK_WORD_SIZE 8
46 if (dataType ==
"DDU") {
49 else if (dataType ==
"ROS25") {
52 else if (dataType ==
"ROS8") {
56 throw cms::Exception(
"InvalidParameter") <<
"DTUnpackingModule: dataType "
57 << dataType <<
" is unknown";
67 produces<DTDigiCollection>();
68 produces<DTLocalTriggerCollection>();
83 LogError(
"DTUnpackingModule::produce") <<
" unable to get raw data from the event" << endl;
97 int FEDIDmin = 0, FEDIDMax = 0;
107 for (
int id=FEDIDmin;
id<=FEDIDMax; ++id){
109 const FEDRawData& feddata = rawdata->FEDData(
id);
115 feddata.
size(), id, mapping, detectorProduct, triggerProduct);
121 e.
put(detectorProduct);
122 e.
put(triggerProduct);
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
void produce(edm::Event &e, const edm::EventSetup &c)
Call the Unpackers and create the digis.
virtual void interpretRawData(const unsigned int *index, int datasize, int dduID, edm::ESHandle< DTReadOutMapping > &mapping, std::auto_ptr< DTDigiCollection > &product, std::auto_ptr< DTLocalTriggerCollection > &product2, uint16_t rosList=0)=0
size_t size() const
Lenght of the data buffer in bytes.
virtual ~DTUnpackingModule()
Destructor.
int minFEDid_
if not you need to set the range by hand
DTUnpackingModule(const edm::ParameterSet &pset)
Constructor.
bool useStandardFEDid_
do you want to use the standard DT FED ID's, i.e. [770-775]? (why the hell 6??)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
edm::InputTag inputLabel
if not you need the label