Main Page
Namespaces
Classes
Package Documentation
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
#include <
FWCore/Utilities/interface/ESInputTag.h
>
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
std::shared_ptr<TrackingRecHitPropagator>
24
TrackingRecHitPropagatorESProducer::produce
(
const
TrackingComponentsRecord
& iRecord){
25
ESHandle<MagneticField>
magfield;
26
std::string
mfName =
""
;
27
if
(pset_.exists(
"SimpleMagneticField"
))
28
mfName = pset_.getParameter<
std::string
>(
"SimpleMagneticField"
);
29
iRecord.
getRecord
<
IdealMagneticFieldRecord
>().
get
(mfName,magfield);
30
// edm::ESInputTag mfESInputTag(mfName);
31
// iRecord.getRecord<IdealMagneticFieldRecord>().get(mfESInputTag,magfield);
32
theHitPropagator = std::make_shared<TrackingRecHitPropagator>(magfield.
product
());
33
return
theHitPropagator;
34
}
35
36
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
TrackingComponentsRecord
Definition:
TrackingComponentsRecord.h:13
EventSetup.h
ESInputTag.h
IdealMagneticFieldRecord
Definition:
IdealMagneticFieldRecord.h:11
edm::eventsetup::DependentRecordImplementation::getRecord
const DepRecordT & getRecord() const
Definition:
DependentRecordImplementation.h:48
TrackingRecHitPropagatorESProducer::produce
std::shared_ptr< TrackingRecHitPropagator > produce(const TrackingComponentsRecord &)
Definition:
TrackingRecHitPropagatorESProducer.cc:24
edm::ESHandle< MagneticField >
ESHandle.h
TrackingRecHitPropagatorESProducer.h
ESProducer.h
edm
HLT enums.
Definition:
AlignableModifier.h:17
TrackingRecHitPropagatorESProducer::TrackingRecHitPropagatorESProducer
TrackingRecHitPropagatorESProducer(const edm::ParameterSet &p)
Definition:
TrackingRecHitPropagatorESProducer.cc:14
edm::ParameterSet
Definition:
ParameterSet.h:36
ModuleFactory.h
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:86
TrackingRecHitPropagatorESProducer::~TrackingRecHitPropagatorESProducer
virtual ~TrackingRecHitPropagatorESProducer()
Definition:
TrackingRecHitPropagatorESProducer.cc:21
Generated for CMSSW Reference Manual by
1.8.11