File indexing completed on 2025-03-31 22:26:54
0001 #include "FWCore/Framework/interface/Event.h"
0002 #include "FWCore/Framework/interface/EventSetup.h"
0003 #include "FWCore/Framework/interface/global/EDProducer.h"
0004 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0005 #include "HeterogeneousCore/CUDATest/interface/MissingDictionaryCUDAObject.h"
0006
0007 namespace edmtest {
0008
0009 class MissingDictionaryCUDAProducer : public edm::global::EDProducer<> {
0010 public:
0011 explicit MissingDictionaryCUDAProducer(edm::ParameterSet const& config) : token_(produces()) {}
0012
0013 void produce(edm::StreamID sid, edm::Event& event, edm::EventSetup const& setup) const final {
0014 event.emplace(token_);
0015 }
0016
0017 private:
0018 const edm::EDPutTokenT<MissingDictionaryCUDAObject> token_;
0019 };
0020
0021 }
0022
0023 #include "FWCore/Framework/interface/MakerMacros.h"
0024 DEFINE_FWK_MODULE(edmtest::MissingDictionaryCUDAProducer);