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::shared_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 thePropagator = std::make_shared<BeamHaloPropagator>(*endcapPropagator,*crossPropagator,
65 thePropagationDirection);
T getParameter(std::string const &) const
const DepRecordT & getRecord() const
BeamHaloPropagatorESProducer(const edm::ParameterSet &)
Constructor.
void get(HolderT &iHolder) const
std::shared_ptr< Propagator > produce(const TrackingComponentsRecord &)
ParameterSet const & parameterSet(Provenance const &provenance)
virtual ~BeamHaloPropagatorESProducer()
Destructor.