37 #define SLINK_WORD_SIZE 8
56 throw cms::Exception(
"InvalidParameter") <<
"DTUnpackingModule: dataType "
68 produces<DTDigiCollection>();
69 produces<DTLocalTriggerCollection>();
71 if(performDataIntegrityMonitor) {
72 produces<std::vector<DTDDUData> >();
73 produces<std::vector<std::vector<DTROS25Data> > >();
85 desc.
add<
bool>(
"useStandardFEDid",
true);
96 psd1.
addUntracked<
bool>(
"performDataIntegrityMonitor",
false);
102 psd0.
addUntracked<
bool>(
"performDataIntegrityMonitor",
false);
106 desc.
add<
bool>(
"dqmOnly",
false);
107 descriptions.
add(
"dtUnpackingModule",desc);
116 LogError(
"DTUnpackingModule::produce") <<
" unable to get raw data from the event" << endl;
128 auto_ptr<std::vector<DTDDUData> > dduProduct(
new std::vector<DTDDUData>);
132 int FEDIDmin = 0, FEDIDMax = 0;
142 for (
int id=FEDIDmin;
id<=FEDIDMax; ++id){
143 const FEDRawData& feddata = rawdata->FEDData(
id);
148 feddata.
size(), id, mapping, detectorProduct, triggerProduct);
151 dduProduct->push_back(dynamic_cast<DTDDUUnpacker*>(
unpacker)->getDDUControlData());
152 ros25Product->push_back(dynamic_cast<DTDDUUnpacker*>(
unpacker)->getROSsControlData());
155 ros25Product->push_back(dynamic_cast<DTROS25Unpacker*>(
unpacker)->getROSsControlData());
163 e.
put(detectorProduct);
164 e.
put(triggerProduct);
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
ParameterDescriptionBase * addOptional(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
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.
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void produce(edm::Event &e, const edm::EventSetup &c) override
Call the Unpackers and create the digis.
void add(std::string const &label, ParameterSetDescription const &psetDescription)
bool performDataIntegrityMonitor
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.