30 if (!srcTag.label().empty()) {
39 descriptions.
setComment(
"This EDProducer is part of the TestCUDAProducer* family. It models a CPU algorithm.");
44 <<
label_ <<
" TestCUDAProducerCPU::produce begin event " << iEvent.
id().
event() <<
" stream " <<
id;
52 std::mt19937
gen(
r());
53 auto dist = std::uniform_real_distribution<>(0.2, 1.5);
56 <<
" Task (CPU) for event " << iEvent.
id().
event() <<
" in stream " <<
id <<
" will take " << dur <<
" seconds";
59 unsigned int const output = input +
id * 100 + iEvent.
id().
event();
64 <<
" stream " <<
id <<
" result " <<
output;
Log< level::Info, true > LogVerbatim
EventNumber_t event() const
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
uint16_t *__restrict__ id
#define DEFINE_FWK_MODULE(type)
constexpr bool isUninitialized() const noexcept
static std::string const input
edm::EDGetTokenT< int > srcToken_
edm::EDPutTokenT< int > const dstToken_
bool get(ProductID const &oid, Handle< PROD > &result) const
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void setComment(std::string const &value)
TestCUDAProducerCPU(edm::ParameterSet const &iConfig)
OrphanHandle< PROD > emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product
T getParameter(std::string const &) const
~TestCUDAProducerCPU() override=default
void produce(edm::StreamID id, edm::Event &iEvent, edm::EventSetup const &iSetup) const override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)