test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DoubleProducer.cc
Go to the documentation of this file.
1 /* \class DoubleProducer
2  *
3  * \author Luca Lista, INFN
4  *
5  * $Id: DoubleProducer.cc,v 1.1 2009/03/03 13:07:29 llista Exp $
6  *
7  */
8 
10 
12 public:
14 private:
15  void produce( edm::Event & evt, const edm::EventSetup&) override;
16  double value_;
17 };
18 
21 
22 using namespace edm;
23 using namespace std;
24 
26 value_( cfg.getParameter<double>( "value" ) ){
27  produces<double>();
28 }
29 
30 void DoubleProducer::produce( Event & evt, const EventSetup & ) {
31  auto_ptr<double> value( new double( value_ ) );
32  evt.put( value );
33 }
34 
36 
tuple cfg
Definition: looper.py:293
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:120
DoubleProducer(const edm::ParameterSet &cfg)
void produce(edm::Event &evt, const edm::EventSetup &) override