19 using namespace pixeltrackfitting;
23 : theReconstruction(cfg, consumesCollector())
26 produces<reco::TrackCollection>();
27 produces<TrackingRecHitCollection>();
28 produces<reco::TrackExtraCollection>();
45 LogDebug(
"PixelTrackProducer, produce")<<
"event# :"<<ev.
id();
54 store(ev, tracks, *httopo);
63 int cc = 0,
nTracks = tracksWithHits.size();
70 for (
unsigned int k = 0;
k < hits.
size();
k++)
75 recHits->push_back(hit);
77 tracks->push_back(*track);
82 LogDebug(
"TrackProducer") <<
"put the collection of TrackingRecHit in the event" <<
"\n";
91 unsigned int nHits = tracks->at(
k).numberOfValidHits();
92 theTrackExtra.
setHits(hitCollProd, cc, nHits);
94 trackExtras->push_back(theTrackExtra);
97 LogDebug(
"TrackProducer") <<
"put the collection of TrackExtra in the event" <<
"\n";
103 (tracks->at(
k)).setExtra(theTrackExtraRef);
const unsigned int nTracks(const reco::Vertex &sv)
void init(const edm::EventSetup &es)
std::vector< Track > TrackCollection
collection of Tracks
virtual void endRun(const edm::Run &run, const edm::EventSetup &es) override
std::vector< TrackWithTTRHs > TracksWithTTRHs
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual void beginRun(const edm::Run &run, const edm::EventSetup &es) override
virtual void produce(edm::Event &ev, const edm::EventSetup &es) override
void run(pixeltrackfitting::TracksWithTTRHs &tah, edm::Event &ev, const edm::EventSetup &es)
std::vector< TrackExtra > TrackExtraCollection
collection of TrackExtra objects
edm::OwnVector< TrackingRecHit > TrackingRecHitCollection
collection of TrackingRecHits
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)
PixelTrackProducer(const edm::ParameterSet &conf)