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 "
Geometry/CommonDetUnit/interface/GlobalTrackingGeometry.h
"
5
6
#include "
FWCore/Framework/interface/ESHandle.h
"
7
8
#include <string>
9
#include <memory>
10
11
using namespace
edm
;
12
13
TransientTrackBuilderESProducer::TransientTrackBuilderESProducer
(
const
edm::ParameterSet
&
p
) {
14
auto
cc
= setWhatProduced(
this
,
p
.getParameter<
std::string
>(
"ComponentName"
));
15
magToken_ =
cc
.consumes();
16
geomToken_ =
cc
.consumes();
17
}
18
19
std::unique_ptr<TransientTrackBuilder>
TransientTrackBuilderESProducer::produce
(
const
TransientTrackRecord
& iRecord) {
20
return
std::make_unique<TransientTrackBuilder>(&iRecord.
get
(magToken_), iRecord.
getHandle
(geomToken_));
21
}
22
23
void
TransientTrackBuilderESProducer::fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions) {
24
edm::ParameterSetDescription
desc
;
25
desc
.add<
std::string
>(
"ComponentName"
,
"TransientTrackBuilder"
)
26
->setComment(
"data label to use when getting the data product"
);
27
28
descriptions.
addDefault
(
desc
);
29
}
ESHandle.h
edm::eventsetup::DependentRecordImplementation::getHandle
ESHandle< ProductT > getHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition:
DependentRecordImplementation.h:87
edm
HLT enums.
Definition:
AlignableModifier.h:19
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:52
cc
TransientTrackBuilderESProducer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition:
TransientTrackBuilderESProducer.cc:23
TransientTrackRecord
Definition:
TransientTrackRecord.h:11
TransientTrackBuilderESProducer::TransientTrackBuilderESProducer
TransientTrackBuilderESProducer(const edm::ParameterSet &p)
Definition:
TransientTrackBuilderESProducer.cc:13
IdealMagneticFieldRecord.h
TransientTrackBuilderESProducer::produce
std::unique_ptr< TransientTrackBuilder > produce(const TransientTrackRecord &)
Definition:
TransientTrackBuilderESProducer.cc:19
edm::eventsetup::DependentRecordImplementation::get
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition:
DependentRecordImplementation.h:109
GlobalTrackingGeometryRecord.h
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
TransientTrackBuilderESProducer.h
edm::ParameterSet
Definition:
ParameterSet.h:47
submitPVResolutionJobs.desc
string desc
Definition:
submitPVResolutionJobs.py:251
GlobalTrackingGeometry.h
edm::ConfigurationDescriptions::addDefault
void addDefault(ParameterSetDescription const &psetDescription)
Definition:
ConfigurationDescriptions.cc:99
Generated for CMSSW Reference Manual by
1.8.16