Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
boost::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 = boost::shared_ptr<TransientTrackBuilder>(
32
new
TransientTrackBuilder
(magfield.
product
(), theTrackingGeometry ));
33
return
_builder;
34
35
}
36
37
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
GlobalTrackingGeometryRecord.h
HLT_ES_cff.magfield
tuple magfield
Definition:
HLT_ES_cff.py:2311
IdealMagneticFieldRecord
Definition:
IdealMagneticFieldRecord.h:12
GlobalTrackingGeometryRecord
Definition:
GlobalTrackingGeometryRecord.h:17
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
edm::eventsetup::DependentRecordImplementation::getRecord
const DepRecordT & getRecord() const
Definition:
DependentRecordImplementation.h:46
edm::ESHandle< MagneticField >
TransientTrackBuilder
Definition:
TransientTrackBuilder.h:14
ESHandle.h
TransientTrackBuilderESProducer.h
TransientTrackBuilderESProducer::TransientTrackBuilderESProducer
TransientTrackBuilderESProducer(const edm::ParameterSet &p)
Definition:
TransientTrackBuilderESProducer.cc:14
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:62
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
TransientTrackRecord
Definition:
TransientTrackRecord.h:12
TransientTrackBuilderESProducer::produce
boost::shared_ptr< TransientTrackBuilder > produce(const TransientTrackRecord &)
Definition:
TransientTrackBuilderESProducer.cc:24
edm::ParameterSet
Definition:
ParameterSet.h:35
GlobalTrackingGeometry.h
IdealMagneticFieldRecord.h
TransientTrackBuilderESProducer::~TransientTrackBuilderESProducer
virtual ~TransientTrackBuilderESProducer()
Definition:
TransientTrackBuilderESProducer.cc:21
Generated for CMSSW Reference Manual by
1.8.5