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;
125 auto detectorProduct = std::make_unique<DTDigiCollection>();
126 auto triggerProduct = std::make_unique<DTLocalTriggerCollection>();
128 auto dduProduct = std::make_unique<std::vector<DTDDUData>>();
129 auto ros25Product = std::make_unique<DTROS25Collection>();
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());
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
ParameterDescriptionBase * addOptional(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
virtual void interpretRawData(const unsigned int *index, int datasize, int dduID, edm::ESHandle< DTReadOutMapping > &mapping, std::unique_ptr< DTDigiCollection > &product, std::unique_ptr< DTLocalTriggerCollection > &product2, uint16_t rosList=0)=0
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< FEDRawDataCollection > inputLabel
if not you need the label
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??)
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.