69 typedef std::vector<const TrackingRecHit *> RecHits;
90 if(theSeeds->empty()) {
100 typedef std::vector<std::unique_ptr<TrackingRegion> > Regions;
101 typedef Regions::const_iterator IR;
103 for (IR ir=regions.begin(), irEnd=regions.end(); ir < irEnd; ++ir) {
107 TrajectorySeedCollection::const_iterator aSeed = theSeeds->begin();
108 TrajectorySeedCollection::const_iterator lastSeed = theSeeds->end();
109 for ( ; aSeed!=lastSeed; ++aSeed ) {
117 std::vector<const TrackingRecHit*> TripletHits(3,static_cast<const TrackingRecHit*>(
nullptr));
118 for (
unsigned i=0; aSeedingRecHit!=theLastSeedingRecHit; ++
i,++aSeedingRecHit )
119 TripletHits[
i] = &(*aSeedingRecHit);
122 std::unique_ptr<reco::Track>
track = fitter.
run(TripletHits, region, es);
125 if ( ! theFilter(track.get(), TripletHits) ) {
136 int nTracks = pixeltracks.size();
140 const RecHits &
hits = pixeltracks.at(
i).second;
142 for (
unsigned int k = 0;
k < hits.size();
k++) {
145 recHits->push_back(hit);
148 tracks->push_back(*track);
163 const unsigned nHits = 3;
164 theTrackExtra.
setHits( ohRHProd, cc, nHits);
167 trackExtras->push_back(theTrackExtra);
177 (
tracks->at(
k)).setExtra(theTrackExtraRef);
const unsigned int nTracks(const reco::Vertex &sv)
std::vector< Track > TrackCollection
collection of Tracks
edm::EDGetTokenT< TrajectorySeedCollection > seedProducerToken
edm::EDGetTokenT< PixelTrackFilter > filterToken
std::pair< const_iterator, const_iterator > range
std::pair< reco::Track *, std::vector< const TrackingRecHit * > > TrackWithRecHits
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