26 : theReconstruction(cfg, consumesCollector())
29 produces<reco::TrackCollection>();
30 produces<TrackingRecHitCollection>();
31 produces<reco::TrackExtraCollection>();
42 descriptions.
add(
"pixelTracks", desc);
47 LogDebug(
"PixelTrackProducer, produce")<<
"event# :"<<ev.
id();
56 store(ev, tracks, *httopo);
61 auto tracks = std::make_unique<reco::TrackCollection>();
62 auto recHits = std::make_unique<TrackingRecHitCollection>();
63 auto trackExtras = std::make_unique<reco::TrackExtraCollection>();
65 int cc = 0,
nTracks = tracksWithHits.size();
72 for (
unsigned int k = 0;
k < hits.
size();
k++)
77 recHits->push_back(hit);
84 LogDebug(
"TrackProducer") <<
"put the collection of TrackingRecHit in the event" <<
"\n";
93 unsigned int nHits =
tracks->at(
k).numberOfValidHits();
94 theTrackExtra.setHits(hitCollProd, cc, nHits);
100 trackExtras->push_back(theTrackExtra);
103 LogDebug(
"TrackProducer") <<
"put the collection of TrackExtra in the event" <<
"\n";
109 (
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)
ROOT::Math::SVector< double, 5 > AlgebraicVector5
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)