CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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::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 ( 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.

34 {};

Member Function Documentation

void EmptyHepMCProducer::beginJob ( void  )
privatevirtual

Definition at line 51 of file EmptyHepMCProducer.cc.

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

Definition at line 53 of file EmptyHepMCProducer.cc.

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().

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:133
def move
Definition: eostools.py:511