From e153d62c50147df4558a1ed1affff19af5f86a25 Mon Sep 17 00:00:00 2001 From: Matti Kortelainen Date: Mon, 7 Dec 2015 11:28:16 +0100 Subject: [PATCH] Use configured value for TTRHBuilder instead of hardcoded one --- RecoMuon/TrackingTools/src/MuonTrackLoader.cc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/RecoMuon/TrackingTools/src/MuonTrackLoader.cc b/RecoMuon/TrackingTools/src/MuonTrackLoader.cc index 42fb6dfed1fe4..c8d74335027ca 100644 --- a/RecoMuon/TrackingTools/src/MuonTrackLoader.cc +++ b/RecoMuon/TrackingTools/src/MuonTrackLoader.cc @@ -546,14 +546,7 @@ MuonTrackLoader::loadTracks(const TrajectoryContainer& trajectories, theService->eventSetup().get().get(theSmootherName,aSmoother); theSmoother.reset(aSmoother->clone()); edm::ESHandle theTrackerRecHitBuilder; - try { - std::string theTrackerRecHitBuilderName("WithAngleAndTemplate"); // to be moved to cfg in another PR - theService->eventSetup().get().get(theTrackerRecHitBuilderName,theTrackerRecHitBuilder); - theTrackerRecHitBuilder.product(); - } catch(...) { - std::string theTrackerRecHitBuilderName("hltESPTTRHBWithTrackAngle"); // FIXME FIXME - theService->eventSetup().get().get(theTrackerRecHitBuilderName,theTrackerRecHitBuilder); - } + theService->eventSetup().get().get(theTrackerRecHitBuilderName,theTrackerRecHitBuilder); hitCloner = static_cast(theTrackerRecHitBuilder.product())->cloner(); theSmoother->setHitCloner(&hitCloner); }