29 using namespace magneticfield;
38 throw cms::Exception(
"InvalidParameter") <<
"Invalid values for parameters \"nominalCurrents\" and \"maps\"";
48 std::auto_ptr<MagneticField>
58 current = rInfo->m_avg_current;
59 message =
" (from RunInfo DB)";
61 message =
" (from valueOverride card)";
66 edm::LogInfo(
"MagneticField|AutoMagneticField") <<
"Current: " << current << message <<
"; using map with label: " << model;
71 iRecord.
get(model,map);
75 std::auto_ptr<MagneticField>
s(result);
83 for(;i<(int)
maps.size()-1;i++) {
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
const DepRecordT & getRecord() const
std::vector< std::string > maps
std::auto_ptr< MagneticField > produce(const IdealMagneticFieldRecord &)
void get(HolderT &iHolder) const
~AutoMagneticFieldESProducer()
std::vector< int > nominalCurrents
std::string closerModel(float current)
T const * product() const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
tuple AutoMagneticFieldESProducer