Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider | |
static void | prevalidate (ConfigurationDescriptions &) |
Static Private Member Functions | |
static std::string_view | closerNominalLabel (float current) |
Private Attributes | |
int | cachedGeometryVersion_ {-1} |
edm::ESGetToken< MagFieldConfig, IdealMagneticFieldRecord > | chosenConfigToken_ |
const bool | debug_ |
cms::DDDetector * | detector_ {nullptr} |
edm::ESGetToken< MagFieldConfig, MagFieldConfigRcd > | knownFromParamConfigToken_ |
edm::ESGetToken< FileBlob, MFGeometryFileRcd > | mayConsumeBlobToken_ |
edm::ESGetToken< MagFieldConfig, MagFieldConfigRcd > | mayGetConfigToken_ |
const bool | useMergeFileIfAvailable_ |
Additional Inherited Members | |
Protected Types inherited from edm::ESProxyFactoryProducer | |
using | EventSetupRecordKey = eventsetup::EventSetupRecordKey |
Protected Types inherited from edm::eventsetup::DataProxyProvider | |
using | KeyedProxiesVector = std::vector< std::pair< DataKey, std::shared_ptr< DataProxy > >> |
Protected Member Functions inherited from edm::ESProducer | |
ESConsumesInfo * | consumesInfoPushBackNew () |
unsigned int | consumesInfoSize () const |
template<typename CallbackT , typename TList , typename TRecord > | |
void | registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>> iCallback, const TList *, const TRecord *iRecord, const es::Label &iLabel) |
template<typename CallbackT , typename TRecord > | |
void | registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>>, const eventsetup::produce::Null *, const TRecord *, const es::Label &) |
template<typename T > | |
auto | setWhatProduced (T *iThis, const es::Label &iLabel={}) |
template<typename T > | |
auto | setWhatProduced (T *iThis, const char *iLabel) |
template<typename T > | |
auto | setWhatProduced (T *iThis, const std::string &iLabel) |
template<typename T , typename TDecorator > | |
auto | setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel={}) |
template<typename T , typename TReturn , typename TRecord > | |
auto | setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel={}) |
template<typename T , typename TReturn , typename TRecord , typename TDecorator > | |
auto | setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TDecorator &iDec, const es::Label &iLabel={}) |
template<typename TFunc > | |
auto | setWhatProduced (TFunc &&func, const es::Label &iLabel={}) |
template<typename TReturn , typename TRecord , typename TFunc , typename TDecorator > | |
ESConsumesCollectorT< TRecord > | setWhatProduced (TFunc &&func, TDecorator &&iDec, const es::Label &iLabel={}) |
void | usesResources (std::vector< std::string > const &) |
Protected Member Functions inherited from edm::ESProxyFactoryProducer | |
template<class TFactory > | |
void | registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string()) |
virtual void | registerFactoryWithKey (const EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string()) |
KeyedProxiesVector | registerProxies (const EventSetupRecordKey &, unsigned int iovIndex) override |
Protected Member Functions inherited from edm::eventsetup::DataProxyProvider | |
template<class T > | |
void | usingRecord () |
void | usingRecordWithKey (const EventSetupRecordKey &key) |
Definition at line 50 of file DD4hep_VolumeBasedMagneticFieldESProducerFromDB.cc.
DD4hep_VolumeBasedMagneticFieldESProducerFromDB::DD4hep_VolumeBasedMagneticFieldESProducerFromDB | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 85 of file DD4hep_VolumeBasedMagneticFieldESProducerFromDB.cc.
References gpuPixelDoublets::cc, chooseConfigAtRuntime(), chooseConfigViaParameter(), chosenConfigToken_, closerNominalLabel(), MagFieldConfig::geometryVersion, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), edm::ESSharedResourceNames::kDD4hep, knownFromParamConfigToken_, label, RunInfo::m_avg_current, mayConsumeBlobToken_, mayGetConfigToken_, alignCSCRings::s, edm::ESProducer::setWhatProduced(), AlCaHLTBitMon_QueryRunRegistry::string, to_string(), edm::ESProducer::usesResources(), and MagFieldConfig::version.
|
override |
Definition at line 137 of file DD4hep_VolumeBasedMagneticFieldESProducerFromDB.cc.
References detector_.
|
delete |
std::shared_ptr< MagFieldConfig const > DD4hep_VolumeBasedMagneticFieldESProducerFromDB::chooseConfigAtRuntime | ( | const IdealMagneticFieldRecord & | iRecord | ) |
Definition at line 141 of file DD4hep_VolumeBasedMagneticFieldESProducerFromDB.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getHandle(), and mayGetConfigToken_.
Referenced by DD4hep_VolumeBasedMagneticFieldESProducerFromDB().
std::shared_ptr< MagFieldConfig const > DD4hep_VolumeBasedMagneticFieldESProducerFromDB::chooseConfigViaParameter | ( | const IdealMagneticFieldRecord & | iRecord | ) |
Definition at line 149 of file DD4hep_VolumeBasedMagneticFieldESProducerFromDB.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getHandle(), and knownFromParamConfigToken_.
Referenced by DD4hep_VolumeBasedMagneticFieldESProducerFromDB().
|
staticprivate |
Definition at line 222 of file DD4hep_VolumeBasedMagneticFieldESProducerFromDB.cc.
References mps_fire::i, createfilelist::int, and RunInfoPI::nominalCurrents.
Referenced by DD4hep_VolumeBasedMagneticFieldESProducerFromDB().
|
static |
Definition at line 234 of file DD4hep_VolumeBasedMagneticFieldESProducerFromDB.cc.
References edm::ConfigurationDescriptions::addDefault(), submitPVResolutionJobs::desc, and AlCaHLTBitMon_QueryRunRegistry::string.
|
delete |
std::unique_ptr< MagneticField > DD4hep_VolumeBasedMagneticFieldESProducerFromDB::produce | ( | const IdealMagneticFieldRecord & | iRecord | ) |
Definition at line 158 of file DD4hep_VolumeBasedMagneticFieldESProducerFromDB.cc.
References magneticfield::MagGeoBuilder::barrelLayers(), magneticfield::MagGeoBuilder::barrelVolumes(), magneticfield::MagGeoBuilder::build(), cachedGeometryVersion_, chosenConfigToken_, debug_, detector_, magneticfield::MagGeoBuilder::endcapSectors(), magneticfield::MagGeoBuilder::endcapVolumes(), ParametrizedMagneticFieldFactory::get(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getTransientHandle(), magneticfield::MagGeoBuilder::maxR(), magneticfield::MagGeoBuilder::maxZ(), mayConsumeBlobToken_, magneticfield::MagGeoBuilder::setGridFiles(), magneticfield::MagGeoBuilder::setScaling(), and useMergeFileIfAvailable_.
|
private |
Definition at line 78 of file DD4hep_VolumeBasedMagneticFieldESProducerFromDB.cc.
Referenced by produce().
|
private |
Definition at line 74 of file DD4hep_VolumeBasedMagneticFieldESProducerFromDB.cc.
Referenced by DD4hep_VolumeBasedMagneticFieldESProducerFromDB(), and produce().
|
private |
Definition at line 80 of file DD4hep_VolumeBasedMagneticFieldESProducerFromDB.cc.
Referenced by produce().
|
private |
Definition at line 77 of file DD4hep_VolumeBasedMagneticFieldESProducerFromDB.cc.
Referenced by produce(), and ~DD4hep_VolumeBasedMagneticFieldESProducerFromDB().
|
private |
Definition at line 70 of file DD4hep_VolumeBasedMagneticFieldESProducerFromDB.cc.
Referenced by chooseConfigViaParameter(), and DD4hep_VolumeBasedMagneticFieldESProducerFromDB().
|
private |
Definition at line 76 of file DD4hep_VolumeBasedMagneticFieldESProducerFromDB.cc.
Referenced by DD4hep_VolumeBasedMagneticFieldESProducerFromDB(), and produce().
|
private |
Definition at line 69 of file DD4hep_VolumeBasedMagneticFieldESProducerFromDB.cc.
Referenced by chooseConfigAtRuntime(), and DD4hep_VolumeBasedMagneticFieldESProducerFromDB().
|
private |
Definition at line 81 of file DD4hep_VolumeBasedMagneticFieldESProducerFromDB.cc.
Referenced by produce().