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 
41  const ParameterSet& parameterSet) {
42  setWhatProduced(this, parameterSet.getParameter<string>("ComponentName")).setConsumes(geomToken_);
43 }
44 
45 std::unique_ptr<TransientTrackingRecHitBuilder> MTDTransientTrackingRecHitBuilderESProducer::produce(
46  const TransientRecHitRecord& iRecord) {
47  return std::make_unique<MTDTransientTrackingRecHitBuilder>(iRecord.getHandle(geomToken_));
48 }
49 
52 
ESHandle.h
MTDTransientTrackingRecHitBuilderESProducer
Definition: MTDTransientTrackingRecHitBuilderESProducer.cc:22
edm::eventsetup::DependentRecordImplementation::getHandle
ESHandle< ProductT > getHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition: DependentRecordImplementation.h:86
edm
HLT enums.
Definition: AlignableModifier.h:19
TransientRecHitRecord.h
MTDTransientTrackingRecHitBuilderESProducer::MTDTransientTrackingRecHitBuilderESProducer
MTDTransientTrackingRecHitBuilderESProducer(const edm::ParameterSet &)
Constructor.
Definition: MTDTransientTrackingRecHitBuilderESProducer.cc:40
TransientRecHitRecord
Definition: TransientRecHitRecord.h:14
ESProducer.h
typelookup.h
ESGetToken.h
MTDTransientTrackingRecHitBuilderESProducer::geomToken_
edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > geomToken_
Definition: MTDTransientTrackingRecHitBuilderESProducer.cc:34
MTDTransientTrackingRecHitBuilderESProducer::produce
std::unique_ptr< TransientTrackingRecHitBuilder > produce(const TransientRecHitRecord &)
Definition: MTDTransientTrackingRecHitBuilderESProducer.cc:45
GlobalTrackingGeometryRecord.h
edm::ParameterSet
Definition: ParameterSet.h:36
edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord >
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
ModuleFactory.h
std
Definition: JetResolutionObject.h:76
MTDTransientTrackingRecHitBuilderESProducer::~MTDTransientTrackingRecHitBuilderESProducer
~MTDTransientTrackingRecHitBuilderESProducer() override=default
Destructor.
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
edm::parameterSet
ParameterSet const & parameterSet(Provenance const &provenance, ProcessHistory const &history)
Definition: Provenance.cc:11
EventSetup.h
edm::ESProducer
Definition: ESProducer.h:101
TransientTrackingRecHitBuilder.h
ParameterSet.h
GlobalTrackingGeometry.h
MTDTransientTrackingRecHitBuilder.h