src
CondCore
PopCon
interface
PopConAnalyzer.h
Go to the documentation of this file.
1
#ifndef POPCON_ANALYZER_H
2
#define POPCON_ANALYZER_H
3
4
//
5
// Original Author: Marcin BOGUSZ
6
// Created: Tue Jul 3 10:48:22 CEST 2007
7
8
#include "
CondCore/PopCon/interface/PopCon.h
"
9
#include <vector>
10
11
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
12
#include "
FWCore/Framework/interface/one/EDAnalyzer.h
"
13
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
14
15
namespace
popcon
{
16
template
<
typename
S>
17
class
PopConAnalyzer
:
public
edm::one::EDAnalyzer
<> {
18
public
:
19
typedef
S
SourceHandler
;
20
21
PopConAnalyzer
(
const
edm::ParameterSet
&
pset
)
22
:
m_populator
(
pset
),
m_source
(
pset
.getParameter<
edm
::
ParameterSet
>(
"Source"
)) {}
23
24
~PopConAnalyzer
()
override
{}
25
26
protected
:
27
SourceHandler
&
source
() {
return
m_source
; }
28
29
private
:
30
void
beginJob
()
override
{}
31
void
endJob
()
override
{
write
(); }
32
33
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&)
override
{}
34
35
void
write
() {
m_populator
.
write
(
m_source
); }
36
37
private
:
38
PopCon
m_populator
;
39
SourceHandler
m_source
;
40
};
41
42
}
// namespace popcon
43
#endif
popcon::PopConAnalyzer::write
void write()
Definition:
PopConAnalyzer.h:35
popcon::PopConAnalyzer::source
SourceHandler & source()
Definition:
PopConAnalyzer.h:27
popcon::PopConAnalyzer::beginJob
void beginJob() override
Definition:
PopConAnalyzer.h:30
popcon::PopConAnalyzer
Definition:
PopConAnalyzer.h:17
popcon::PopConAnalyzer::SourceHandler
S SourceHandler
Definition:
PopConAnalyzer.h:19
ParameterSet
Definition:
Functions.h:16
popcon::PopConAnalyzer::m_populator
PopCon m_populator
Definition:
PopConAnalyzer.h:38
popcon::PopConAnalyzer::~PopConAnalyzer
~PopConAnalyzer() override
Definition:
PopConAnalyzer.h:24
popcon
Definition:
Exception.h:6
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
Frameworkfwd.h
popcon::PopCon::write
void write(Source const &source)
Definition:
PopCon.h:75
ParameterSet.h
popcon::PopCon
Definition:
PopCon.h:29
popcon::PopConAnalyzer::m_source
SourceHandler m_source
Definition:
PopConAnalyzer.h:39
PopCon.h
S
Definition:
CSCDBL1TPParametersExtended.h:16
popcon::PopConAnalyzer::endJob
void endJob() override
Definition:
PopConAnalyzer.h:31
edm::EventSetup
Definition:
EventSetup.h:59
HcalTPParametersHandler
Definition:
HcalTPParametersHandler.h:20
EDAnalyzer.h
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::ParameterSet
Definition:
ParameterSet.h:48
popcon::PopConAnalyzer::PopConAnalyzer
PopConAnalyzer(const edm::ParameterSet &pset)
Definition:
PopConAnalyzer.h:21
edm::Event
Definition:
Event.h:73
edm::one::EDAnalyzer
Definition:
EDAnalyzer.h:30
popcon::PopConAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
PopConAnalyzer.h:33
Generated for CMSSW Reference Manual by
1.8.14