src
CondCore
PopCon
interface
OnlinePopConAnalyzer.h
Go to the documentation of this file.
1
#ifndef CONDCORE_POPCON_ONLINEPOPCONANALYZER_H
2
#define CONDCORE_POPCON_ONLINEPOPCONANALYZER_H
3
4
//
5
// Authors:
6
// - Francesco Brivio (Milano-Bicocca)
7
// - Jan Chyczynski (AGH University of Krakow)
8
//
9
10
#include "
CondCore/PopCon/interface/OnlinePopCon.h
"
11
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
12
#include "
FWCore/Framework/interface/one/EDAnalyzer.h
"
13
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
14
15
#include <vector>
16
17
namespace
popcon
{
18
template
<
typename
S>
19
class
OnlinePopConAnalyzer
:
public
edm::one::EDAnalyzer
<> {
20
public
:
21
typedef
S
SourceHandler
;
22
23
OnlinePopConAnalyzer
(
const
edm::ParameterSet
&
pset
)
24
:
m_populator
(
pset
),
m_source
(
pset
.getParameter<
edm
::
ParameterSet
>(
"Source"
)) {}
25
26
~OnlinePopConAnalyzer
()
override
{}
27
28
protected
:
29
SourceHandler
&
source
() {
return
m_source
; }
30
31
private
:
32
void
beginJob
()
override
{}
33
void
endJob
()
override
{
write
(); }
34
35
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&)
override
{}
36
37
void
write
() {
m_populator
.
write
(
m_source
); }
38
39
private
:
40
OnlinePopCon
m_populator
;
41
SourceHandler
m_source
;
42
};
43
44
}
// namespace popcon
45
#endif // CONDCORE_POPCON_ONLINEPOPCONANALYZER_H
popcon::OnlinePopConAnalyzer
Definition:
OnlinePopConAnalyzer.h:19
ParameterSet
Definition:
Functions.h:16
popcon::OnlinePopCon::write
void write(Source const &source)
Definition:
OnlinePopCon.h:64
popcon::OnlinePopConAnalyzer::write
void write()
Definition:
OnlinePopConAnalyzer.h:37
popcon
Definition:
Exception.h:6
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
popcon::OnlinePopCon
Definition:
OnlinePopCon.h:26
popcon::OnlinePopConAnalyzer::m_source
SourceHandler m_source
Definition:
OnlinePopConAnalyzer.h:41
Frameworkfwd.h
ParameterSet.h
popcon::OnlinePopConAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
OnlinePopConAnalyzer.h:35
popcon::OnlinePopConAnalyzer::~OnlinePopConAnalyzer
~OnlinePopConAnalyzer() override
Definition:
OnlinePopConAnalyzer.h:26
popcon::OnlinePopConAnalyzer::OnlinePopConAnalyzer
OnlinePopConAnalyzer(const edm::ParameterSet &pset)
Definition:
OnlinePopConAnalyzer.h:23
OnlinePopCon.h
S
Definition:
CSCDBL1TPParametersExtended.h:16
edm::EventSetup
Definition:
EventSetup.h:56
EDAnalyzer.h
edm
HLT enums.
Definition:
AlignableModifier.h:19
popcon::OnlinePopConAnalyzer::source
SourceHandler & source()
Definition:
OnlinePopConAnalyzer.h:29
popcon::OnlinePopConAnalyzer::endJob
void endJob() override
Definition:
OnlinePopConAnalyzer.h:33
edm::ParameterSet
Definition:
ParameterSet.h:48
popcon::OnlinePopConAnalyzer::m_populator
OnlinePopCon m_populator
Definition:
OnlinePopConAnalyzer.h:40
edm::Event
Definition:
Event.h:73
popcon::OnlinePopConAnalyzer::beginJob
void beginJob() override
Definition:
OnlinePopConAnalyzer.h:32
edm::one::EDAnalyzer
Definition:
EDAnalyzer.h:30
popcon::OnlinePopConAnalyzer::SourceHandler
S SourceHandler
Definition:
OnlinePopConAnalyzer.h:21
Generated for CMSSW Reference Manual by
1.8.14