1 #ifndef HeterogeneousCore_CUDACore_interface_ConvertingESProducerT_h
2 #define HeterogeneousCore_CUDACore_interface_ConvertingESProducerT_h
19 template <
typename Record,
typename Target,
typename Source>
31 return std::make_unique<Target>(record.get(
token_));
46 #endif // HeterogeneousCore_CUDACore_interface_ConvertingESProducerT_h
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
ConvertingESProducerT(edm::ParameterSet const &ps)
edm::ESGetToken< Source, Record > token_
T getParameter(std::string const &) const
std::unique_ptr< Target > produce(Record const &record)
static void fillDescriptions(edm::ConfigurationDescriptions &confDesc)