FastSimulation
TrackerSetup
plugins
TrackerInteractionGeometryESProducer.cc
Go to the documentation of this file.
1
#include "
FastSimulation/TrackerSetup/plugins/TrackerInteractionGeometryESProducer.h
"
2
#include "
RecoTracker/Record/interface/TrackerRecoGeometryRecord.h
"
3
4
#include "
FWCore/Framework/interface/ESHandle.h
"
5
#include "
FWCore/Framework/interface/ModuleFactory.h
"
6
7
#include <memory>
8
9
TrackerInteractionGeometryESProducer::TrackerInteractionGeometryESProducer
(
const
edm::ParameterSet
&
p
) {
10
setWhatProduced
(
this
);
11
_label
=
p
.getUntrackedParameter<
std::string
>(
"trackerGeometryLabel"
,
""
);
12
13
theTrackerMaterial
=
p
.getParameter<
edm::ParameterSet
>(
"TrackerMaterial"
);
14
}
15
16
TrackerInteractionGeometryESProducer::~TrackerInteractionGeometryESProducer
() {}
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
26
DEFINE_FWK_EVENTSETUP_MODULE
(
TrackerInteractionGeometryESProducer
);
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:14
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
Generated for CMSSW Reference Manual by
1.8.16