34 #define SLINK_WORD_SIZE 8 57 unpackerParameters.getUntrackedParameter<
bool>(
"performDataIntegrityMonitor",
false);
60 produces<DTDigiCollection>();
61 produces<DTLocalTriggerCollection>();
63 if (performDataIntegrityMonitor) {
64 produces<std::vector<DTDDUData>>();
65 produces<std::vector<std::vector<DTROS25Data>>>();
75 desc.
add<
bool>(
"useStandardFEDid",
true);
86 psd1.
addUntracked<
bool>(
"performDataIntegrityMonitor",
false);
92 psd0.
addUntracked<
bool>(
"performDataIntegrityMonitor",
false);
96 desc.
add<
bool>(
"dqmOnly",
false);
97 descriptions.
add(
"dtUnpackingModule", desc);
105 LogError(
"DTUnpackingModule::produce") <<
" unable to get raw data from the event" << endl;
114 auto detectorProduct = std::make_unique<DTDigiCollection>();
115 auto triggerProduct = std::make_unique<DTLocalTriggerCollection>();
117 auto dduProduct = std::make_unique<std::vector<DTDDUData>>();
118 auto ros25Product = std::make_unique<DTROS25Collection>();
121 int FEDIDmin = 0, FEDIDMax = 0;
130 for (
int id = FEDIDmin;
id <= FEDIDMax; ++
id) {
133 if (feddata.
size()) {
143 dduProduct->push_back(dynamic_cast<DTDDUUnpacker*>(
unpacker)->getDDUControlData());
144 ros25Product->push_back(dynamic_cast<DTDDUUnpacker*>(
unpacker)->getROSsControlData());
146 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.
int minFEDid_
if not you need to set the range by hand
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
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??)
~DTUnpackingModule() override
Destructor.
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.