39 produces<reco::TrackCollection>();
40 produces<TrackingRecHitCollection>();
41 produces<reco::TrackExtraCollection>();
46 regfactoryPSet, consumesCollector())};
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);
T getParameter(std::string const &) const
void produce(edm::Event &ev, const edm::EventSetup &es) override
const unsigned int nTracks(const reco::Vertex &sv)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
PixelTracksProducer(const edm::ParameterSet &conf)
std::vector< Track > TrackCollection
collection of Tracks
#define DEFINE_FWK_MODULE(type)
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
T get(const Candidate &c)
~PixelTracksProducer() override