60 typedef std::vector<const TrackingRecHit*> RecHits;
81 if (theSeeds->empty()) {
91 typedef std::vector<std::unique_ptr<TrackingRegion> >
Regions;
92 typedef Regions::const_iterator IR;
94 for (IR ir = regions.begin(), irEnd = regions.end(); ir < irEnd; ++ir) {
98 TrajectorySeedCollection::const_iterator aSeed = theSeeds->begin();
99 TrajectorySeedCollection::const_iterator lastSeed = theSeeds->end();
100 for (; aSeed != lastSeed; ++aSeed) {
107 std::vector<const TrackingRecHit*> TripletHits(3, static_cast<const TrackingRecHit*>(
nullptr));
108 for (
unsigned i = 0; aSeedingRecHit != theLastSeedingRecHit; ++
i, ++aSeedingRecHit)
109 TripletHits[
i] = &(*aSeedingRecHit);
112 std::unique_ptr<reco::Track>
track = fitter.
run(TripletHits, region, es);
115 if (!theFilter(track.get(), TripletHits)) {
125 int nTracks = pixeltracks.size();
128 const RecHits&
hits = pixeltracks.at(
i).second;
130 for (
unsigned int k = 0;
k < hits.size();
k++) {
136 tracks->push_back(*track);
149 const unsigned nHits = 3;
150 theTrackExtra.
setHits(ohRHProd, cc, nHits);
153 trackExtras->push_back(theTrackExtra);
162 (
tracks->at(
k)).setExtra(theTrackExtraRef);
std::pair< const_iterator, const_iterator > range
const unsigned int nTracks(const reco::Vertex &sv)
std::pair< reco::Track *, std::vector< const TrackingRecHit * > > TrackWithRecHits
std::vector< Track > TrackCollection
collection of Tracks
edm::EDGetTokenT< TrajectorySeedCollection > seedProducerToken
edm::EDGetTokenT< PixelTrackFilter > filterToken
std::unique_ptr< reco::Track > run(const std::vector< const TrackingRecHit * > &hits, const TrackingRegion ®ion, const edm::EventSetup &setup) const
std::vector< TrackExtra > TrackExtraCollection
collection of TrackExtra objects
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
bool appendHitPattern(const TrackingRecHit &hit, const TrackerTopology &ttopo)
append a single hit to the HitPattern
std::unique_ptr< TrackingRegionProducer > theRegionProducer
std::vector< TrackWithRecHits > TracksWithRecHits
edm::EDGetTokenT< PixelFitter > fitterToken