Main Page
Namespaces
Classes
Package Documentation
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
9
#include "
CondCore/PopCon/interface/PopCon.h
"
10
#include <vector>
11
12
13
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
14
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
15
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
16
17
namespace
popcon
{
18
template
<
typename
S>
19
class
PopConAnalyzer
:
public
edm::EDAnalyzer
{
20
public
:
21
typedef
S
SourceHandler
;
22
23
PopConAnalyzer
(
const
edm::ParameterSet
&
pset
) :
24
m_populator
(pset),
25
m_source
(pset.getParameter<
edm
::
ParameterSet
>(
"Source"
)) {}
26
27
28
virtual
~PopConAnalyzer
(){}
29
30
private
:
31
32
virtual
void
beginJob
(){}
33
virtual
void
endJob
() {
34
write
();
35
}
36
37
virtual
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&){}
38
39
40
void
write
() {
41
m_populator
.
write
(
m_source
);
42
43
}
44
45
private
:
46
PopCon
m_populator
;
47
SourceHandler
m_source
;
48
};
49
50
}
51
#endif
popcon::PopConAnalyzer::write
void write()
Definition:
PopConAnalyzer.h:40
popcon::PopConAnalyzer
Definition:
PopConAnalyzer.h:19
popcon::PopConAnalyzer::SourceHandler
S SourceHandler
Definition:
PopConAnalyzer.h:21
ParameterSet
Definition:
Functions.h:16
popcon::PopConAnalyzer::m_populator
PopCon m_populator
Definition:
PopConAnalyzer.h:46
popcon
Definition:
Exception.h:6
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
popcon::PopConAnalyzer::analyze
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition:
PopConAnalyzer.h:37
popcon::PopConAnalyzer::endJob
virtual void endJob()
Definition:
PopConAnalyzer.h:33
Frameworkfwd.h
popcon::PopCon::write
void write(Source const &source)
Definition:
PopCon.h:123
popcon::PopConAnalyzer::~PopConAnalyzer
virtual ~PopConAnalyzer()
Definition:
PopConAnalyzer.h:28
ParameterSet.h
popcon::PopCon
Definition:
PopCon.h:34
popcon::PopConAnalyzer::m_source
SourceHandler m_source
Definition:
PopConAnalyzer.h:47
PopCon.h
edm::EventSetup
Definition:
EventSetup.h:44
edm::EDAnalyzer
Definition:
EDAnalyzer.h:27
EDAnalyzer.h
S
double S(const TLorentzVector &, const TLorentzVector &)
Definition:
Particle.cc:99
edm
HLT enums.
Definition:
AlignableModifier.h:17
edm::ParameterSet
Definition:
ParameterSet.h:36
popcon::PopConAnalyzer::PopConAnalyzer
PopConAnalyzer(const edm::ParameterSet &pset)
Definition:
PopConAnalyzer.h:23
edm::Event
Definition:
Event.h:69
popcon::PopConAnalyzer::beginJob
virtual void beginJob()
Definition:
PopConAnalyzer.h:32
Generated for CMSSW Reference Manual by
1.8.11