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 
magneticfield::UniformMagneticFieldESProducer
Definition: UniformMagneticFieldESProducer.h:20
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
magneticfield
Definition: MagFieldConfig.h:22
UniformMagneticFieldESProducer.h
IdealMagneticFieldRecord
Definition: IdealMagneticFieldRecord.h:11
magneticfield::UniformMagneticFieldESProducer::produce
std::unique_ptr< MagneticField > produce(const IdealMagneticFieldRecord &)
Definition: UniformMagneticFieldESProducer.cc:20
magneticfield::UniformMagneticFieldESProducer::UniformMagneticFieldESProducer
UniformMagneticFieldESProducer(const edm::ParameterSet &pset)
Definition: UniformMagneticFieldESProducer.cc:15
IdealMagneticFieldRecord.h
edm::ParameterSet
Definition: ParameterSet.h:47
value
Definition: value.py:1
UniformMagneticField.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ModuleFactory.h
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27