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 boost::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 = boost::shared_ptr<Propagator>(
new 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
boost::shared_ptr< Propagator > produce(const TrackingComponentsRecord &)
virtual ~BeamHaloPropagatorESProducer()
Destructor.