CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

DoubleProducer Class Reference

Inheritance diagram for DoubleProducer:
edm::EDProducer edm::ProducerBase edm::ProductRegistryHelper

List of all members.

Public Member Functions

 DoubleProducer (const edm::ParameterSet &cfg)

Private Member Functions

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

Private Attributes

double value_

Detailed Description

Definition at line 11 of file DoubleProducer.cc.


Constructor & Destructor Documentation

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

Definition at line 25 of file DoubleProducer.cc.

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

Member Function Documentation

void DoubleProducer::produce ( edm::Event evt,
const edm::EventSetup  
) [private, virtual]

Implements edm::EDProducer.

Definition at line 30 of file DoubleProducer.cc.

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

                                                              {
  auto_ptr<double> value( new double( value_ ) );
  evt.put( value );
}

Member Data Documentation

double DoubleProducer::value_ [private]

Definition at line 16 of file DoubleProducer.cc.

Referenced by produce().