CMS 3D CMS Logo

MuonTransientTrackingRecHitBuilderESProducer.cc
Go to the documentation of this file.
1 
11 
13 
18 
22 
23 #include <memory>
24 
26 public:
29 
30  // Operations
31  std::unique_ptr<TransientTrackingRecHitBuilder> produce(const TransientRecHitRecord&);
32 
33  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
34 
35 private:
37 };
38 
39 using namespace edm;
40 using namespace std;
41 
44  : trackingGeometryToken_(setWhatProduced(this, parameterSet.getParameter<string>("ComponentName"))
46 
47 std::unique_ptr<TransientTrackingRecHitBuilder> MuonTransientTrackingRecHitBuilderESProducer::produce(
48  const TransientRecHitRecord& iRecord) {
49  return std::make_unique<MuonTransientTrackingRecHitBuilder>(iRecord.getHandle(trackingGeometryToken_));
50 }
51 
54  desc.add<string>("ComponentName");
55  descriptions.addDefault(desc);
56 }
57 
MuonTransientTrackingRecHitBuilderESProducer(const edm::ParameterSet &)
Constructor.
ParameterSet const & parameterSet(StableProvenance const &provenance, ProcessHistory const &history)
Definition: Provenance.cc:11
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void addDefault(ParameterSetDescription const &psetDescription)
ESHandle< ProductT > getHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
std::unique_ptr< TransientTrackingRecHitBuilder > produce(const TransientRecHitRecord &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
HLT enums.
edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > const trackingGeometryToken_