CMS 3D CMS Logo

TransientTrackBuilderESProducer.cc
Go to the documentation of this file.
5 
7 
8 #include <string>
9 #include <memory>
10 
11 using namespace edm;
12 
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 
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