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 
32 public:
33  explicit EmptyHepMCProducer(const edm::ParameterSet&);
34  ~EmptyHepMCProducer() override {}
35 
36 private:
37  virtual void beginJob();
38  void produce(edm::Event&, const edm::EventSetup&) override;
39  virtual void endJob();
40 };
41 
42 EmptyHepMCProducer::EmptyHepMCProducer(const edm::ParameterSet& iConfig) { produces<edm::HepMCProduct>(); }
43 
45  // create an empty output collection
46  std::unique_ptr<edm::HepMCProduct> theOutput(new edm::HepMCProduct());
47  //theOutput->addHepMCData(theEvent);
48  iEvent.put(std::move(theOutput));
49 }
50 
52 
54 
55 //define this as a plug-in
void produce(edm::Event &, const edm::EventSetup &) override
int iEvent
Definition: GenABIO.cc:224
EmptyHepMCProducer(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
virtual void beginJob()
~EmptyHepMCProducer() override
def move(src, dest)
Definition: eostools.py:511