CMS 3D CMS Logo

TransientTrackBuilderESProducer.cc
Go to the documentation of this file.
4 #include "boost/mpl/vector.hpp"
6 
8 
9 #include <string>
10 #include <memory>
11 
12 using namespace edm;
13 
15  setWhatProduced(this, p.getParameter<std::string>("ComponentName")).setConsumes(magToken_).setConsumes(geomToken_);
16 }
17 
18 std::unique_ptr<TransientTrackBuilder> TransientTrackBuilderESProducer::produce(const TransientTrackRecord& iRecord) {
19  return std::make_unique<TransientTrackBuilder>(&iRecord.get(magToken_), iRecord.getHandle(geomToken_));
20 }
21 
24  desc.add<std::string>("ComponentName", "TransientTrackBuilder")
25  ->setComment("data label to use when getting the data product");
26 
27  descriptions.addDefault(desc);
28 }
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
ESHandle.h
edm::eventsetup::DependentRecordImplementation::getHandle
ESHandle< ProductT > getHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition: DependentRecordImplementation.h:86
edm
HLT enums.
Definition: AlignableModifier.h:19
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
TransientTrackBuilderESProducer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: TransientTrackBuilderESProducer.cc:22
TransientTrackRecord
Definition: TransientTrackRecord.h:11
TransientTrackBuilderESProducer::TransientTrackBuilderESProducer
TransientTrackBuilderESProducer(const edm::ParameterSet &p)
Definition: TransientTrackBuilderESProducer.cc:14
IdealMagneticFieldRecord.h
TransientTrackBuilderESProducer::produce
std::unique_ptr< TransientTrackBuilder > produce(const TransientTrackRecord &)
Definition: TransientTrackBuilderESProducer.cc:18
edm::eventsetup::DependentRecordImplementation::get
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition: DependentRecordImplementation.h:112
GlobalTrackingGeometryRecord.h
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TransientTrackBuilderESProducer.h
edm::ParameterSet
Definition: ParameterSet.h:36
GlobalTrackingGeometry.h
edm::ConfigurationDescriptions::addDefault
void addDefault(ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:99