CMS 3D CMS Logo

TrackingRecHitPropagatorESProducer.cc
Go to the documentation of this file.
9 
10 #include <string>
11 #include <memory>
12 
14 public:
16 
17  std::unique_ptr<TrackingRecHitPropagator> produce(const TrackingComponentsRecord&);
18 
19  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
20 
21 private:
23 };
24 
25 using namespace edm;
26 
28  : mfToken_(setWhatProduced(this, p.getParameter<std::string>("ComponentName"))
30  edm::ESInputTag("", p.getParameter<std::string>("SimpleMagneticField")))) {}
31 
32 std::unique_ptr<TrackingRecHitPropagator> TrackingRecHitPropagatorESProducer::produce(
33  const TrackingComponentsRecord& iRecord) {
34  return std::make_unique<TrackingRecHitPropagator>(&iRecord.get(mfToken_));
35 }
36 
39  desc.add<std::string>("ComponentName");
40  desc.add<std::string>("SimpleMagneticField", "");
41  descriptions.addDefault(desc);
42 }
TrackingRecHitPropagatorESProducer
Definition: TrackingRecHitPropagatorESProducer.cc:13
edm::ESInputTag
Definition: ESInputTag.h:87
ESHandle.h
edm
HLT enums.
Definition: AlignableModifier.h:19
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
TrackingRecHitPropagatorESProducer::TrackingRecHitPropagatorESProducer
TrackingRecHitPropagatorESProducer(const edm::ParameterSet &p)
Definition: TrackingRecHitPropagatorESProducer.cc:27
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
ESProducer.h
TrackingRecHitPropagatorESProducer::mfToken_
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > mfToken_
Definition: TrackingRecHitPropagatorESProducer.cc:22
IdealMagneticFieldRecord
Definition: IdealMagneticFieldRecord.h:11
TrackingRecHitPropagator.h
edm::eventsetup::DependentRecordImplementation::get
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition: DependentRecordImplementation.h:109
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:47
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord >
ModuleFactory.h
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
ESInputTag.h
std
Definition: JetResolutionObject.h:76
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
TrackingRecHitPropagatorESProducer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: TrackingRecHitPropagatorESProducer.cc:37
TrackingComponentsRecord.h
EventSetup.h
edm::ESProducer
Definition: ESProducer.h:104
ParameterSet.h
TrackingRecHitPropagatorESProducer::produce
std::unique_ptr< TrackingRecHitPropagator > produce(const TrackingComponentsRecord &)
Definition: TrackingRecHitPropagatorESProducer.cc:32
edm::ConfigurationDescriptions::addDefault
void addDefault(ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:99
MagneticField
Definition: MagneticField.h:19
TrackingComponentsRecord
Definition: TrackingComponentsRecord.h:12