Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
boost::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_ = boost::shared_ptr<DetLayerGeometry>(
new
GlobalDetLayerGeometry
(tracker.
product
(),
31
muon.
product
() ));
32
return
geometry_;
33
}
34
35
36
DEFINE_FWK_EVENTSETUP_MODULE
(
GlobalDetLayerGeometryESProducer
);
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
GlobalDetLayerGeometryESProducer
Definition:
GlobalDetLayerGeometryESProducer.h:10
MuonRecoGeometryRecord
Definition:
MuonRecoGeometryRecord.h:20
GlobalDetLayerGeometryESProducer::~GlobalDetLayerGeometryESProducer
virtual ~GlobalDetLayerGeometryESProducer()
Definition:
GlobalDetLayerGeometryESProducer.cc:19
TrackerRecoGeometryRecord
Definition:
TrackerRecoGeometryRecord.h:12
EventSetup.h
edm::eventsetup::DependentRecordImplementation::getRecord
const DepRecordT & getRecord() const
Definition:
DependentRecordImplementation.h:46
RecoGeometryRecord
Definition:
RecoGeometryRecord.h:15
edm::ESHandle< GeometricSearchTracker >
ESHandle.h
patCandidatesForDimuonsSequences_cff.tracker
tuple tracker
Definition:
patCandidatesForDimuonsSequences_cff.py:69
GlobalDetLayerGeometryESProducer::GlobalDetLayerGeometryESProducer
GlobalDetLayerGeometryESProducer(const edm::ParameterSet &p)
Definition:
GlobalDetLayerGeometryESProducer.cc:13
GlobalDetLayerGeometryESProducer_cfi.GlobalDetLayerGeometry
tuple GlobalDetLayerGeometry
Definition:
GlobalDetLayerGeometryESProducer_cfi.py:3
metsig::muon
Definition:
SignAlgoResolutions.h:41
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:62
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:48
L1TEmulatorMonitor_cff.p
tuple p
Definition:
L1TEmulatorMonitor_cff.py:48
ESProducer.h
edm::ParameterSet
Definition:
ParameterSet.h:32
ModuleFactory.h
GlobalDetLayerGeometryESProducer.h
GlobalDetLayerGeometryESProducer::produce
boost::shared_ptr< DetLayerGeometry > produce(const RecoGeometryRecord &)
Definition:
GlobalDetLayerGeometryESProducer.cc:22
Generated for CMSSW Reference Manual by
1.8.5