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
HLT_ES_cff.magfield
tuple magfield
Definition:
HLT_ES_cff.py:2311
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
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:62
ESProducer.h
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
TrackingRecHitPropagatorESProducer::TrackingRecHitPropagatorESProducer
TrackingRecHitPropagatorESProducer(const edm::ParameterSet &p)
Definition:
TrackingRecHitPropagatorESProducer.cc:14
edm::ParameterSet
Definition:
ParameterSet.h:35
ModuleFactory.h
TrackingRecHitPropagatorESProducer::~TrackingRecHitPropagatorESProducer
virtual ~TrackingRecHitPropagatorESProducer()
Definition:
TrackingRecHitPropagatorESProducer.cc:21
Generated for CMSSW Reference Manual by
1.8.5