CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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&);
37 
38 private:
39  virtual void beginJob() override;
40  virtual void produce(edm::Event&, const edm::EventSetup&) override;
41  virtual void endJob() override;
42 
43 };
44 
45 
46 
48 {
49  produces<edm::HepMCProduct>();
50 }
51 
52 void
54 {
55  // create an empty output collection
56  std::auto_ptr<edm::HepMCProduct> theOutput(new edm::HepMCProduct());
57  //theOutput->addHepMCData(theEvent);
58  iEvent.put(theOutput);
59 }
60 
62 
64 
65 //define this as a plug-in
virtual void beginJob() override
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
virtual void produce(edm::Event &, const edm::EventSetup &) override
int iEvent
Definition: GenABIO.cc:230
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:121
EmptyHepMCProducer(const edm::ParameterSet &)
virtual void endJob() override