51 useParametrizedTrackerField_{iConfig.getParameter<
bool>(
"useParametrizedTrackerField")},
52 conf_{iConfig, debug_},
53 version_{iConfig.getParameter<
std::string>(
"version")} {
54 auto cc = setWhatProduced(
this, iConfig.getUntrackedParameter<
std::string>(
"label",
""));
56 if (useParametrizedTrackerField_) {
57 paramFieldToken_ = cc.consumes(
edm::ESInputTag{
"", iConfig.getParameter<
string>(
"paramLabel")});
63 LogTrace(
"MagGeoBuilder") <<
"VolumeBasedMagneticFieldESProducer::produce() " <<
version_;
ESTransientHandle< ProductT > getTransientHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
std::vector< MagVolume6Faces * > barrelVolumes() const
std::vector< MagESector * > endcapSectors() const
Get endcap layers.
const VolumeBasedMagneticFieldESProducer & operator=(const VolumeBasedMagneticFieldESProducer &)=delete
std::unique_ptr< MagneticField > produce(const IdealMagneticFieldRecord &iRecord)
std::vector< MagBLayer * > barrelLayers() const
Get barrel layers.
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.
T getUntrackedParameter(std::string const &, T const &) const
virtual void build(const DDCompactView &cpv)
std::vector< int > keys
Scaling factors for the field in specific volumes.
const MagFieldConfig conf_
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
VolumeBasedMagneticFieldESProducer(const edm::ParameterSet &iConfig)
const std::string version_
std::vector< MagVolume6Faces * > endcapVolumes() const
std::string version
Version of the data tables to be used.
void setScaling(const std::vector< int > &keys, const std::vector< double > &values)
int geometryVersion
Version of the geometry to be used.
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > paramFieldToken_
VolumeBasedMagneticFieldESProducer
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
void setGridFiles(const magneticfield::TableFileMap &gridFiles)