30 throw cms::Exception(
"Assert") <<
"Getting AlpakaESTestDataADevice ESProduct did not throw";
40 throw cms::Exception(
"Assert") <<
"Getting AlpakaESTestDataCDevice ESProduct did not throw";
44 if (handleC.isValid()) {
45 throw cms::Exception(
"Assert") <<
"Getting non-existing AlpakaESTestDataCDevice succeeded, should have failed";
49 [[maybe_unused]]
auto const& prodC = *handleC;
55 <<
"De-referencing ESHandle of non-existentAlpakaESTestDataADevice did not throw";
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
edm::ESHandle< T > getHandle(edm::ESGetToken< T, R > const &iToken) const
void produce(edm::StreamID, device::Event &iEvent, device::EventSetup const &iSetup) const override
const device::ESGetToken< AlpakaESTestDataCDevice, AlpakaESTestRecordA > esTokenCNotExist_
const device::ESGetToken< AlpakaESTestDataCDevice, AlpakaESTestRecordA > esTokenC_
const device::ESGetToken< AlpakaESTestDataADevice, AlpakaESTestRecordA > esTokenA_
TestAlpakaGlobalProducerNullES(edm::ParameterSet const &config)
T const & getData(edm::ESGetToken< T, R > const &iToken) const
#define DEFINE_FWK_ALPAKA_MODULE(name)