32 using namespace pixeltrackfitting;
33 using namespace ctfseeding;
38 : theConfig(cfg), theFitter(0), theCleaner(0)
40 if ( cfg.
exists(
"SeedMergerPSet") ) {
44 bool seedmergerAddTriplets = mergerPSet.
getParameter<
bool>(
"addRemainingTriplets" );
45 bool seedmergerMergeTriplets = mergerPSet.
getParameter<
bool>(
"mergeTriplets" );
47 theMerger_->setMergeTriplets( seedmergerMergeTriplets );
48 theMerger_->setAddRemainingTriplets( seedmergerAddTriplets );
49 theMerger_->setTTRHBuilderLabel( seedmergerTTRHBuilderLabel );
54 if (filterName !=
"none") {
57 edm::LogInfo(
"Obsolete") <<
"useFilterWithES parameter is obsolete and can be removed";
101 typedef std::vector<TrackingRegion* >
Regions;
102 typedef Regions::const_iterator IR;
112 for (IR ir=regions.begin(), irEnd=regions.end(); ir < irEnd; ++ir) {
118 unsigned int nTuplets = tuplets.
size();
119 tracks.reserve(tracks.size()+nTuplets);
121 for (
unsigned int iTuplet = 0; iTuplet < nTuplets; ++iTuplet) {
124 std::vector<const TrackingRecHit *> hits;
125 for (
unsigned int iHit = 0, nHits = tuplet.
size(); iHit < nHits; ++iHit) {
126 hits.push_back( tuplet[iHit]->
hit() );
131 if (!track)
continue;
151 for (IR ir=regions.begin(), irEnd=regions.end(); ir < irEnd; ++ir)
delete (*ir);
T getParameter(std::string const &) const
std::pair< reco::Track *, SeedingHitSet > TrackWithTTRHs
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
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)