67 dataToken_=consumes<FEDRawDataCollection>(dataLabel);
68 produces<int>(
"nibble" ).setBranchAlias(
"nibble");
69 produces<int>(
"triggerCount" ).setBranchAlias(
"triggerCount");
91 int triggerCount = -99;
94 if(tcdsData.
size()>0){
97 triggerCount = (int)tcdsRecord.getHeader().getData().header.triggerCount;
108 iEvent.
put(std::make_unique<int>(nibble),
"nibble");
109 iEvent.
put(std::make_unique<int>(triggerCount),
"triggerCount");
120 descriptions.
add(
"tcdsRawToDigi", desc);
T getParameter(std::string const &) const
virtual void produce(edm::Event &, const edm::EventSetup &) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
size_t size() const
Lenght of the data buffer in bytes.
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
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.