25 : theReconstruction(cfg, consumesCollector())
28 produces<reco::TrackCollection>();
29 produces<TrackingRecHitCollection>();
30 produces<reco::TrackExtraCollection>();
41 descriptions.
add(
"pixelTracksDefault", desc);
46 LogDebug(
"PixelTrackProducer, produce")<<
"event# :"<<ev.
id();
55 store(ev, tracks, *httopo);
60 auto tracks = std::make_unique<reco::TrackCollection>();
61 auto recHits = std::make_unique<TrackingRecHitCollection>();
62 auto trackExtras = std::make_unique<reco::TrackExtraCollection>();
64 int cc = 0,
nTracks = tracksWithHits.size();
71 for (
unsigned int k = 0;
k < hits.
size();
k++)
76 recHits->push_back(hit);
83 LogDebug(
"TrackProducer") <<
"put the collection of TrackingRecHit in the event" <<
"\n";
92 unsigned int nHits =
tracks->at(
k).numberOfValidHits();
93 theTrackExtra.setHits(hitCollProd, cc, nHits);
95 trackExtras->push_back(theTrackExtra);
98 LogDebug(
"TrackProducer") <<
"put the collection of TrackExtra in the event" <<
"\n";
104 (
tracks->at(
k)).setExtra(theTrackExtraRef);
const unsigned int nTracks(const reco::Vertex &sv)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
std::vector< TrackWithTTRHs > TracksWithTTRHs
virtual void produce(edm::Event &ev, const edm::EventSetup &es) override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void run(pixeltrackfitting::TracksWithTTRHs &tah, edm::Event &ev, const edm::EventSetup &es)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
bool appendHitPattern(const TrackingRecHit &hit, const TrackerTopology &ttopo)
append a single hit to the HitPattern
PixelTrackReconstruction theReconstruction
unsigned int size() const
void store(edm::Event &ev, const pixeltrackfitting::TracksWithTTRHs &selectedTracks, const TrackerTopology &ttopo)
static void fillDescriptions(edm::ParameterSetDescription &desc)
PixelTrackProducer(const edm::ParameterSet &conf)