CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions
EmptyHepMCProducer Class Reference

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

Inheritance diagram for EmptyHepMCProducer:
edm::stream::EDProducer<>

Public Member Functions

 EmptyHepMCProducer (const edm::ParameterSet &)
 
 ~EmptyHepMCProducer () override
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
bool hasAbilityToProduceInLumis () const final
 
bool hasAbilityToProduceInRuns () const final
 

Private Member Functions

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

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 

Detailed Description

Description:

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

Definition at line 32 of file EmptyHepMCProducer.cc.

Constructor & Destructor Documentation

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

Definition at line 45 of file EmptyHepMCProducer.cc.

46 {
47  produces<edm::HepMCProduct>();
48 }
EmptyHepMCProducer::~EmptyHepMCProducer ( )
inlineoverride

Definition at line 36 of file EmptyHepMCProducer.cc.

References beginJob(), endJob(), and produce().

36 {};

Member Function Documentation

void EmptyHepMCProducer::beginJob ( void  )
privatevirtual

Definition at line 59 of file EmptyHepMCProducer.cc.

Referenced by ~EmptyHepMCProducer().

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

Definition at line 61 of file EmptyHepMCProducer.cc.

References DEFINE_FWK_MODULE.

Referenced by ~EmptyHepMCProducer().

61 {}
void EmptyHepMCProducer::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivate

Definition at line 51 of file EmptyHepMCProducer.cc.

References eostools::move(), and edm::Event::put().

Referenced by ~EmptyHepMCProducer().

52 {
53  // create an empty output collection
54  std::unique_ptr<edm::HepMCProduct> theOutput(new edm::HepMCProduct());
55  //theOutput->addHepMCData(theEvent);
56  iEvent.put(std::move(theOutput));
57 }
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:137
def move(src, dest)
Definition: eostools.py:511