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::shared_ptr<fastsim::Geometry>
19
FastSimGeometryESProducer::produce
(
const
GeometryRecord
& iRecord){
20
_tracker
= std::make_shared<fastsim::Geometry>(
theTrackerMaterial
);
21
return
_tracker
;
22
}
23
24
25
DEFINE_FWK_EVENTSETUP_MODULE
(
FastSimGeometryESProducer
);
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
FastSimGeometryESProducer::_tracker
std::shared_ptr< fastsim::Geometry > _tracker
Definition:
FastSimGeometryESProducer.h:17
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
FastSimGeometryESProducer::FastSimGeometryESProducer
FastSimGeometryESProducer(const edm::ParameterSet &p)
Definition:
FastSimGeometryESProducer.cc:9
FastSimGeometryESProducer::theTrackerMaterial
edm::ParameterSet theTrackerMaterial
Definition:
FastSimGeometryESProducer.h:18
edm::ESProducer::setWhatProduced
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition:
ESProducer.h:115
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
FastSimGeometryESProducer::produce
std::shared_ptr< fastsim::Geometry > produce(const GeometryRecord &)
Definition:
FastSimGeometryESProducer.cc:19
edm::ParameterSet
Definition:
ParameterSet.h:36
ModuleFactory.h
GeometryRecord
Definition:
GeometryRecord.h:8
Generated for CMSSW Reference Manual by
1.8.11