test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
23
ParametrizedMagneticFieldProducer::ParametrizedMagneticFieldProducer
(
const
edm::ParameterSet
& iConfig) :
pset
(iConfig) {
24
setWhatProduced
(
this
,
pset
.
getUntrackedParameter
<
std::string
>(
"label"
,
""
));
25
}
26
27
28
ParametrizedMagneticFieldProducer::~ParametrizedMagneticFieldProducer
(){}
29
30
31
std::auto_ptr<MagneticField>
32
ParametrizedMagneticFieldProducer::produce
(
const
IdealMagneticFieldRecord
& iRecord)
33
{
34
string
version
=
pset
.
getParameter
<
string
>(
"version"
);
35
ParameterSet
parameters
=
pset
.
getParameter
<
ParameterSet
>(
"parameters"
);
36
37
return
ParametrizedMagneticFieldFactory::get
(version, parameters);
38
}
39
40
#include "
FWCore/Framework/interface/ModuleFactory.h
"
41
DEFINE_FWK_EVENTSETUP_MODULE
(
ParametrizedMagneticFieldProducer
);
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
magneticfield::ParametrizedMagneticFieldProducer::pset
edm::ParameterSet pset
Definition:
ParametrizedMagneticFieldProducer.h:26
magneticfield::ParametrizedMagneticFieldProducer
Definition:
ParametrizedMagneticFieldProducer.h:19
relval_steps.version
string version
Definition:
relval_steps.py:1579
volumeBasedMagneticField_090322_2pi_scaled_cfi.ParametrizedMagneticFieldProducer
tuple ParametrizedMagneticFieldProducer
Definition:
volumeBasedMagneticField_090322_2pi_scaled_cfi.py:21
EventSetup.h
TrackValidation_cff.pset
tuple pset
Definition:
TrackValidation_cff.py:374
IdealMagneticFieldRecord
Definition:
IdealMagneticFieldRecord.h:11
ParametrizedMagneticFieldFactory::get
static std::auto_ptr< MagneticField > get(std::string version, const edm::ParameterSet ¶meters)
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
ParameterSet.h
magneticfield::ParametrizedMagneticFieldProducer::~ParametrizedMagneticFieldProducer
~ParametrizedMagneticFieldProducer()
Definition:
ParametrizedMagneticFieldProducer.cc:28
ParametrizedMagneticFieldProducer.h
ESHandle.h
magneticfield::ParametrizedMagneticFieldProducer::produce
std::auto_ptr< MagneticField > produce(const IdealMagneticFieldRecord &)
Definition:
ParametrizedMagneticFieldProducer.cc:32
HLT_25ns10e33_v2_cff.parameters
tuple parameters
Definition:
HLT_25ns10e33_v2_cff.py:3864
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
edm::ParameterSet
Definition:
ParameterSet.h:36
ModuleFactory.h
IdealMagneticFieldRecord.h
ParametrizedMagneticFieldFactory.h
Generated for CMSSW Reference Manual by
1.8.5