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