Main Page
Namespaces
Classes
Package Documentation
src
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::unique_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
return
std::make_unique<TransientTrackBuilder>(magfield.
product
(), theTrackingGeometry);
32
33
}
34
35
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
TransientTrackBuilderESProducer::~TransientTrackBuilderESProducer
~TransientTrackBuilderESProducer() override
Definition:
TransientTrackBuilderESProducer.cc:21
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
GlobalTrackingGeometryRecord.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
IdealMagneticFieldRecord
Definition:
IdealMagneticFieldRecord.h:11
GlobalTrackingGeometryRecord
Definition:
GlobalTrackingGeometryRecord.h:18
edm::eventsetup::DependentRecordImplementation::getRecord
const DepRecordT getRecord() const
Definition:
DependentRecordImplementation.h:51
edm::ESHandle< MagneticField >
ESHandle.h
TransientTrackBuilderESProducer.h
TransientTrackBuilderESProducer::TransientTrackBuilderESProducer
TransientTrackBuilderESProducer(const edm::ParameterSet &p)
Definition:
TransientTrackBuilderESProducer.cc:14
TransientTrackRecord
Definition:
TransientTrackRecord.h:12
edm
HLT enums.
Definition:
AlignableModifier.h:17
TransientTrackBuilderESProducer::produce
std::unique_ptr< TransientTrackBuilder > produce(const TransientTrackRecord &)
Definition:
TransientTrackBuilderESProducer.cc:24
edm::ParameterSet
Definition:
ParameterSet.h:36
GlobalTrackingGeometry.h
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:86
IdealMagneticFieldRecord.h
Generated for CMSSW Reference Manual by
1.8.11