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
RecoMuon
MuonIsolationProducers
plugins
MuIsoDepositCopyProducer.cc
Go to the documentation of this file.
1
#include "
RecoMuon/MuonIsolationProducers/plugins/MuIsoDepositCopyProducer.h
"
2
3
// Framework
4
#include "
FWCore/Framework/interface/EDProducer.h
"
5
#include "
FWCore/Framework/interface/Event.h
"
6
#include "
FWCore/Framework/interface/EventSetup.h
"
7
#include "
DataFormats/Common/interface/Handle.h
"
8
9
#include "
FWCore/Framework/interface/ESHandle.h
"
10
11
#include "
FWCore/Utilities/interface/Exception.h
"
12
13
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
14
#include <string>
15
16
using namespace
edm
;
17
using namespace
std
;
18
using namespace
reco
;
19
21
MuIsoDepositCopyProducer::MuIsoDepositCopyProducer
(
const
ParameterSet
& par)
22
: theConfig(par),
23
theInputTags(par.getParameter<
std
::
vector
<
edm
::
InputTag
> >(
"inputTags"
)),
24
theDepositNames(par.getParameter<
std
::
vector
<
std
::
string
> >(
"depositNames"
))
25
26
{
27
LogDebug
(
"RecoMuon|MuonIsolation"
) <<
" MuIsoDepositCopyProducer CTOR"
;
28
if
(
theInputTags
.size() !=
theDepositNames
.size()) {
29
throw
cms::Exception
(
"MuIsoDepositCopyProducer constructor"
) <<
"the sizes of input/output vectors don't match"
;
30
}
31
32
for
(
unsigned
int
i
= 0;
i
<
theDepositNames
.size(); ++
i
) {
33
std::string
alias
=
theConfig
.
getParameter
<
std::string
>(
"@module_label"
);
34
if
(!
theDepositNames
[
i
].
empty
())
35
alias
+=
"_"
+
theDepositNames
[
i
];
36
produces<reco::IsoDepositMap>(
theDepositNames
[
i
]).setBranchAlias(
alias
);
37
}
38
for
(
unsigned
int
iDep = 0; iDep <
theInputTags
.size(); ++iDep)
39
theInputTokens
.push_back(consumes<reco::IsoDepositMap>(
theInputTags
.at(iDep)));
40
}
41
43
MuIsoDepositCopyProducer::~MuIsoDepositCopyProducer
() {
44
LogDebug
(
"RecoMuon/MuIsoDepositCopyProducer"
) <<
" MuIsoDepositCopyProducer DTOR"
;
45
}
46
48
void
MuIsoDepositCopyProducer::produce
(
Event
&
event
,
const
EventSetup
& eventSetup) {
49
std::string
metname
=
"RecoMuon|MuonIsolationProducers|MuIsoDepositCopyProducer"
;
50
51
LogDebug
(
metname
) <<
" Muon Deposit producing..."
52
<<
" BEGINING OF EVENT "
53
<<
"================================"
;
54
55
LogTrace
(
metname
) <<
" Taking the inputs: "
;
56
57
for
(
unsigned
int
iDep = 0; iDep <
theInputTokens
.size(); ++iDep) {
58
Handle<reco::IsoDepositMap>
inDep;
59
event
.getByToken(
theInputTokens
[iDep], inDep);
60
61
event
.put(std::make_unique<reco::IsoDepositMap>(*inDep),
theDepositNames
[iDep]);
62
}
63
64
LogTrace
(
metname
) <<
" END OF EVENT "
65
<<
"================================"
;
66
}
67
68
#include "
FWCore/PluginManager/interface/ModuleDef.h
"
69
#include "
FWCore/Framework/interface/MakerMacros.h
"
70
DEFINE_FWK_MODULE
(
MuIsoDepositCopyProducer
);
Handle.h
mps_fire.i
i
Definition:
mps_fire.py:428
MessageLogger.h
EDProducer.h
ESHandle.h
edm
HLT enums.
Definition:
AlignableModifier.h:19
MuIsoDepositCopyProducer::produce
void produce(edm::Event &, const edm::EventSetup &) override
data making method
Definition:
MuIsoDepositCopyProducer.cc:48
MuIsoDepositCopyProducer
Definition:
MuIsoDepositCopyProducer.h:20
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:45
edm::Handle
Definition:
AssociativeIterator.h:50
MakerMacros.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
MuIsoDepositCopyProducer::theConfig
edm::ParameterSet theConfig
module configuration
Definition:
MuIsoDepositCopyProducer.h:33
MuIsoDepositCopyProducer::theDepositNames
std::vector< std::string > theDepositNames
Definition:
MuIsoDepositCopyProducer.h:38
MuIsoDepositCopyProducer::~MuIsoDepositCopyProducer
~MuIsoDepositCopyProducer() override
destructor
Definition:
MuIsoDepositCopyProducer.cc:43
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
LogDebug
#define LogDebug(id)
Definition:
MessageLogger.h:233
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
ModuleDef.h
trackerHitRTTI::vector
Definition:
trackerHitRTTI.h:21
edm::EventSetup
Definition:
EventSetup.h:58
MuIsoDepositCopyProducer.h
std
Definition:
JetResolutionObject.h:76
SiStripOfflineCRack_cfg.alias
alias
Definition:
SiStripOfflineCRack_cfg.py:128
relativeConstraints.empty
bool empty
Definition:
relativeConstraints.py:46
Exception
Definition:
hltDiff.cc:245
EventSetup.h
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition:
ParameterSet.h:303
Exception.h
MuIsoDepositCopyProducer::theInputTokens
std::vector< edm::EDGetTokenT< reco::IsoDepositMap > > theInputTokens
Definition:
MuIsoDepositCopyProducer.h:37
LogTrace
#define LogTrace(id)
Definition:
MessageLogger.h:234
MuIsoDepositCopyProducer::MuIsoDepositCopyProducer
MuIsoDepositCopyProducer(const edm::ParameterSet &)
constructor
Definition:
MuIsoDepositCopyProducer.cc:21
event
Definition:
event.py:1
edm::Event
Definition:
Event.h:73
edm::InputTag
Definition:
InputTag.h:15
MuIsoDepositCopyProducer::theInputTags
std::vector< edm::InputTag > theInputTags
for backward compatibility: take one input module and
Definition:
MuIsoDepositCopyProducer.h:36
metname
const std::string metname
Definition:
MuonSeedOrcaPatternRecognition.cc:40
Generated for CMSSW Reference Manual by
1.8.16