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
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

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<>
using CacheTypes = CacheContexts< T... >
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T... >
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::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::EmptyHepMCProducer ( const edm::ParameterSet iConfig)
explicit

Definition at line 42 of file EmptyHepMCProducer.cc.

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

◆ ~EmptyHepMCProducer()

EmptyHepMCProducer::~EmptyHepMCProducer ( )
inlineoverride

Definition at line 34 of file EmptyHepMCProducer.cc.

34 {}

Member Function Documentation

◆ beginJob()

void EmptyHepMCProducer::beginJob ( void  )
privatevirtual

Definition at line 51 of file EmptyHepMCProducer.cc.

51 {}

◆ endJob()

void EmptyHepMCProducer::endJob ( void  )
privatevirtual

Definition at line 53 of file EmptyHepMCProducer.cc.

53 {}

◆ produce()

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

Definition at line 44 of file EmptyHepMCProducer.cc.

References iEvent, and eostools::move().

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 }
int iEvent
Definition: GenABIO.cc:224
def move(src, dest)
Definition: eostools.py:511