CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | 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

Public Member Functions

 EmptyHepMCProducer (const edm::ParameterSet &)
 
 ~EmptyHepMCProducer ()
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
virtual ~EDProducer ()
 
- Public Member Functions inherited from edm::ProducerBase
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
boost::function< void(const
BranchDescription &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 

Private Member Functions

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

Additional Inherited Members

- Public Types inherited from edm::EDProducer
typedef EDProducer ModuleType
 
typedef WorkerT< EDProducerWorkerType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Static Public Member Functions inherited from edm::EDProducer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDProducer
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from edm::ProducerBase
template<class TProducer , class TMethod >
void callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod)
 

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.

49 {
50  produces<edm::HepMCProduct>();
51 }
EmptyHepMCProducer::~EmptyHepMCProducer ( )
inline

Definition at line 37 of file EmptyHepMCProducer.cc.

37 {};

Member Function Documentation

void EmptyHepMCProducer::beginJob ( void  )
privatevirtual

Reimplemented from edm::EDProducer.

Definition at line 62 of file EmptyHepMCProducer.cc.

62 {}
void EmptyHepMCProducer::endJob ( void  )
privatevirtual

Reimplemented from edm::EDProducer.

Definition at line 64 of file EmptyHepMCProducer.cc.

64 {}
void EmptyHepMCProducer::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
privatevirtual

Implements edm::EDProducer.

Definition at line 54 of file EmptyHepMCProducer.cc.

References edm::Event::put().

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 }
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:84