57 if (propDir ==
"oppositeToMomentum")
59 else if (propDir ==
"alongMomentum")
61 else if (propDir ==
"anyDirection")
65 <<
"Wrong fit direction (" << propDir <<
")chosen in BeamHaloPropagatorESProducer";
70 setWhatProduced(
this, myname)
71 .setConsumes(magToken_)
72 .setConsumes(endcapToken_,
edm::ESInputTag(
""s, theEndCapTrackerPropagatorName))
73 .setConsumes(crossToken_,
edm::ESInputTag(
""s, theCrossingTrackerPropagatorName));
79 LogDebug(
"BeamHaloPropagator") <<
"Creating a BeamHaloPropagator: " << myname
80 <<
"\n with EndCap Propagator: " << theEndCapTrackerPropagatorName
81 <<
"\n with Crossing Propagator: " << theCrossingTrackerPropagatorName;
83 return std::make_unique<BeamHaloPropagator>(
84 iRecord.
get(endcapToken_), iRecord.
get(crossToken_), &iRecord.
get(magToken_), thePropagationDirection);