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 // $Id: EmptyHepMCProducer.cc,v 1.1 2010/08/20 00:28:11 khotilov Exp $
18 //
19 //
20 
24 
27 
29 
31 
32 
34 {
35 public:
36  explicit EmptyHepMCProducer(const edm::ParameterSet&);
38 
39 private:
40  virtual void beginJob();
41  virtual void produce(edm::Event&, const edm::EventSetup&);
42  virtual void endJob();
43 
44 };
45 
46 
47 
49 {
50  produces<edm::HepMCProduct>();
51 }
52 
53 void
55 {
56  // create an empty output collection
57  std::auto_ptr<edm::HepMCProduct> theOutput(new edm::HepMCProduct());
58  //theOutput->addHepMCData(theEvent);
59  iEvent.put(theOutput);
60 }
61 
63 
65 
66 //define this as a plug-in
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
int iEvent
Definition: GenABIO.cc:243
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:85
EmptyHepMCProducer(const edm::ParameterSet &)
virtual void beginJob()
virtual void produce(edm::Event &, const edm::EventSetup &)