60 dataToken_=consumes<FEDRawDataCollection>(dataLabel);
61 produces<TCDSRecord>(
"tcdsRecord" ).setBranchAlias(
"tcdsRecord" );
85 if(tcdsData.
size()>0){
89 iEvent.
put(std::make_unique<TCDSRecord>(tcdsRecord),
"tcdsRecord");
100 descriptions.
add(
"tcdsRawToDigi", desc);
T getParameter(std::string const &) const
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)
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
ParameterDescriptionBase * add(U const &iLabel, T const &value)
TcdsRawToDigi(const edm::ParameterSet &)
edm::EDGetTokenT< FEDRawDataCollection > dataToken_
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.