30 if (!srcTag.label().empty()) {
31 srcToken_ = consumes<int>(srcTag);
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";
64 <<
" stream " <<
id <<
" result " <<
output;
Log< level::Info, true > LogVerbatim
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
T getParameter(std::string const &) const
constexpr bool isUninitialized() const noexcept
static std::string const input
edm::EDGetTokenT< int > srcToken_
edm::EDPutTokenT< int > const dstToken_
#define DEFINE_FWK_MODULE(type)
def gen(fragment, howMuch)
Production test section ####.
void setComment(std::string const &value)
TestCUDAProducerCPU(edm::ParameterSet const &iConfig)
~TestCUDAProducerCPU() override=default
void produce(edm::StreamID id, edm::Event &iEvent, edm::EventSetup const &iSetup) const override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)