77 produces<reco::TrackCollection>();
78 produces<TrackingRecHitCollection>();
79 produces<reco::TrackExtraCollection>();
111 const auto&
seeds = *hseeds;
132 for (
size_t iSeed = 0; iSeed <
seeds.size(); ++iSeed) {
140 if (tsAtClosestApproachSeed.isValid()) {
142 tsAtClosestApproachSeed.trackStateAtPCA().position().y(),
143 tsAtClosestApproachSeed.trackStateAtPCA().position().z());
145 tsAtClosestApproachSeed.trackStateAtPCA().momentum().y(),
146 tsAtClosestApproachSeed.trackStateAtPCA().momentum().z());
150 tracks->emplace_back(0., 0., vSeed1, pSeed,
state.charge(), seedPerigeeErrors.covarianceMatrix());
152 edm::LogVerbatim(
"SeedValidator") <<
"TrajectoryStateClosestToBeamLine not valid";
160 tracks->back().appendHits(
seed.recHits().begin(),
seed.recHits().end(), ttopo);
162 size_t firsthitindex =
rechits->size();
169 trackextras->back().setHits(ref_rechits, firsthitindex,
rechits->size() - firsthitindex);
176 edm::LogInfo(
"SeedValidator") <<
"failed to create tracks from " << nfailed <<
" out of " <<
seeds.size()