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 31 of file EmptyHepMCProducer.cc.

Constructor & Destructor Documentation

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

Definition at line 42 of file EmptyHepMCProducer.cc.

42 { produces<edm::HepMCProduct>(); }
EmptyHepMCProducer::~EmptyHepMCProducer ( )
inlineoverride

Definition at line 34 of file EmptyHepMCProducer.cc.

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

34 {};

Member Function Documentation

void EmptyHepMCProducer::beginJob ( void  )
privatevirtual

Definition at line 51 of file EmptyHepMCProducer.cc.

Referenced by ~EmptyHepMCProducer().

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

Definition at line 53 of file EmptyHepMCProducer.cc.

References DEFINE_FWK_MODULE.

Referenced by ~EmptyHepMCProducer().

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

Definition at line 44 of file EmptyHepMCProducer.cc.

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

Referenced by ~EmptyHepMCProducer().

44  {
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 }
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:125
def move(src, dest)
Definition: eostools.py:511