30 using namespace pixeltrackfitting;
31 using namespace ctfseeding;
35 : theConfig(cfg), theFitter(0), theFilter(0), theCleaner(0), theGenerator(0), theRegionProducer(0)
55 std::string regfactoryName = regfactoryPSet.
getParameter<std::string>(
"ComponentName");
60 std::string orderedName = orderedPSet.
getParameter<std::string>(
"ComponentName");
64 std::string fitterName = fitterPSet.
getParameter<std::string>(
"ComponentName");
69 if (filterName !=
"none") {
76 std::string cleanerName = cleanerPSet.
getParameter<std::string>(
"ComponentName");
83 typedef std::vector<TrackingRegion* > Regions;
84 typedef Regions::const_iterator IR;
89 for (IR ir=regions.begin(), irEnd=regions.end(); ir < irEnd; ++ir) {
93 unsigned int nTriplets = triplets.
size();
96 for (
unsigned int iTriplet = 0; iTriplet < nTriplets; ++iTriplet) {
99 std::vector<const TrackingRecHit *> hits;
100 for (
unsigned int iHit = 0, nHits = triplet.
size(); iHit < nHits; ++iHit) {
101 hits.push_back( triplet[iHit]->
hit() );
106 if (!track)
continue;
124 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
edm::ParameterSet theConfig
virtual unsigned int size() const =0
OrderedHitsGenerator * theGenerator
TrackingRegionProducer * theRegionProducer
pixeltrackfitting::TracksWithTTRHs clean(const pixeltrackfitting::TracksWithTTRHs &initialT_TTRHs)
std::vector< TrackWithTTRHs > TracksWithTTRHs
virtual const OrderedSeedingHits & run(const TrackingRegion ®, const edm::Event &ev, const edm::EventSetup &es)=0
virtual void update(edm::Event &ev)
PixelTrackFilter * theFilter
~PixelTrackReconstruction()
void run(pixeltrackfitting::TracksWithTTRHs &tah, edm::Event &ev, const edm::EventSetup &es)
PixelTrackCleaner * theCleaner
unsigned int size() const
const PixelFitter * theFitter
PixelTrackReconstruction(const edm::ParameterSet &conf)
T get(const Candidate &c)
virtual std::vector< TrackingRegion * > regions(const edm::Event &ev, const edm::EventSetup &es) const =0