Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
TrackingTools
KalmanUpdators
plugins
TrackingRecHitPropagatorESProducer.cc
Go to the documentation of this file.
1
#include "
TrackingTools/KalmanUpdators/interface/TrackingRecHitPropagatorESProducer.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
9
#include <string>
10
#include <memory>
11
12
using namespace
edm;
13
14
TrackingRecHitPropagatorESProducer::TrackingRecHitPropagatorESProducer
(
const
edm::ParameterSet
&
p
)
15
{
16
std::string myname = p.
getParameter
<std::string>(
"ComponentName"
);
17
pset_ =
p
;
18
setWhatProduced(
this
,myname);
19
}
20
21
TrackingRecHitPropagatorESProducer::~TrackingRecHitPropagatorESProducer
() {}
22
23
boost::shared_ptr<TrackingRecHitPropagator>
24
TrackingRecHitPropagatorESProducer::produce
(
const
TrackingComponentsRecord
& iRecord){
25
ESHandle<MagneticField>
magfield
;
26
iRecord.
getRecord
<
IdealMagneticFieldRecord
>().
get
(magfield );
27
theHitPropagator= boost::shared_ptr<TrackingRecHitPropagator>(
new
TrackingRecHitPropagator
(magfield.
product
()));
28
return
theHitPropagator;
29
}
30
31
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
TrackingComponentsRecord
Definition:
TrackingComponentsRecord.h:13
EventSetup.h
IdealMagneticFieldRecord
Definition:
IdealMagneticFieldRecord.h:11
TrackingRecHitPropagatorESProducer::produce
boost::shared_ptr< TrackingRecHitPropagator > produce(const TrackingComponentsRecord &)
Definition:
TrackingRecHitPropagatorESProducer.cc:24
edm::eventsetup::DependentRecordImplementation::getRecord
const DepRecordT & getRecord() const
Definition:
DependentRecordImplementation.h:46
TrackingRecHitPropagator
Definition:
TrackingRecHitPropagator.h:18
edm::ESHandle< MagneticField >
ESHandle.h
TrackingRecHitPropagatorESProducer.h
autoMagneticFieldProducer_cfi.magfield
tuple magfield
Definition:
autoMagneticFieldProducer_cfi.py:6
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:62
L1TEmulatorMonitor_cff.p
tuple p
Definition:
L1TEmulatorMonitor_cff.py:48
ESProducer.h
TrackingRecHitPropagatorESProducer::TrackingRecHitPropagatorESProducer
TrackingRecHitPropagatorESProducer(const edm::ParameterSet &p)
Definition:
TrackingRecHitPropagatorESProducer.cc:14
edm::ParameterSet
Definition:
ParameterSet.h:32
ModuleFactory.h
TrackingRecHitPropagatorESProducer::~TrackingRecHitPropagatorESProducer
virtual ~TrackingRecHitPropagatorESProducer()
Definition:
TrackingRecHitPropagatorESProducer.cc:21
Generated for CMSSW Reference Manual by
1.8.5