CMS 3D CMS Logo

MTDTransientTrackingRecHitBuilderESProducer.cc
Go to the documentation of this file.
3 
5 
8 
12 
13 #include<memory>
14 
16 
18 
19 namespace edm {class ParameterSet;}
20 
22 
24 public:
27 
29  ~MTDTransientTrackingRecHitBuilderESProducer() override = default;
30 
31  // Operations
32  std::unique_ptr<TransientTrackingRecHitBuilder> produce(const TransientRecHitRecord&);
33 
34 protected:
35 
36 private:
37 };
38 
39 using namespace edm;
40 using namespace std;
41 
43 
44  setWhatProduced(this,parameterSet.getParameter<string>("ComponentName"));
45 }
46 
47 std::unique_ptr<TransientTrackingRecHitBuilder>
49 
50 
51  ESHandle<GlobalTrackingGeometry> trackingGeometry;
52  iRecord.getRecord<GlobalTrackingGeometryRecord>().get(trackingGeometry);
53 
54  return std::make_unique<MTDTransientTrackingRecHitBuilder>(trackingGeometry);
55 }
56 
59 
T getParameter(std::string const &) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
MTDTransientTrackingRecHitBuilderESProducer(const edm::ParameterSet &)
Constructor.
HLT enums.
std::unique_ptr< TransientTrackingRecHitBuilder > produce(const TransientRecHitRecord &)
ParameterSet const & parameterSet(Provenance const &provenance)
Definition: Provenance.cc:11