Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:31:54

0001 #ifndef TrackPropagators_ESProducers_GeantPropagatorESProducer_h
0002 #define TrackPropagators_ESProducers_GeantPropagatorESProducer_h
0003 
0004 #include "FWCore/Framework/interface/ESProducer.h"
0005 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0006 #include "TrackingTools/GeomPropagators/interface/Propagator.h"
0007 #include "TrackingTools/Records/interface/TrackingComponentsRecord.h"
0008 #include "MagneticField/Engine/interface/MagneticField.h"
0009 #include "MagneticField/Records/interface/IdealMagneticFieldRecord.h"
0010 #include <memory>
0011 
0012 /*
0013  * GeantPropagatorESProducer
0014  *
0015  * Produces an Geant4ePropagator for track propagation
0016  *
0017  */
0018 
0019 class GeantPropagatorESProducer : public edm::ESProducer {
0020 public:
0021   GeantPropagatorESProducer(const edm::ParameterSet &p);
0022   ~GeantPropagatorESProducer() override;
0023 
0024   std::unique_ptr<Propagator> produce(const TrackingComponentsRecord &);
0025 
0026 private:
0027   edm::ParameterSet pset_;
0028   edm::ESGetToken<MagneticField, IdealMagneticFieldRecord> magFieldToken_;
0029   double plimit_;
0030 };
0031 
0032 #endif