Skip to content

Commit

Permalink
Use configured value for TTRHBuilder instead of hardcoded one
Browse files Browse the repository at this point in the history
  • Loading branch information
makortel committed Dec 7, 2015
1 parent cb4ade5 commit e153d62
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions RecoMuon/TrackingTools/src/MuonTrackLoader.cc
Original file line number Diff line number Diff line change
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 e153d62

Please sign in to comment.