#include <VolumeBasedMagneticFieldESProducer.h>
Public Member Functions | |
std::auto_ptr< MagneticField > | produce (const IdealMagneticFieldRecord &iRecord) |
VolumeBasedMagneticFieldESProducer (const edm::ParameterSet &iConfig) | |
Private Member Functions | |
const VolumeBasedMagneticFieldESProducer & | operator= (const VolumeBasedMagneticFieldESProducer &) |
VolumeBasedMagneticFieldESProducer (const VolumeBasedMagneticFieldESProducer &) | |
Private Attributes | |
edm::ParameterSet | pset |
Definition at line 20 of file VolumeBasedMagneticFieldESProducer.h.
VolumeBasedMagneticFieldESProducer::VolumeBasedMagneticFieldESProducer | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 26 of file VolumeBasedMagneticFieldESProducer.cc.
References edm::ParameterSet::getUntrackedParameter(), pset, edm::ESProducer::setWhatProduced(), and AlCaHLTBitMon_QueryRunRegistry::string.
: pset(iConfig) { setWhatProduced(this, pset.getUntrackedParameter<std::string>("label","")); }
magneticfield::VolumeBasedMagneticFieldESProducer::VolumeBasedMagneticFieldESProducer | ( | const VolumeBasedMagneticFieldESProducer & | ) | [private] |
const VolumeBasedMagneticFieldESProducer& magneticfield::VolumeBasedMagneticFieldESProducer::operator= | ( | const VolumeBasedMagneticFieldESProducer & | ) | [private] |
std::auto_ptr< MagneticField > VolumeBasedMagneticFieldESProducer::produce | ( | const IdealMagneticFieldRecord & | iRecord | ) |
Definition at line 35 of file VolumeBasedMagneticFieldESProducer.cc.
References MagGeoBuilderFromDDD::barrelLayers(), MagGeoBuilderFromDDD::barrelVolumes(), MagGeoBuilderFromDDD::build(), gather_cfg::cout, debug, MagGeoBuilderFromDDD::endcapSectors(), MagGeoBuilderFromDDD::endcapVolumes(), edm::eventsetup::EventSetupRecord::get(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), relativeConstraints::keys, MagGeoBuilderFromDDD::maxR(), MagGeoBuilderFromDDD::maxZ(), edm::ESHandle< T >::product(), pset, alignCSCRings::s, MagGeoBuilderFromDDD::setScaling(), AlCaHLTBitMon_QueryRunRegistry::string, and makeHLTPrescaleTable::values.
{ bool debug = pset.getUntrackedParameter<bool>("debugBuilder", false); if (debug) { cout << "VolumeBasedMagneticFieldESProducer::produce() " << pset.getParameter<std::string>("version") << endl; } edm::ESTransientHandle<DDCompactView> cpv; iRecord.get("magfield",cpv ); MagGeoBuilderFromDDD builder(pset.getParameter<std::string>("version"), debug, pset.getParameter<bool>("overrideMasterSector")); // Get scaling factors vector<int> keys = pset.getParameter<vector<int> >("scalingVolumes"); vector<double> values = pset.getParameter<vector<double> >("scalingFactors"); if (keys.size() != 0) { builder.setScaling(keys, values); } builder.build(*cpv); // Get slave field edm::ESHandle<MagneticField> paramField; if (pset.getParameter<bool>("useParametrizedTrackerField")) {; iRecord.get(pset.getParameter<string>("paramLabel"),paramField); } std::auto_ptr<MagneticField> s(new VolumeBasedMagneticField(pset,builder.barrelLayers(), builder.endcapSectors(), builder.barrelVolumes(), builder.endcapVolumes(), builder.maxR(), builder.maxZ(), paramField.product(), false)); return s; }
Definition at line 31 of file VolumeBasedMagneticFieldESProducer.h.
Referenced by produce(), and VolumeBasedMagneticFieldESProducer().