29 string myname = parameterSet.
getParameter<
string>(
"ComponentName");
31 string propDir = parameterSet.
getParameter<
string>(
"PropagationDirection");
34 else if (propDir ==
"alongMomentum") thePropagationDirection =
alongMomentum;
35 else if (propDir ==
"anyDirection") thePropagationDirection =
anyDirection;
38 <<
"Wrong fit direction chosen in SmartPropagatorESProducer";
41 theEpsilon = parameterSet.
getParameter<
double>(
"Epsilon");
43 theTrackerPropagatorName = parameterSet.
getParameter<
string>(
"TrackerPropagator");
44 theMuonPropagatorName = parameterSet.
getParameter<
string>(
"MuonPropagator");
46 setWhatProduced(
this,myname);
51 boost::shared_ptr<Propagator>
58 iRecord.
get(theTrackerPropagatorName,trackerPropagator);
61 iRecord.
get(theMuonPropagatorName,muonPropagator);
64 thePropagator = boost::shared_ptr<Propagator>(
new SmartPropagator(*trackerPropagator, *muonPropagator,
66 thePropagationDirection,
T getParameter(std::string const &) const
const DepRecordT & getRecord() const
boost::shared_ptr< Propagator > produce(const TrackingComponentsRecord &)
virtual ~SmartPropagatorESProducer()
Destructor.
void get(HolderT &iHolder) const
SmartPropagatorESProducer(const edm::ParameterSet &)
Constructor.