27 string myname = parameterSet.
getParameter<
string>(
"ComponentName");
29 string propDir = parameterSet.
getParameter<
string>(
"PropagationDirection");
32 else if (propDir ==
"alongMomentum") thePropagationDirection =
alongMomentum;
33 else if (propDir ==
"anyDirection") thePropagationDirection =
anyDirection;
36 <<
"Wrong fit direction chosen in SmartPropagatorESProducer";
39 theEpsilon = parameterSet.
getParameter<
double>(
"Epsilon");
41 theTrackerPropagatorName = parameterSet.
getParameter<
string>(
"TrackerPropagator");
42 theMuonPropagatorName = parameterSet.
getParameter<
string>(
"MuonPropagator");
44 setWhatProduced(
this,myname);
49 boost::shared_ptr<Propagator>
56 iRecord.
get(theTrackerPropagatorName,trackerPropagator);
59 iRecord.
get(theMuonPropagatorName,muonPropagator);
62 thePropagator = boost::shared_ptr<Propagator>(
new SmartPropagator(*trackerPropagator, *muonPropagator,
64 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.
ParameterSet const & parameterSet(Provenance const &provenance)