31 using namespace pixeltrackfitting;
39 produces<reco::TrackCollection>();
40 produces<TrackingRecHitCollection>();
41 produces<reco::TrackExtraCollection>();
81 typedef std::vector<const TrackingRecHit *> RecHits;
90 if(theSeeds->size() == 0) {
100 typedef std::vector<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*>(0));
118 for (
unsigned i=0; aSeedingRecHit!=theLastSeedingRecHit; ++
i,++aSeedingRecHit )
119 TripletHits[
i] = &(*aSeedingRecHit);
137 int nTracks = pixeltracks.size();
138 for (
int i = 0;
i < nTracks; ++
i) {
141 const RecHits & hits = pixeltracks.at(
i).second;
143 for (
unsigned int k = 0;
k < hits.size();
k++) {
146 recHits->push_back(hit);
149 tracks->push_back(*track);
156 for (
int k = 0;
k < nTracks; ++
k) {
164 for(
unsigned int i = 0;
i < nHits; ++
i) {
170 trackExtras->push_back(theTrackExtra);
177 for (
int k = 0;
k < nTracks;
k++) {
180 (tracks->at(
k)).setExtra(theTrackExtraRef);
187 unsigned nRegions = regions.size();
188 for (
unsigned iRegions=0; iRegions<nRegions; ++iRegions ) {
189 delete regions[iRegions];
T getParameter(std::string const &) const
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.
edm::Ref< TrackingRecHitCollection > TrackingRecHitRef
persistent reference to a TrackingRecHit
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
const PixelTrackFilter * theFilter
std::pair< const_iterator, const_iterator > range
bool appendHitPattern(const TrackingRecHit &hit)
append a single hit to the HitPattern
std::pair< reco::Track *, std::vector< const TrackingRecHit * > > TrackWithRecHits
std::vector< TrackExtra > TrackExtraCollection
collection of TrackExtra objects
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
const PixelFitter * theFitter
std::vector< TrackWithRecHits > TracksWithRecHits
T get(const Candidate &c)
virtual std::vector< TrackingRegion * > regions(const edm::Event &ev, const edm::EventSetup &es) const =0