25 namespace magneticfield {
47 using namespace magneticfield;
63 LogTrace(
"MagGeoBuilder") <<
"VolumeBasedMagneticFieldESProducer::produce() " <<
version_;
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
T getUntrackedParameter(std::string const &, T const &) const
const VolumeBasedMagneticFieldESProducer & operator=(const VolumeBasedMagneticFieldESProducer &)=delete
std::unique_ptr< MagneticField > produce(const IdealMagneticFieldRecord &iRecord)
std::vector< MagBLayer * > barrelLayers() const
Get barrel layers.
ESTransientHandle< ProductT > getTransientHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
const bool useParametrizedTrackerField_
std::vector< double > values
edm::ESGetToken< DDCompactView, IdealMagneticFieldRecord > cpvToken_
magneticfield::TableFileMap gridFiles
Specification of which data table is to be used for each volume.
std::vector< MagVolume6Faces * > barrelVolumes() const
virtual void build(const DDCompactView &cpv)
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
tuple VolumeBasedMagneticFieldESProducer
std::vector< MagESector * > endcapSectors() const
Get endcap layers.
std::vector< int > keys
Scaling factors for the field in specific volumes.
const MagFieldConfig conf_
VolumeBasedMagneticFieldESProducer(const edm::ParameterSet &iConfig)
const std::string version_
std::string version
Version of the data tables to be used.
T getParameter(std::string const &) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void setScaling(const std::vector< int > &keys, const std::vector< double > &values)
std::vector< MagVolume6Faces * > endcapVolumes() const
int geometryVersion
Version of the geometry to be used.
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > paramFieldToken_
void setGridFiles(const magneticfield::TableFileMap &gridFiles)