35 using namespace pixeltrackfitting;
43 produces<reco::TrackCollection>();
44 produces<TrackingRecHitCollection>();
45 produces<reco::TrackExtraCollection>();
85 typedef std::vector<const TrackingRecHit *> RecHits;
98 if(theSeeds->size() == 0) {
108 typedef std::vector<std::unique_ptr<TrackingRegion> >
Regions;
109 typedef Regions::const_iterator IR;
111 for (IR ir=regions.begin(), irEnd=regions.end(); ir < irEnd; ++ir) {
115 TrajectorySeedCollection::const_iterator aSeed = theSeeds->begin();
116 TrajectorySeedCollection::const_iterator lastSeed = theSeeds->end();
117 for ( ; aSeed!=lastSeed; ++aSeed ) {
125 std::vector<const TrackingRecHit*> TripletHits(3,static_cast<const TrackingRecHit*>(0));
126 for (
unsigned i=0; aSeedingRecHit!=theLastSeedingRecHit; ++
i,++aSeedingRecHit )
127 TripletHits[
i] = &(*aSeedingRecHit);
145 int nTracks = pixeltracks.size();
149 const RecHits & hits = pixeltracks.at(
i).second;
151 for (
unsigned int k = 0;
k < hits.size();
k++) {
154 recHits->push_back(hit);
157 tracks->push_back(*track);
172 const unsigned nHits = 3;
173 theTrackExtra.
setHits( ohRHProd, cc, nHits);
176 trackExtras->push_back(theTrackExtra);
186 (tracks->at(
k)).setExtra(theTrackExtraRef);
T getParameter(std::string const &) const
const unsigned int nTracks(const reco::Vertex &sv)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::InputTag seedProducer
PixelTracksProducer(const edm::ParameterSet &conf)
virtual reco::Track * run(const edm::EventSetup &es, const std::vector< const TrackingRecHit * > &hits, const TrackingRegion ®ion) const
std::vector< Track > TrackCollection
collection of Tracks
virtual void produce(edm::Event &ev, const edm::EventSetup &es)
TrackingRegionProducer * theRegionProducer
edm::EDGetTokenT< TrajectorySeedCollection > seedProducerToken
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
const PixelTrackFilter * theFilter
std::pair< const_iterator, const_iterator > range
std::pair< reco::Track *, std::vector< const TrackingRecHit * > > TrackWithRecHits
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
virtual std::vector< std::unique_ptr< TrackingRegion > > regions(const edm::Event &ev, const edm::EventSetup &es) const =0
const PixelFitter * theFitter
std::vector< TrackWithRecHits > TracksWithRecHits
T get(const Candidate &c)