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
Definition: MuonTransientTrackingRecHitBuilderESProducer.cc:25
MuonTransientTrackingRecHitBuilderESProducer::MuonTransientTrackingRecHitBuilderESProducer
MuonTransientTrackingRecHitBuilderESProducer(const edm::ParameterSet &)
Constructor.
Definition: MuonTransientTrackingRecHitBuilderESProducer.cc:42
ESHandle.h
edm::eventsetup::DependentRecordImplementation::getHandle
ESHandle< ProductT > getHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition: DependentRecordImplementation.h:87
edm
HLT enums.
Definition: AlignableModifier.h:19
TransientRecHitRecord.h
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
MuonTransientTrackingRecHitBuilderESProducer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: MuonTransientTrackingRecHitBuilderESProducer.cc:52
TransientRecHitRecord
Definition: TransientRecHitRecord.h:14
ESProducer.h
GlobalTrackingGeometryRecord
Definition: GlobalTrackingGeometryRecord.h:17
MuonTransientTrackingRecHitBuilderESProducer::trackingGeometryToken_
const edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > trackingGeometryToken_
Definition: MuonTransientTrackingRecHitBuilderESProducer.cc:36
edm::parameterSet
ParameterSet const & parameterSet(StableProvenance const &provenance, ProcessHistory const &history)
Definition: Provenance.cc:11
GlobalTrackingGeometry
Definition: GlobalTrackingGeometry.h:20
GlobalTrackingGeometryRecord.h
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
edm::ParameterSet
Definition: ParameterSet.h:47
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord >
ModuleFactory.h
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
std
Definition: JetResolutionObject.h:76
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
MuonTransientTrackingRecHitBuilder.h
MuonTransientTrackingRecHitBuilderESProducer::produce
std::unique_ptr< TransientTrackingRecHitBuilder > produce(const TransientRecHitRecord &)
Definition: MuonTransientTrackingRecHitBuilderESProducer.cc:47
EventSetup.h
edm::ESProducer
Definition: ESProducer.h:104
ParameterSet.h
GlobalTrackingGeometry.h
edm::ConfigurationDescriptions::addDefault
void addDefault(ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:99