CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
DoubleProducer Class Reference
Inheritance diagram for DoubleProducer:
edm::stream::EDProducer<>

Public Member Functions

 DoubleProducer (const edm::ParameterSet &cfg)
 
- 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

void produce (edm::Event &evt, const edm::EventSetup &) override
 

Private Attributes

double value_
 

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

Definition at line 11 of file DoubleProducer.cc.

Constructor & Destructor Documentation

◆ DoubleProducer()

DoubleProducer::DoubleProducer ( const edm::ParameterSet cfg)

Definition at line 26 of file DoubleProducer.cc.

26  : value_(cfg.getParameter<double>("value")) {
27  produces<double>();
28 }

Member Function Documentation

◆ produce()

void DoubleProducer::produce ( edm::Event evt,
const edm::EventSetup  
)
overrideprivate

Definition at line 30 of file DoubleProducer.cc.

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

30  {
31  unique_ptr<double> value(new double(value_));
32  evt.put(std::move(value));
33 }
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:133
Definition: value.py:1
def move(src, dest)
Definition: eostools.py:511

Member Data Documentation

◆ value_

double DoubleProducer::value_
private

Definition at line 17 of file DoubleProducer.cc.

Referenced by produce().