Main Page
Namespaces
Classes
Package Documentation
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::ParameterSet::getParameter
T getParameter(std::string const &) const
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:138
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
TrackerRecoGeometryRecord
Definition:
TrackerRecoGeometryRecord.h:11
TrackerInteractionGeometryESProducer::TrackerInteractionGeometryESProducer
TrackerInteractionGeometryESProducer(const edm::ParameterSet &p)
Definition:
TrackerInteractionGeometryESProducer.cc:9
TrackerInteractionGeometryESProducer::theTrackerMaterial
edm::ParameterSet theTrackerMaterial
Definition:
TrackerInteractionGeometryESProducer.h:19
TrackerInteractionGeometryESProducer.h
edm::eventsetup::DependentRecordImplementation::getRecord
const DepRecordT getRecord() const
Definition:
DependentRecordImplementation.h:51
edm::ESHandle< GeometricSearchTracker >
TrackerInteractionGeometryESProducer::_label
std::string _label
Definition:
TrackerInteractionGeometryESProducer.h:18
TrackerRecoGeometryRecord.h
ESHandle.h
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
TrackerInteractionGeometryESProducer
Definition:
TrackerInteractionGeometryESProducer.h:11
TrackerInteractionGeometryESProducer::produce
std::unique_ptr< TrackerInteractionGeometry > produce(const TrackerInteractionGeometryRecord &)
Definition:
TrackerInteractionGeometryESProducer.cc:18
TrackerInteractionGeometryRecord
Definition:
TrackerInteractionGeometryRecord.h:26
edm::ParameterSet
Definition:
ParameterSet.h:36
ModuleFactory.h
TrackerInteractionGeometryESProducer::~TrackerInteractionGeometryESProducer
~TrackerInteractionGeometryESProducer() override
Definition:
TrackerInteractionGeometryESProducer.cc:16
Generated for CMSSW Reference Manual by
1.8.11