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
{
11
setWhatProduced
(
this
);
12
_label
= p.
getUntrackedParameter
<
std::string
>(
"trackerGeometryLabel"
,
""
);
13
14
theTrackerMaterial
= p.
getParameter
<
edm::ParameterSet
>(
"TrackerMaterial"
);
15
16
}
17
18
TrackerInteractionGeometryESProducer::~TrackerInteractionGeometryESProducer
() {}
19
20
std::unique_ptr<TrackerInteractionGeometry>
21
TrackerInteractionGeometryESProducer::produce
(
const
TrackerInteractionGeometryRecord
& iRecord){
22
23
edm::ESHandle<GeometricSearchTracker>
theGeomSearchTracker;
24
25
iRecord.
getRecord
<
TrackerRecoGeometryRecord
>().
get
(
_label
, theGeomSearchTracker );
26
return
std::make_unique<TrackerInteractionGeometry>(
theTrackerMaterial
,&(*theGeomSearchTracker));
27
28
}
29
30
31
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:116
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:12
TrackerInteractionGeometryESProducer::TrackerInteractionGeometryESProducer
TrackerInteractionGeometryESProducer(const edm::ParameterSet &p)
Definition:
TrackerInteractionGeometryESProducer.cc:9
TrackerInteractionGeometryESProducer::theTrackerMaterial
edm::ParameterSet theTrackerMaterial
Definition:
TrackerInteractionGeometryESProducer.h:18
TrackerInteractionGeometryESProducer.h
edm::eventsetup::DependentRecordImplementation::getRecord
const DepRecordT getRecord() const
Definition:
DependentRecordImplementation.h:48
edm::ESHandle< GeometricSearchTracker >
TrackerInteractionGeometryESProducer::_label
std::string _label
Definition:
TrackerInteractionGeometryESProducer.h:17
TrackerRecoGeometryRecord.h
ESHandle.h
TrackerInteractionGeometryESProducer
Definition:
TrackerInteractionGeometryESProducer.h:11
TrackerInteractionGeometryESProducer::produce
std::unique_ptr< TrackerInteractionGeometry > produce(const TrackerInteractionGeometryRecord &)
Definition:
TrackerInteractionGeometryESProducer.cc:21
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
TrackerInteractionGeometryRecord
Definition:
TrackerInteractionGeometryRecord.h:26
edm::ParameterSet
Definition:
ParameterSet.h:36
ModuleFactory.h
TrackerInteractionGeometryESProducer::~TrackerInteractionGeometryESProducer
~TrackerInteractionGeometryESProducer() override
Definition:
TrackerInteractionGeometryESProducer.cc:18
Generated for CMSSW Reference Manual by
1.8.11