Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
FWCore
Framework
src
stream
EDAnalyzerBase.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: FWCore/Framework
4
// Class : edm::stream::EDAnalyzerBase
5
//
6
// Implementation:
7
// [Notes on implementation]
8
//
9
// Original Author: Chris Jones
10
// Created: Fri, 02 Aug 2013 23:49:57 GMT
11
//
12
13
// system include files
14
15
// user include files
16
#include "
FWCore/Framework/interface/stream/EDAnalyzerBase.h
"
17
#include "
FWCore/Framework/src/edmodule_mightGet_config.h
"
18
19
#include "
FWCore/ParameterSet/interface/ConfigurationDescriptions.h
"
20
#include "
FWCore/ParameterSet/interface/ParameterSetDescription.h
"
21
22
#include "
FWCore/ServiceRegistry/interface/Service.h
"
23
#include "
FWCore/Framework/interface/ConstProductRegistry.h
"
24
25
using namespace
edm::stream
;
26
//
27
// constants, enums and typedefs
28
//
29
30
//
31
// static data member definitions
32
//
33
34
//
35
// constructors and destructor
36
//
37
EDAnalyzerBase::EDAnalyzerBase
() : moduleDescriptionPtr_(nullptr) {}
38
39
// EDAnalyzerBase::EDAnalyzerBase(const EDAnalyzerBase& rhs)
40
// {
41
// // do actual copying here;
42
// }
43
44
EDAnalyzerBase::~EDAnalyzerBase
() {}
45
46
//
47
// assignment operators
48
//
49
// const EDAnalyzerBase& EDAnalyzerBase::operator=(const EDAnalyzerBase& rhs)
50
// {
51
// //An exception safe implementation is
52
// EDAnalyzerBase temp(rhs);
53
// swap(rhs);
54
//
55
// return *this;
56
// }
57
58
//
59
// member functions
60
//
61
void
EDAnalyzerBase::callWhenNewProductsRegistered
(
std::function
<
void
(
BranchDescription
const
&)>
const
&
func
) {
62
callWhenNewProductsRegistered_
=
func
;
63
}
64
65
void
EDAnalyzerBase::registerProductsAndCallbacks
(
EDAnalyzerBase
const
*,
ProductRegistry
* reg) {
66
if
(
callWhenNewProductsRegistered_
) {
67
reg->
callForEachBranch
(
callWhenNewProductsRegistered_
);
68
69
Service<ConstProductRegistry>
regService;
70
regService->watchProductAdditions(
callWhenNewProductsRegistered_
);
71
}
72
}
73
74
//
75
// const member functions
76
//
77
78
//
79
// static member functions
80
//
81
void
EDAnalyzerBase::fillDescriptions
(
ConfigurationDescriptions
& descriptions) {
82
ParameterSetDescription
desc
;
83
desc
.setUnknown();
84
descriptions.
addDefault
(
desc
);
85
}
86
87
void
EDAnalyzerBase::prevalidate
(
ConfigurationDescriptions
& iConfig) {
edmodule_mightGet_config
(iConfig); }
88
89
static
const
std::string
kBaseType
(
"EDAnalyzer"
);
90
91
const
std::string
&
EDAnalyzerBase::baseType
() {
return
kBaseType
; }
ConfigurationDescriptions.h
ConstProductRegistry.h
edm::ProductRegistry::callForEachBranch
void callForEachBranch(T const &iFunc)
Definition:
ProductRegistry.h:100
edmodule_mightGet_config.h
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:52
edm::ProductRegistry
Definition:
ProductRegistry.h:37
edm::stream::EDAnalyzerBase::registerProductsAndCallbacks
void registerProductsAndCallbacks(EDAnalyzerBase const *, ProductRegistry *reg)
Definition:
EDAnalyzerBase.cc:65
edm::stream::EDAnalyzerBase::prevalidate
static void prevalidate(ConfigurationDescriptions &descriptions)
Definition:
EDAnalyzerBase.cc:87
Service.h
edm::stream::EDAnalyzerBase::EDAnalyzerBase
EDAnalyzerBase()
Definition:
EDAnalyzerBase.cc:37
edm::stream::EDAnalyzerBase::callWhenNewProductsRegistered
void callWhenNewProductsRegistered(std::function< void(BranchDescription const &)> const &func)
Definition:
EDAnalyzerBase.cc:61
ParameterSetDescription.h
edm::stream::EDAnalyzerBase::callWhenNewProductsRegistered_
std::function< void(BranchDescription const &)> callWhenNewProductsRegistered_
Definition:
EDAnalyzerBase.h:69
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:28
edm::kBaseType
static const std::string kBaseType("EDAnalyzer")
edm::stream::EDAnalyzerBase::baseType
static const std::string & baseType()
Definition:
EDAnalyzerBase.cc:91
edm::Service
Definition:
Service.h:30
edm::stream::EDAnalyzerBase::fillDescriptions
static void fillDescriptions(ConfigurationDescriptions &descriptions)
Definition:
EDAnalyzerBase.cc:81
TrackCollections2monitor_cff.func
func
Definition:
TrackCollections2monitor_cff.py:359
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
submitPVResolutionJobs.desc
string desc
Definition:
submitPVResolutionJobs.py:251
edm::stream::EDAnalyzerBase
Definition:
EDAnalyzerBase.h:35
HiBiasedCentrality_cfi.function
function
Definition:
HiBiasedCentrality_cfi.py:4
edm::stream
Definition:
DQMEDAnalyzer.h:13
edm::stream::EDAnalyzerBase::~EDAnalyzerBase
~EDAnalyzerBase() override
Definition:
EDAnalyzerBase.cc:44
edm::BranchDescription
Definition:
BranchDescription.h:32
EDAnalyzerBase.h
edm::edmodule_mightGet_config
void edmodule_mightGet_config(ConfigurationDescriptions &iDesc)
Definition:
edmodule_mightGet_config.cc:36
edm::ConfigurationDescriptions::addDefault
void addDefault(ParameterSetDescription const &psetDescription)
Definition:
ConfigurationDescriptions.cc:99
Generated for CMSSW Reference Manual by
1.8.16