CMS 3D CMS Logo

UseValueExampleAnalyzer.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Integration
4 // Class: UseValueExampleAnalyzer
5 //
13 //
14 // Original Author: Chris D Jones
15 // Created: Thu Sep 8 03:55:42 EDT 2005
16 //
17 //
18 
19 // system include files
20 #include <memory>
21 #include <iostream>
22 
23 // user include files
25 
27 
28 #include "ValueExample.h"
30 
31 //
32 // class decleration
33 //
34 
36 public:
38 
39  void analyze(edm::StreamID, const edm::Event&, const edm::EventSetup&) const final;
40 
41 private:
42  // ----------member data ---------------------------
43 };
44 
45 //
46 // constants, enums and typedefs
47 //
48 
49 //
50 // static data member definitions
51 //
52 
53 //
54 // constructors and destructor
55 //
57  //now do what ever initialization is needed
58 }
59 
60 //
61 // member functions
62 //
63 
64 // ------------ method called to produce the data ------------
66  const edm::Event& /* iEvent */,
67  const edm::EventSetup& /* iSetup*/) const {
68  std::cout << " value from service " << edm::Service<ValueExample>()->value() << std::endl;
69 }
70 
71 //define this as a plug-in
UseValueExampleAnalyzer(const edm::ParameterSet &)
void analyze(edm::StreamID, const edm::Event &, const edm::EventSetup &) const final
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16