Main Page
Namespaces
Classes
Package Documentation
TrackingTools
TransientTrack
plugins
TransientTrackBuilderESProducer.cc
Go to the documentation of this file.
1
#include "
TransientTrackBuilderESProducer.h
"
2
#include "
Geometry/Records/interface/GlobalTrackingGeometryRecord.h
"
3
#include "
MagneticField/Records/interface/IdealMagneticFieldRecord.h
"
4
#include "boost/mpl/vector.hpp"
5
#include "
Geometry/CommonDetUnit/interface/GlobalTrackingGeometry.h
"
6
7
#include "
FWCore/Framework/interface/ESHandle.h
"
8
9
#include <string>
10
#include <memory>
11
12
using namespace
edm
;
13
14
TransientTrackBuilderESProducer::TransientTrackBuilderESProducer
(
const
edm::ParameterSet
&
p
)
15
{
16
std::string
myname = p.
getParameter
<
std::string
>(
"ComponentName"
);
17
pset_ =
p
;
18
setWhatProduced(
this
,myname);
19
}
20
21
TransientTrackBuilderESProducer::~TransientTrackBuilderESProducer
() {}
22
23
std::shared_ptr<TransientTrackBuilder>
24
TransientTrackBuilderESProducer::produce
(
const
TransientTrackRecord
& iRecord){
25
26
edm::ESHandle<MagneticField>
magfield;
27
iRecord.
getRecord
<
IdealMagneticFieldRecord
>().
get
( magfield );
28
edm::ESHandle<GlobalTrackingGeometry>
theTrackingGeometry;
29
iRecord.
getRecord
<
GlobalTrackingGeometryRecord
>().
get
(theTrackingGeometry);
30
31
_builder = std::make_shared<TransientTrackBuilder>(magfield.
product
(), theTrackingGeometry);
32
return
_builder;
33
34
}
35
36
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
GlobalTrackingGeometryRecord.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
IdealMagneticFieldRecord
Definition:
IdealMagneticFieldRecord.h:11
GlobalTrackingGeometryRecord
Definition:
GlobalTrackingGeometryRecord.h:17
edm::eventsetup::DependentRecordImplementation::getRecord
const DepRecordT & getRecord() const
Definition:
DependentRecordImplementation.h:47
edm::ESHandle< MagneticField >
ESHandle.h
TransientTrackBuilderESProducer.h
TransientTrackBuilderESProducer::TransientTrackBuilderESProducer
TransientTrackBuilderESProducer(const edm::ParameterSet &p)
Definition:
TransientTrackBuilderESProducer.cc:14
TransientTrackBuilderESProducer::produce
std::shared_ptr< TransientTrackBuilder > produce(const TransientTrackRecord &)
Definition:
TransientTrackBuilderESProducer.cc:24
TransientTrackRecord
Definition:
TransientTrackRecord.h:12
edm
HLT enums.
Definition:
AlignableModifier.h:17
edm::ParameterSet
Definition:
ParameterSet.h:36
GlobalTrackingGeometry.h
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:86
IdealMagneticFieldRecord.h
TransientTrackBuilderESProducer::~TransientTrackBuilderESProducer
virtual ~TransientTrackBuilderESProducer()
Definition:
TransientTrackBuilderESProducer.cc:21
Generated for CMSSW Reference Manual by
1.8.11