26 theCleanerName(cfg.getParameter<
std::
string>(
"Cleaner")) {
28 if (not filterTag.
label().empty()) {
45 const auto& hitSets = *hhitSets;
49 const auto& fitter = *hfitter;
58 std::vector<const TrackingRecHit*>
hits;
60 for (
const auto& regionHitSets : hitSets) {
65 auto nHits = tuplet.size();
67 for (
unsigned int iHit = 0; iHit < nHits; ++iHit)
68 hits[iHit] = tuplet[iHit];
71 std::unique_ptr<reco::Track>
track = fitter.run(hits, region, es);
76 if (!(*filter)(track.get(),
hits)) {
82 tracks.emplace_back(track.release(), tuplet);
90 const auto& cleaner = *hcleaner;
92 cleaner.cleanTracks(tracks);
T getParameter(std::string const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
pixeltrackfitting::TracksWithTTRHs clean(const pixeltrackfitting::TracksWithTTRHs &initialT_TTRHs) const
edm::EDGetTokenT< PixelTrackFilter > theFilterToken
std::vector< TrackWithTTRHs > TracksWithTTRHs
std::string theCleanerName
PixelTrackReconstruction(const edm::ParameterSet &conf, edm::ConsumesCollector &&iC)
~PixelTrackReconstruction()
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void run(pixeltrackfitting::TracksWithTTRHs &tah, edm::Event &ev, const edm::EventSetup &es)
T const * product() const
bool isUninitialized() const
static void fillDescriptions(edm::ParameterSetDescription &desc)
edm::EDGetTokenT< RegionsSeedingHitSets > theHitSetsToken
edm::EDGetTokenT< PixelFitter > theFitterToken