CMS 3D CMS Logo

TrackerInteractionGeometryESProducer.cc
Go to the documentation of this file.
3 
6 
7 #include <memory>
8 
10  setWhatProduced(this);
11  _label = p.getUntrackedParameter<std::string>("trackerGeometryLabel", "");
12 
13  theTrackerMaterial = p.getParameter<edm::ParameterSet>("TrackerMaterial");
14 }
15 
17 
18 std::unique_ptr<TrackerInteractionGeometry> TrackerInteractionGeometryESProducer::produce(
19  const TrackerInteractionGeometryRecord& iRecord) {
20  edm::ESHandle<GeometricSearchTracker> theGeomSearchTracker;
21 
22  iRecord.getRecord<TrackerRecoGeometryRecord>().get(_label, theGeomSearchTracker);
23  return std::make_unique<TrackerInteractionGeometry>(theTrackerMaterial, &(*theGeomSearchTracker));
24 }
25 
edm::eventsetup::DependentRecordImplementation::getRecord
const DepRecordT getRecord() const
Definition: DependentRecordImplementation.h:50
ESHandle.h
TrackerInteractionGeometryESProducer::TrackerInteractionGeometryESProducer
TrackerInteractionGeometryESProducer(const edm::ParameterSet &p)
Definition: TrackerInteractionGeometryESProducer.cc:9
TrackerInteractionGeometryRecord
Definition: TrackerInteractionGeometryRecord.h:26
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
TrackerRecoGeometryRecord.h
TrackerInteractionGeometryESProducer::produce
std::unique_ptr< TrackerInteractionGeometry > produce(const TrackerInteractionGeometryRecord &)
Definition: TrackerInteractionGeometryESProducer.cc:18
TrackerRecoGeometryRecord
Definition: TrackerRecoGeometryRecord.h:11
TrackerInteractionGeometryESProducer::~TrackerInteractionGeometryESProducer
~TrackerInteractionGeometryESProducer() override
Definition: TrackerInteractionGeometryESProducer.cc:16
edm::ESHandle< GeometricSearchTracker >
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:47
TrackerInteractionGeometryESProducer
Definition: TrackerInteractionGeometryESProducer.h:11
get
#define get
ModuleFactory.h
TrackerInteractionGeometryESProducer.h
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
TrackerInteractionGeometryESProducer::theTrackerMaterial
edm::ParameterSet theTrackerMaterial
Definition: TrackerInteractionGeometryESProducer.h:19
TrackerInteractionGeometryESProducer::_label
std::string _label
Definition: TrackerInteractionGeometryESProducer.h:18