Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
MagneticField
UniformEngine
plugins
UniformMagneticFieldESProducer.cc
Go to the documentation of this file.
1
8
#include "
MagneticField/UniformEngine/plugins/UniformMagneticFieldESProducer.h
"
9
#include "
MagneticField/UniformEngine/src/UniformMagneticField.h
"
10
11
#include "
MagneticField/Records/interface/IdealMagneticFieldRecord.h
"
12
13
#include "
FWCore/Framework/interface/ModuleFactory.h
"
14
15
using namespace
magneticfield;
16
17
UniformMagneticFieldESProducer::UniformMagneticFieldESProducer
(
const
edm::ParameterSet
& pset) :
value
(pset.getParameter<double>(
"ZFieldInTesla"
)) {
18
setWhatProduced
(
this
, pset.
getUntrackedParameter
<std::string>(
"label"
,
""
));
19
}
20
21
22
std::auto_ptr<MagneticField>
UniformMagneticFieldESProducer::produce
(
const
IdealMagneticFieldRecord
& iRecord)
23
{
24
std::auto_ptr<MagneticField>
s
(
new
UniformMagneticField
(
value
));
25
return
s
;
26
}
27
28
DEFINE_FWK_EVENTSETUP_MODULE
(
UniformMagneticFieldESProducer
);
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
magneticfield::UniformMagneticFieldESProducer::produce
std::auto_ptr< MagneticField > produce(const IdealMagneticFieldRecord &)
Definition:
UniformMagneticFieldESProducer.cc:22
relativeConstraints.value
tuple value
Definition:
relativeConstraints.py:54
IdealMagneticFieldRecord
Definition:
IdealMagneticFieldRecord.h:11
edm::ESProducer::setWhatProduced
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition:
ESProducer.h:115
magneticfield::UniformMagneticFieldESProducer
Definition:
UniformMagneticFieldESProducer.h:22
UniformMagneticField.h
UniformMagneticField
Definition:
UniformMagneticField.h:16
alignCSCRings.s
list s
Definition:
alignCSCRings.py:91
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:56
magneticfield::UniformMagneticFieldESProducer::UniformMagneticFieldESProducer
UniformMagneticFieldESProducer(const edm::ParameterSet &pset)
Definition:
UniformMagneticFieldESProducer.cc:17
magneticfield::UniformMagneticFieldESProducer::value
float value
Definition:
UniformMagneticFieldESProducer.h:33
edm::ParameterSet
Definition:
ParameterSet.h:35
ModuleFactory.h
UniformMagneticFieldESProducer.h
IdealMagneticFieldRecord.h
Generated for CMSSW Reference Manual by
1.8.5