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<TrackingRegion* >
Regions;
103 typedef Regions::const_iterator IR;
113 for (IR ir=regions.begin(), irEnd=regions.end(); ir < irEnd; ++ir) {
119 unsigned int nTuplets = tuplets.
size();
120 tracks.reserve(tracks.size()+nTuplets);
122 for (
unsigned int iTuplet = 0; iTuplet < nTuplets; ++iTuplet) {
125 std::vector<const TrackingRecHit *> hits;
126 for (
unsigned int iHit = 0, nHits = tuplet.
size(); iHit < nHits; ++iHit) {
127 hits.push_back( tuplet[iHit]->
hit() );
132 if (!track)
continue;
152 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)