30 if (pdir ==
"oppositeToMomentum")
32 else if (pdir ==
"anyDirection")
36 magToken_{setWhatProduced(
this,
p.getParameter<
std::string>(
"ComponentName"))
44 return std::make_unique<StraightLinePropagator>(&iRecord.
get(
magToken_),
dir_);
std::unique_ptr< Propagator > produce(const TrackingComponentsRecord &)
~StraightLinePropagatorESProducer() override
StraightLinePropagatorESProducer(const edm::ParameterSet &p)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
const PropagationDirection dir_
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magToken_
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const