14 auto cc = setWhatProduced(
this,
p.getParameter<
std::string>(
"ComponentName"));
15 magToken_ = cc.consumes();
16 geomToken_ = cc.consumes();
20 return std::make_unique<TransientTrackBuilder>(&iRecord.
get(magToken_), iRecord.
getHandle(geomToken_));
26 ->setComment(
"data label to use when getting the data product");
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void addDefault(ParameterSetDescription const &psetDescription)
ESHandle< ProductT > getHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
TransientTrackBuilderESProducer(const edm::ParameterSet &p)
std::unique_ptr< TransientTrackBuilder > produce(const TransientTrackRecord &)
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const