Main Page
Namespaces
Classes
Package Documentation
FastSimulation
SimplifiedGeometryPropagator
plugins
FastSimGeometryESProducer.cc
Go to the documentation of this file.
1
#include "
FastSimulation/SimplifiedGeometryPropagator/plugins/FastSimGeometryESProducer.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
FastSimGeometryESProducer::FastSimGeometryESProducer
(
const
edm::ParameterSet
&
p
)
10
{
11
setWhatProduced
(
this
);
12
13
theTrackerMaterial
= p.
getParameter
<
edm::ParameterSet
>(
"TrackerMaterial"
);
14
}
15
16
FastSimGeometryESProducer::~FastSimGeometryESProducer
() {}
17
18
std::unique_ptr<fastsim::Geometry>
19
FastSimGeometryESProducer::produce
(
const
GeometryRecord
& iRecord){
20
return
std::make_unique<fastsim::Geometry>(
theTrackerMaterial
);
21
}
22
23
DEFINE_FWK_EVENTSETUP_MODULE
(
FastSimGeometryESProducer
);
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:124
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
FastSimGeometryESProducer::FastSimGeometryESProducer
FastSimGeometryESProducer(const edm::ParameterSet &p)
Definition:
FastSimGeometryESProducer.cc:9
FastSimGeometryESProducer::theTrackerMaterial
edm::ParameterSet theTrackerMaterial
Definition:
FastSimGeometryESProducer.h:17
FastSimGeometryESProducer::produce
std::unique_ptr< fastsim::Geometry > produce(const GeometryRecord &)
Definition:
FastSimGeometryESProducer.cc:19
FastSimGeometryESProducer
Definition:
FastSimGeometryESProducer.h:11
FastSimGeometryESProducer.h
TrackerRecoGeometryRecord.h
ESHandle.h
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
FastSimGeometryESProducer::~FastSimGeometryESProducer
~FastSimGeometryESProducer() override
Definition:
FastSimGeometryESProducer.cc:16
edm::ParameterSet
Definition:
ParameterSet.h:36
ModuleFactory.h
GeometryRecord
Definition:
GeometryRecord.h:8
Generated for CMSSW Reference Manual by
1.8.11