54 debug_{iConfig.getUntrackedParameter<
bool>(
"debugBuilder",
false)},
60 <<
"info:Constructing a DD4hep_VolumeBasedMagneticFieldESProducer";
74 <<
"DD4hep_VolumeBasedMagneticFieldESProducer::produce() " <<
version_;
93 edm::LogVerbatim(
"DD4hep_VolumeBasedMagneticFieldESProducer") <<
"produce() finished build";
98 edm::LogVerbatim(
"DD4hep_VolumeBasedMagneticFieldESProducer") <<
"Getting MF for parametrized field";
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
std::vector< MagVolume6Faces * > endcapVolumes() const
const std::string version_
DD4hep_VolumeBasedMagneticFieldESProducer(const edm::ParameterSet &iConfig)
std::unique_ptr< MagneticField > produce(const IdealMagneticFieldRecord &iRecord)
const DD4hep_VolumeBasedMagneticFieldESProducer & operator=(const DD4hep_VolumeBasedMagneticFieldESProducer &)=delete
ESTransientHandle< ProductT > getTransientHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
std::vector< double > values
magneticfield::TableFileMap gridFiles
Specification of which data table is to be used for each volume.
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
std::vector< int > keys
Scaling factors for the field in specific volumes.
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
const MagFieldConfig conf_
void setGridFiles(const TableFileMap &gridFiles)
std::vector< MagBLayer * > barrelLayers() const
Get barrel layers.
edm::ESGetToken< cms::DDCompactView, IdealMagneticFieldRecord > cpvToken_
std::string version
Version of the data tables to be used.
std::vector< MagESector * > endcapSectors() const
Get endcap layers.
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > paramFieldToken_
std::vector< MagVolume6Faces * > barrelVolumes() const
void build(const cms::DDDetector *det)
int geometryVersion
Version of the geometry to be used.
void setScaling(const std::vector< int > &keys, const std::vector< double > &values)
const bool useParametrizedTrackerField_
const cms::DDDetector * detector() const