Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:163
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
TrackerRecoGeometryRecord
Definition:
TrackerRecoGeometryRecord.h:14
TrackerInteractionGeometryESProducer::TrackerInteractionGeometryESProducer
TrackerInteractionGeometryESProducer(const edm::ParameterSet &p)
Definition:
TrackerInteractionGeometryESProducer.cc:9
TrackerInteractionGeometryESProducer::theTrackerMaterial
edm::ParameterSet theTrackerMaterial
Definition:
TrackerInteractionGeometryESProducer.h:19
TrackerInteractionGeometryESProducer.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::eventsetup::DependentRecordImplementation::getRecord
const DepRecordT getRecord() const
Definition:
DependentRecordImplementation.h:50
edm::ESHandle< GeometricSearchTracker >
TrackerInteractionGeometryESProducer::_label
std::string _label
Definition:
TrackerInteractionGeometryESProducer.h:18
TrackerRecoGeometryRecord.h
ESHandle.h
TrackerInteractionGeometryESProducer
Definition:
TrackerInteractionGeometryESProducer.h:11
TrackerInteractionGeometryESProducer::produce
std::unique_ptr< TrackerInteractionGeometry > produce(const TrackerInteractionGeometryRecord &)
Definition:
TrackerInteractionGeometryESProducer.cc:18
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition:
ParameterSet.h:303
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
TrackerInteractionGeometryRecord
Definition:
TrackerInteractionGeometryRecord.h:26
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
edm::ParameterSet
Definition:
ParameterSet.h:47
ModuleFactory.h
TrackerInteractionGeometryESProducer::~TrackerInteractionGeometryESProducer
~TrackerInteractionGeometryESProducer() override
Definition:
TrackerInteractionGeometryESProducer.cc:16
Generated for CMSSW Reference Manual by
1.8.5