CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

magneticfield::UniformMagneticFieldESProducer Class Reference

#include <UniformMagneticFieldESProducer.h>

Inheritance diagram for magneticfield::UniformMagneticFieldESProducer:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

Public Member Functions

std::auto_ptr< MagneticFieldproduce (const IdealMagneticFieldRecord &)
 UniformMagneticFieldESProducer (const edm::ParameterSet &pset)

Private Member Functions

const
UniformMagneticFieldESProducer
operator= (const UniformMagneticFieldESProducer &)
 UniformMagneticFieldESProducer (const UniformMagneticFieldESProducer &)

Private Attributes

float value

Detailed Description

Definition at line 22 of file UniformMagneticFieldESProducer.h.


Constructor & Destructor Documentation

UniformMagneticFieldESProducer::UniformMagneticFieldESProducer ( const edm::ParameterSet pset)

Definition at line 17 of file UniformMagneticFieldESProducer.cc.

References edm::ParameterSet::getUntrackedParameter(), and edm::ESProducer::setWhatProduced().

                                                                                          : value(pset.getParameter<double>("ZFieldInTesla")) {
  setWhatProduced(this, pset.getUntrackedParameter<std::string>("label",""));
}
magneticfield::UniformMagneticFieldESProducer::UniformMagneticFieldESProducer ( const UniformMagneticFieldESProducer ) [private]

Member Function Documentation

const UniformMagneticFieldESProducer& magneticfield::UniformMagneticFieldESProducer::operator= ( const UniformMagneticFieldESProducer ) [private]
std::auto_ptr< MagneticField > UniformMagneticFieldESProducer::produce ( const IdealMagneticFieldRecord iRecord)

Definition at line 22 of file UniformMagneticFieldESProducer.cc.

References alignCSCRings::s, and value.

{
  std::auto_ptr<MagneticField> s(new UniformMagneticField(value));
  return s;
}

Member Data Documentation

Definition at line 33 of file UniformMagneticFieldESProducer.h.

Referenced by produce().