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
n
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
c
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
src
MagneticField
ParametrizedEngine
plugins
ParametrizedMagneticFieldProducer.cc
Go to the documentation of this file.
1
6
#include "
MagneticField/ParametrizedEngine/plugins/ParametrizedMagneticFieldProducer.h
"
7
#include "
MagneticField/ParametrizedEngine/interface/ParametrizedMagneticFieldFactory.h
"
8
9
#include "
MagneticField/Records/interface/IdealMagneticFieldRecord.h
"
10
11
#include "
FWCore/Framework/interface/ESHandle.h
"
12
#include "
FWCore/Framework/interface/EventSetup.h
"
13
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
14
15
#include <string>
16
#include <iostream>
17
18
using namespace
std
;
19
using namespace
edm
;
20
using namespace
magneticfield
;
21
22
ParametrizedMagneticFieldProducer::ParametrizedMagneticFieldProducer
(
const
edm::ParameterSet
& iConfig) :
pset
(iConfig) {
23
setWhatProduced
(
this
,
pset
.
getUntrackedParameter
<
std::string
>(
"label"
,
""
));
24
}
25
26
ParametrizedMagneticFieldProducer::~ParametrizedMagneticFieldProducer
() {}
27
28
std::unique_ptr<MagneticField>
ParametrizedMagneticFieldProducer::produce
(
const
IdealMagneticFieldRecord
& iRecord) {
29
string
version
=
pset
.
getParameter
<
string
>(
"version"
);
30
ParameterSet
parameters
=
pset
.
getParameter
<
ParameterSet
>(
"parameters"
);
31
32
return
ParametrizedMagneticFieldFactory::get
(
version
,
parameters
);
33
}
34
35
#include "
FWCore/Framework/interface/ModuleFactory.h
"
36
DEFINE_FWK_EVENTSETUP_MODULE
(
ParametrizedMagneticFieldProducer
);
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:166
ModuleFactory.h
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition:
ParameterSet.h:307
magneticfield::ParametrizedMagneticFieldProducer::pset
edm::ParameterSet pset
Definition:
ParametrizedMagneticFieldProducer.h:25
magneticfield::ParametrizedMagneticFieldProducer
Definition:
ParametrizedMagneticFieldProducer.h:19
volumeBasedMagneticField_160812_cfi.ParametrizedMagneticFieldProducer
ParametrizedMagneticFieldProducer
Definition:
volumeBasedMagneticField_160812_cfi.py:25
EventSetup.h
IdealMagneticFieldRecord
Definition:
IdealMagneticFieldRecord.h:11
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
std
Definition:
JetResolutionObject.h:76
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
ParameterSet.h
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
ParametrizedMagneticFieldFactory::get
static std::unique_ptr< MagneticField > get(std::string version, const edm::ParameterSet ¶meters)
beamSpotPI::parameters
parameters
Definition:
BeamSpotPayloadInspectorHelper.h:35
BeamSplash_cfg.version
version
Definition:
BeamSplash_cfg.py:45
ParametrizedMagneticFieldProducer.h
ESHandle.h
magneticfield::ParametrizedMagneticFieldProducer::produce
std::unique_ptr< MagneticField > produce(const IdealMagneticFieldRecord &)
Definition:
ParametrizedMagneticFieldProducer.cc:28
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:61
magneticfield::ParametrizedMagneticFieldProducer::~ParametrizedMagneticFieldProducer
~ParametrizedMagneticFieldProducer() override
Definition:
ParametrizedMagneticFieldProducer.cc:26
magneticfield
Definition:
MagFieldConfig.h:22
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::ParameterSet
Definition:
ParameterSet.h:48
IdealMagneticFieldRecord.h
ParametrizedMagneticFieldFactory.h
Generated for CMSSW Reference Manual by
1.8.14