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
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
BeamHaloPropagatorESProducer(const edm::ParameterSet &)
Constructor.
const DepRecordT getRecord() const
std::unique_ptr< Propagator > produce(const TrackingComponentsRecord &)
ParameterSet const & parameterSet(Provenance const &provenance)