Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:31:25

0001 #ifndef ParametrizedMagneticFieldProducer_h
0002 #define ParametrizedMagneticFieldProducer_h
0003 
0004 /** \class ParametrizedMagneticFieldProducer
0005  *
0006  *   Description: Producer for the Parametrized Magnetic Field
0007  *
0008  *  \author Massimiliano Chiorboli, updated NA 03/08
0009  */
0010 
0011 #include "FWCore/Framework/interface/ESProducer.h"
0012 
0013 #include "MagneticField/Engine/interface/MagneticField.h"
0014 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0015 
0016 class IdealMagneticFieldRecord;
0017 
0018 namespace magneticfield {
0019   class ParametrizedMagneticFieldProducer : public edm::ESProducer {
0020   public:
0021     ParametrizedMagneticFieldProducer(const edm::ParameterSet&);
0022     ~ParametrizedMagneticFieldProducer() override;
0023 
0024     std::unique_ptr<MagneticField> produce(const IdealMagneticFieldRecord&);
0025     edm::ParameterSet pset;
0026   };
0027 }  // namespace magneticfield
0028 
0029 #endif