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::unique_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
return
std::make_unique<TrackingRecHitPropagator>(magfield.
product
());
33
}
34
35
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
TrackingComponentsRecord
Definition:
TrackingComponentsRecord.h:13
EventSetup.h
ESInputTag.h
IdealMagneticFieldRecord
Definition:
IdealMagneticFieldRecord.h:11
TrackingRecHitPropagatorESProducer::produce
std::unique_ptr< TrackingRecHitPropagator > produce(const TrackingComponentsRecord &)
Definition:
TrackingRecHitPropagatorESProducer.cc:24
TrackingRecHitPropagatorESProducer::~TrackingRecHitPropagatorESProducer
~TrackingRecHitPropagatorESProducer() override
Definition:
TrackingRecHitPropagatorESProducer.cc:21
edm::eventsetup::DependentRecordImplementation::getRecord
const DepRecordT getRecord() const
Definition:
DependentRecordImplementation.h:51
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
Generated for CMSSW Reference Manual by
1.8.11