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 }
T getParameter(std::string const &) const
ESHandle< ProductT > getHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void addDefault(ParameterSetDescription const &psetDescription)
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
ParameterDescriptionBase * add(U const &iLabel, T const &value)
TransientTrackBuilderESProducer(const edm::ParameterSet &p)
HLT enums.
std::unique_ptr< TransientTrackBuilder > produce(const TransientTrackRecord &)