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