CMS 3D CMS Logo

UniformMagneticFieldESProducer.cc
Go to the documentation of this file.
1 
8 
10 
12 
13 using namespace magneticfield;
14 
16  : value(pset.getParameter<double>("ZFieldInTesla")) {
17  setWhatProduced(this, pset.getUntrackedParameter<std::string>("label", ""));
18 }
19 
20 std::unique_ptr<MagneticField> UniformMagneticFieldESProducer::produce(const IdealMagneticFieldRecord& iRecord) {
21  return std::make_unique<UniformMagneticField>(value);
22 }
23 
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
std::unique_ptr< MagneticField > produce(const IdealMagneticFieldRecord &)
Definition: value.py:1
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:61