55 dataToken_ = consumes<FEDRawDataCollection>(dataLabel);
56 produces<TCDSRecord>(
"tcdsRecord").setBranchAlias(
"tcdsRecord");
73 if (rawdata.isValid()) {
74 uint16_t selectedId = 0;
77 if (tcdsData.
size() > 0) {
80 <<
"Second TCDS FED ID " <<
fedId <<
" found. First ID: " << selectedId;
86 iEvent.
put(std::make_unique<TCDSRecord>(tcdsRecord),
"tcdsRecord");
95 descriptions.
add(
"tcdsRawToDigi", desc);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void produce(edm::Event &, const edm::EventSetup &) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
~TcdsRawToDigi() override
size_t size() const
Lenght of the data buffer in bytes.
Class to contain information from TCDS FED.
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
TcdsRawToDigi(const edm::ParameterSet &)
edm::EDGetTokenT< FEDRawDataCollection > dataToken_
T getParameter(std::string const &) const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.