CMS 3D CMS Logo

Public Member Functions | Private Member Functions

EmptyHepMCProducer Class Reference

#include <SimMuon/Neutron/plugins/EmptyHepMCProducer.cc>

Inheritance diagram for EmptyHepMCProducer:
edm::EDProducer edm::ProducerBase edm::ProductRegistryHelper

List of all members.

Public Member Functions

 EmptyHepMCProducer (const edm::ParameterSet &)
 ~EmptyHepMCProducer ()

Private Member Functions

virtual void beginJob ()
virtual void endJob ()
virtual void produce (edm::Event &, const edm::EventSetup &)

Detailed Description

Description:

Utility for neutron simulation framework. Creates an empty HepMCProduct to make MixingModule happy

Definition at line 33 of file EmptyHepMCProducer.cc.


Constructor & Destructor Documentation

EmptyHepMCProducer::EmptyHepMCProducer ( const edm::ParameterSet iConfig) [explicit]

Definition at line 48 of file EmptyHepMCProducer.cc.

{
  produces<edm::HepMCProduct>();
}
EmptyHepMCProducer::~EmptyHepMCProducer ( ) [inline]

Definition at line 37 of file EmptyHepMCProducer.cc.

{};

Member Function Documentation

void EmptyHepMCProducer::beginJob ( void  ) [private, virtual]

Reimplemented from edm::EDProducer.

Definition at line 62 of file EmptyHepMCProducer.cc.

{}
void EmptyHepMCProducer::endJob ( void  ) [private, virtual]

Reimplemented from edm::EDProducer.

Definition at line 64 of file EmptyHepMCProducer.cc.

{}
void EmptyHepMCProducer::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
) [private, virtual]

Implements edm::EDProducer.

Definition at line 54 of file EmptyHepMCProducer.cc.

References edm::Event::put().

{
  // create an empty output collection
  std::auto_ptr<edm::HepMCProduct> theOutput(new edm::HepMCProduct());
  //theOutput->addHepMCData(theEvent);
  iEvent.put(theOutput);
}