FWCore
Integration
plugins
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
24
#include "
FWCore/Framework/interface/global/EDAnalyzer.h
"
25
26
#include "
FWCore/Framework/interface/MakerMacros.h
"
27
28
#include "
ValueExample.h
"
29
#include "
FWCore/ServiceRegistry/interface/Service.h
"
30
31
//
32
// class decleration
33
//
34
35
class
UseValueExampleAnalyzer
:
public
edm::global::EDAnalyzer
<> {
36
public
:
37
explicit
UseValueExampleAnalyzer
(
const
edm::ParameterSet
&);
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
//
56
UseValueExampleAnalyzer::UseValueExampleAnalyzer
(
const
edm::ParameterSet
&
/* iConfig */
) {
57
//now do what ever initialization is needed
58
}
59
60
//
61
// member functions
62
//
63
64
// ------------ method called to produce the data ------------
65
void
UseValueExampleAnalyzer::analyze
(
edm::StreamID
,
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
72
DEFINE_FWK_MODULE
(
UseValueExampleAnalyzer
);
UseValueExampleAnalyzer::UseValueExampleAnalyzer
UseValueExampleAnalyzer(const edm::ParameterSet &)
Definition:
UseValueExampleAnalyzer.cc:56
edm::Service
Definition:
Service.h:30
edm::global::EDAnalyzer
Definition:
EDAnalyzer.h:32
edm::StreamID
Definition:
StreamID.h:30
EDAnalyzer.h
ValueExample.h
UseValueExampleAnalyzer::analyze
void analyze(edm::StreamID, const edm::Event &, const edm::EventSetup &) const final
Definition:
UseValueExampleAnalyzer.cc:65
Service.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
edm::EventSetup
Definition:
EventSetup.h:56
relativeConstraints.value
value
Definition:
relativeConstraints.py:53
edm::ParameterSet
Definition:
ParameterSet.h:47
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
UseValueExampleAnalyzer
Definition:
UseValueExampleAnalyzer.cc:35
edm::Event
Definition:
Event.h:73
MakerMacros.h
Generated for CMSSW Reference Manual by
1.8.14