CMS 3D CMS Logo

MTDTransientTrackingRecHitBuilderESProducer.cc
Go to the documentation of this file.
3 
5 
8 
12 
13 #include <memory>
14 
16 
19 
21 
23 public:
26 
29 
30  // Operations
31  std::unique_ptr<TransientTrackingRecHitBuilder> produce(const TransientRecHitRecord&);
32 
33 private:
35 };
36 
37 using namespace edm;
38 using namespace std;
39 
42  : geomToken_(setWhatProduced(this, parameterSet.getParameter<string>("ComponentName")).consumes()) {}
43 
44 std::unique_ptr<TransientTrackingRecHitBuilder> MTDTransientTrackingRecHitBuilderESProducer::produce(
45  const TransientRecHitRecord& iRecord) {
46  return std::make_unique<MTDTransientTrackingRecHitBuilder>(iRecord.getHandle(geomToken_));
47 }
48 
51 
ParameterSet const & parameterSet(StableProvenance const &provenance, ProcessHistory const &history)
Definition: Provenance.cc:11
~MTDTransientTrackingRecHitBuilderESProducer() override=default
Destructor.
ESHandle< ProductT > getHandle(ESGetToken< ProductT, DepRecordT > const &iToken) 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 &)
const edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > geomToken_