Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
boost::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= boost::shared_ptr<TrackingRecHitPropagator>(
new
TrackingRecHitPropagator
(magfield.
product
()));
33
return
theHitPropagator;
34
}
35
36
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
ESInputTag.h
IdealMagneticFieldRecord
Definition:
IdealMagneticFieldRecord.h:11
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
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:22
edm::ESHandle< MagneticField >
ESHandle.h
TrackingRecHitPropagatorESProducer.h
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:86
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:36
ModuleFactory.h
TrackingRecHitPropagatorESProducer::~TrackingRecHitPropagatorESProducer
virtual ~TrackingRecHitPropagatorESProducer()
Definition:
TrackingRecHitPropagatorESProducer.cc:21
Generated for CMSSW Reference Manual by
1.8.5