30 using namespace pixeltrackfitting;
38 produces<reco::TrackCollection>();
39 produces<TrackingRecHitCollection>();
40 produces<reco::TrackExtraCollection>();
43 std::string regfactoryName = regfactoryPSet.
getParameter<std::string>(
"ComponentName");
47 std::string fitterName = fitterPSet.
getParameter<std::string>(
"ComponentName");
77 typedef std::vector<const TrackingRecHit *> RecHits;
86 if(theSeeds->size() == 0) {
96 typedef std::vector<TrackingRegion* > Regions;
97 typedef Regions::const_iterator IR;
99 for (IR ir=regions.begin(), irEnd=regions.end(); ir < irEnd; ++ir) {
103 TrajectorySeedCollection::const_iterator aSeed = theSeeds->begin();
104 TrajectorySeedCollection::const_iterator lastSeed = theSeeds->end();
105 for ( ; aSeed!=lastSeed; ++aSeed ) {
113 std::vector<const TrackingRecHit*> TripletHits(3,static_cast<const TrackingRecHit*>(0));
114 for (
unsigned i=0; aSeedingRecHit!=theLastSeedingRecHit; ++
i,++aSeedingRecHit )
115 TripletHits[
i] = &(*aSeedingRecHit);
133 int nTracks = pixeltracks.size();
134 for (
int i = 0;
i < nTracks; ++
i) {
137 const RecHits & hits = pixeltracks.at(
i).second;
139 for (
unsigned int k = 0;
k < hits.size();
k++) {
142 recHits->push_back(hit);
145 tracks->push_back(*track);
152 for (
int k = 0;
k < nTracks; ++
k) {
160 for(
unsigned int i = 0;
i < nHits; ++
i) {
166 trackExtras->push_back(theTrackExtra);
173 for (
int k = 0;
k < nTracks;
k++) {
176 (tracks->at(
k)).setExtra(theTrackExtraRef);
183 unsigned nRegions = regions.size();
184 for (
unsigned iRegions=0; iRegions<nRegions; ++iRegions ) {
185 delete regions[iRegions];
T getParameter(std::string const &) const
virtual reco::Track * run(const edm::EventSetup &es, const std::vector< const TrackingRecHit * > &hits, const TrackingRegion ®ion) const =0
edm::InputTag seedProducer
PixelTracksProducer(const edm::ParameterSet &conf)
std::vector< Track > TrackCollection
collection of Tracks
virtual void produce(edm::Event &ev, const edm::EventSetup &es)
TrackingRegionProducer * theRegionProducer
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::Ref< TrackingRecHitCollection > TrackingRecHitRef
persistent reference to a TrackingRecHit
const PixelTrackFilter * theFilter
std::pair< const_iterator, const_iterator > range
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::pair< reco::Track *, std::vector< const TrackingRecHit * > > TrackWithRecHits
void setHitPattern(const C &c)
set hit patterns from vector of hit references
std::vector< TrackExtra > TrackExtraCollection
collection of TrackExtra objects
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