33 using namespace pixeltrackfitting;
34 using namespace ctfseeding;
39 : theConfig(cfg), theFitter(0), theCleaner(0)
41 if ( cfg.
exists(
"SeedMergerPSet") ) {
45 bool seedmergerAddTriplets = mergerPSet.
getParameter<
bool>(
"addRemainingTriplets" );
46 bool seedmergerMergeTriplets = mergerPSet.
getParameter<
bool>(
"mergeTriplets" );
48 theMerger_->setMergeTriplets( seedmergerMergeTriplets );
49 theMerger_->setAddRemainingTriplets( seedmergerAddTriplets );
50 theMerger_->setTTRHBuilderLabel( seedmergerTTRHBuilderLabel );
55 if (filterName !=
"none") {
58 edm::LogInfo(
"Obsolete") <<
"useFilterWithES parameter is obsolete and can be removed";
102 typedef std::vector<std::unique_ptr<TrackingRegion> >
Regions;
103 typedef Regions::const_iterator IR;
113 std::vector<const TrackingRecHit *> hits;hits.reserve(4);
114 for (IR ir=regions.begin(), irEnd=regions.end(); ir < irEnd; ++ir) {
120 unsigned int nTuplets = tuplets.
size();
121 tracks.reserve(tracks.size()+nTuplets);
123 for (
unsigned int iTuplet = 0; iTuplet < nTuplets; ++iTuplet) {
127 auto nHits = tuplet.
size(); hits.resize(nHits);
128 for (
unsigned int iHit = 0; iHit < nHits; ++iHit) hits[iHit] = tuplet[iHit];
132 if (!track)
continue;
143 tracks.emplace_back(track, tuplet);
T getParameter(std::string const &) const
void init(const edm::EventSetup &es)
virtual reco::Track * run(const edm::EventSetup &es, const std::vector< const TrackingRecHit * > &hits, const TrackingRegion ®ion) const
bool exists(std::string const ¶meterName) const
checks if a parameter exists
edm::ParameterSet theConfig
virtual unsigned int size() const =0
virtual TracksWithRecHits cleanTracks(const TracksWithRecHits &tracksWithRecHits, const TrackerTopology *tTopo)
std::vector< TrackWithTTRHs > TracksWithTTRHs
std::unique_ptr< TrackingRegionProducer > theRegionProducer
std::unique_ptr< OrderedHitsGenerator > theGenerator
PixelTrackReconstruction(const edm::ParameterSet &conf, edm::ConsumesCollector &&iC)
~PixelTrackReconstruction()
std::unique_ptr< PixelTrackFilter > theFilter
void run(pixeltrackfitting::TracksWithTTRHs &tah, edm::Event &ev, const edm::EventSetup &es)
PixelTrackCleaner * theCleaner
T const * product() const
pixeltrackfitting::TracksWithTTRHs clean(const pixeltrackfitting::TracksWithTTRHs &initialT_TTRHs, const TrackerTopology *tTopo)
unsigned int size() const
const PixelFitter * theFitter
std::unique_ptr< QuadrupletSeedMerger > theMerger_
T get(const Candidate &c)