CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ParametrizedMagneticFieldProducer.cc
Go to the documentation of this file.
1 
8 
10 
14 
15 #include <string>
16 #include <iostream>
17 
18 using namespace std;
19 using namespace edm;
20 using namespace magneticfield;
21 
24 }
25 
27 
28 std::unique_ptr<MagneticField> ParametrizedMagneticFieldProducer::produce(const IdealMagneticFieldRecord& iRecord) {
29  string version = pset.getParameter<string>("version");
31 
32  return ParametrizedMagneticFieldFactory::get(version, parameters);
33 }
34 
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
T getUntrackedParameter(std::string const &, T const &) const
static std::unique_ptr< MagneticField > get(std::string version, const edm::ParameterSet &parameters)
std::unique_ptr< MagneticField > produce(const IdealMagneticFieldRecord &)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60