57 if (propDir ==
"oppositeToMomentum")
59 else if (propDir ==
"alongMomentum")
61 else if (propDir ==
"anyDirection")
65 <<
"Wrong fit direction (" << propDir <<
")chosen in BeamHaloPropagatorESProducer";
70 auto cc = setWhatProduced(
this, myname);
71 magToken_ =
cc.consumes();
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);