35 #define SLINK_WORD_SIZE 8
54 throw cms::Exception(
"InvalidParameter") <<
"DTUnpackingModule: dataType "
66 produces<DTDigiCollection>();
67 produces<DTLocalTriggerCollection>();
69 if(performDataIntegrityMonitor) {
70 produces<std::vector<DTDDUData> >();
71 produces<std::vector<std::vector<DTROS25Data> > >();
86 LogError(
"DTUnpackingModule::produce") <<
" unable to get raw data from the event" << endl;
98 auto_ptr<std::vector<DTDDUData> > dduProduct(
new std::vector<DTDDUData>);
102 int FEDIDmin = 0, FEDIDMax = 0;
112 for (
int id=FEDIDmin;
id<=FEDIDMax; ++id){
113 const FEDRawData& feddata = rawdata->FEDData(
id);
118 feddata.
size(), id, mapping, detectorProduct, triggerProduct);
121 dduProduct->push_back(dynamic_cast<DTDDUUnpacker*>(
unpacker)->getDDUControlData());
122 ros25Product->push_back(dynamic_cast<DTDDUUnpacker*>(
unpacker)->getROSsControlData());
125 ros25Product->push_back(dynamic_cast<DTROS25Unpacker*>(
unpacker)->getROSsControlData());
133 e.
put(detectorProduct);
134 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.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< FEDRawDataCollection > inputLabel
if not you need the label
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
std::vector< std::vector< DTROS25Data > > DTROS25Collection
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 performDataIntegrityMonitor
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.