CMS 3D CMS Logo

ParameterSetBlobProducer.cc
Go to the documentation of this file.
6 
9 
10 class ParameterSetBlobProducer : public edm::global::EDProducer<edm::BeginRunProducer> {
11 public:
13 
14  void produce(edm::StreamID, edm::Event&, edm::EventSetup const&) const final;
15 
16  void globalBeginRunProduce(edm::Run&, edm::EventSetup const&) const final;
17 
18  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
20  descriptions.addWithDefaultLabel(desc);
21  }
22 
23 private:
25 };
26 
28  : token_{produces<std::map<edm::ParameterSetID, edm::ParameterSetBlob>, edm::Transition::BeginRun>()} {}
29 
31 
33  std::map<edm::ParameterSetID, edm::ParameterSetBlob> psetMap;
35 
36  iRun.emplace(token_, std::move(psetMap));
37 }
38 
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
ParameterSetBlobProducer(edm::ParameterSet const &)
void emplace(EDPutTokenT< PROD > token, Args &&... args)
puts a new product
Definition: Run.h:245
void fillMap(regmap_type &fillme) const
Definition: Registry.cc:42
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
void globalBeginRunProduce(edm::Run &, edm::EventSetup const &) const final
def move(src, dest)
Definition: eostools.py:511
static Registry * instance()
Definition: Registry.cc:12
Definition: Run.h:45
void produce(edm::StreamID, edm::Event &, edm::EventSetup const &) const final
edm::EDPutTokenT< std::map< edm::ParameterSetID, edm::ParameterSetBlob > > const token_