Skip to content

Commit

Permalink
Merge pull request #12689 from makortel/fixMuonTrackLoader
Browse files Browse the repository at this point in the history
Use configured name for TransientTrackingRecHitBuilder instead of hard-coded one in MuonTrackLoader
  • Loading branch information
cmsbuild committed Dec 8, 2015
2 parents 5c9d0a8 + e153d62 commit 798f2ac
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions RecoMuon/TrackingTools/src/MuonTrackLoader.cc
Expand Up @@ -546,14 +546,7 @@ MuonTrackLoader::loadTracks(const TrajectoryContainer& trajectories,
theService->eventSetup().get<TrajectoryFitter::Record>().get(theSmootherName,aSmoother);
theSmoother.reset(aSmoother->clone());
edm::ESHandle<TransientTrackingRecHitBuilder> theTrackerRecHitBuilder;
try {
std::string theTrackerRecHitBuilderName("WithAngleAndTemplate"); // to be moved to cfg in another PR
theService->eventSetup().get<TransientRecHitRecord>().get(theTrackerRecHitBuilderName,theTrackerRecHitBuilder);
theTrackerRecHitBuilder.product();
} catch(...) {
std::string theTrackerRecHitBuilderName("hltESPTTRHBWithTrackAngle"); // FIXME FIXME
theService->eventSetup().get<TransientRecHitRecord>().get(theTrackerRecHitBuilderName,theTrackerRecHitBuilder);
}
theService->eventSetup().get<TransientRecHitRecord>().get(theTrackerRecHitBuilderName,theTrackerRecHitBuilder);
hitCloner = static_cast<TkTransientTrackingRecHitBuilder const *>(theTrackerRecHitBuilder.product())->cloner();
theSmoother->setHitCloner(&hitCloner);
}
Expand Down

0 comments on commit 798f2ac

Please sign in to comment.