Go to the documentation of this file.
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;
static const std::string input
constexpr bool isUninitialized() const noexcept
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void setComment(std::string const &value)
const edm::EDPutTokenT< int > dstToken_
~TestCUDAProducerCPU() override=default
void produce(edm::StreamID id, edm::Event &iEvent, edm::EventSetup const &iSetup) const override
Log< level::Info, true > LogVerbatim
T getParameter(std::string const &) const
def gen(fragment, howMuch)
Production test section ####.
edm::EDGetTokenT< int > srcToken_
TestCUDAProducerCPU(edm::ParameterSet const &iConfig)
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)