Main Page
Namespaces
Classes
Package Documentation
TrackingTools
RecoGeometry
plugins
GlobalDetLayerGeometryESProducer.cc
Go to the documentation of this file.
1
#include "
TrackingTools/RecoGeometry/plugins/GlobalDetLayerGeometryESProducer.h
"
2
3
#include "
FWCore/Framework/interface/EventSetup.h
"
4
#include "
FWCore/Framework/interface/ESHandle.h
"
5
#include "
FWCore/Framework/interface/ModuleFactory.h
"
6
#include "
FWCore/Framework/interface/ESProducer.h
"
7
8
#include <memory>
9
#include <string>
10
11
using namespace
edm
;
12
13
GlobalDetLayerGeometryESProducer::GlobalDetLayerGeometryESProducer
(
const
edm::ParameterSet
&
p
)
14
{
15
std::string
myName = p.
getParameter
<
std::string
>(
"ComponentName"
);
16
setWhatProduced(
this
,myName);
17
}
18
19
GlobalDetLayerGeometryESProducer::~GlobalDetLayerGeometryESProducer
() {}
20
21
std::shared_ptr<DetLayerGeometry>
22
GlobalDetLayerGeometryESProducer::produce
(
const
RecoGeometryRecord
& iRecord){
23
24
edm::ESHandle<GeometricSearchTracker>
tracker
;
25
edm::ESHandle<MuonDetLayerGeometry>
muon
;
26
27
iRecord.
getRecord
<
TrackerRecoGeometryRecord
>().
get
(tracker);
28
iRecord.
getRecord
<
MuonRecoGeometryRecord
>().
get
(muon);
29
30
geometry_ = std::make_shared<GlobalDetLayerGeometry>(tracker.
product
(), muon.
product
());
31
return
geometry_;
32
}
33
34
35
DEFINE_FWK_EVENTSETUP_MODULE
(
GlobalDetLayerGeometryESProducer
);
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
GlobalDetLayerGeometryESProducer
Definition:
GlobalDetLayerGeometryESProducer.h:10
MuonRecoGeometryRecord
Definition:
MuonRecoGeometryRecord.h:18
GlobalDetLayerGeometryESProducer::~GlobalDetLayerGeometryESProducer
virtual ~GlobalDetLayerGeometryESProducer()
Definition:
GlobalDetLayerGeometryESProducer.cc:19
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
TrackerRecoGeometryRecord
Definition:
TrackerRecoGeometryRecord.h:12
EventSetup.h
edm::eventsetup::DependentRecordImplementation::getRecord
const DepRecordT & getRecord() const
Definition:
DependentRecordImplementation.h:47
RecoGeometryRecord
Definition:
RecoGeometryRecord.h:15
edm::ESHandle< GeometricSearchTracker >
ESHandle.h
GlobalDetLayerGeometryESProducer::GlobalDetLayerGeometryESProducer
GlobalDetLayerGeometryESProducer(const edm::ParameterSet &p)
Definition:
GlobalDetLayerGeometryESProducer.cc:13
metsig::muon
Definition:
SignAlgoResolutions.h:40
mixOne_simraw_on_sim_cfi.tracker
tracker
Definition:
mixOne_simraw_on_sim_cfi.py:264
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
ESProducer.h
edm
HLT enums.
Definition:
AlignableModifier.h:17
edm::ParameterSet
Definition:
ParameterSet.h:36
ModuleFactory.h
GlobalDetLayerGeometryESProducer::produce
std::shared_ptr< DetLayerGeometry > produce(const RecoGeometryRecord &)
Definition:
GlobalDetLayerGeometryESProducer.cc:22
GlobalDetLayerGeometryESProducer.h
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:86
Generated for CMSSW Reference Manual by
1.8.11