28 myname = parameterSet.
getParameter<
string>(
"ComponentName");
30 string propDir = parameterSet.
getParameter<
string>(
"PropagationDirection");
33 else if (propDir ==
"alongMomentum") thePropagationDirection =
alongMomentum;
34 else if (propDir ==
"anyDirection") thePropagationDirection =
anyDirection;
37 <<
"Wrong fit direction ("<< propDir <<
")chosen in BeamHaloPropagatorESProducer";
39 theEndCapTrackerPropagatorName = parameterSet.
getParameter<
string>(
"EndCapTrackerPropagator");
40 theCrossingTrackerPropagatorName = parameterSet.
getParameter<
string>(
"CrossingTrackerPropagator");
42 setWhatProduced(
this,myname);
47 std::unique_ptr<Propagator>
54 iRecord.
get(theEndCapTrackerPropagatorName,endcapPropagator);
57 iRecord.
get(theCrossingTrackerPropagatorName,crossPropagator);
59 LogDebug(
"BeamHaloPropagator")<<
"Creating a BeamHaloPropagator: "<<myname
60 <<
"\n with EndCap Propagator: "<<theEndCapTrackerPropagatorName
61 <<
"\n with Crossing Propagator: "<<theCrossingTrackerPropagatorName;
63 return std::make_unique<BeamHaloPropagator>(*endcapPropagator,*crossPropagator,
65 thePropagationDirection);
~BeamHaloPropagatorESProducer() override
Destructor.
T getParameter(std::string const &) const
const DepRecordT & getRecord() const
BeamHaloPropagatorESProducer(const edm::ParameterSet &)
Constructor.
std::unique_ptr< Propagator > produce(const TrackingComponentsRecord &)
void get(HolderT &iHolder) const
ParameterSet const & parameterSet(Provenance const &provenance)