CMS 3D CMS Logo

EmptyHepMCProducer.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: SimMuon/Neutron
4 // Class: EmptyHepMCProducer
5 //
14 //
15 // Original Author: Vadim Khotilovich
16 // Created: Mon Aug 09 19:11:42 CST 2010
17 //
18 //
19 
23 
26 
28 
30 
31 
33 {
34 public:
35  explicit EmptyHepMCProducer(const edm::ParameterSet&);
36  ~EmptyHepMCProducer() override {};
37 
38 private:
39  virtual void beginJob();
40  void produce(edm::Event&, const edm::EventSetup&) override;
41  virtual void endJob();
42 
43 };
44 
46 {
47  produces<edm::HepMCProduct>();
48 }
49 
50 void
52 {
53  // create an empty output collection
54  std::unique_ptr<edm::HepMCProduct> theOutput(new edm::HepMCProduct());
55  //theOutput->addHepMCData(theEvent);
56  iEvent.put(std::move(theOutput));
57 }
58 
60 
62 
63 //define this as a plug-in
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:137
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
void produce(edm::Event &, const edm::EventSetup &) override
int iEvent
Definition: GenABIO.cc:230
EmptyHepMCProducer(const edm::ParameterSet &)
virtual void beginJob()
~EmptyHepMCProducer() override
def move(src, dest)
Definition: eostools.py:511