15 using namespace pixeltrackfitting;
19 : theReconstruction(cfg)
22 produces<reco::TrackCollection>();
23 produces<TrackingRecHitCollection>();
24 produces<reco::TrackExtraCollection>();
41 LogDebug(
"PixelTrackProducer, produce")<<
"event# :"<<ev.
id();
56 int cc = 0, nTracks = tracksWithHits.size();
58 for (
int i = 0;
i < nTracks;
i++)
63 for (
unsigned int k = 0;
k < hits.
size();
k++)
68 recHits->push_back(hit);
70 tracks->push_back(*track);
75 LogDebug(
"TrackProducer") <<
"put the collection of TrackingRecHit in the event" <<
"\n";
79 for (
int k = 0;
k < nTracks;
k++)
84 unsigned int nHits = tracks->at(
k).numberOfValidHits();
85 for(
unsigned int i = 0;
i < nHits; ++
i) {
90 trackExtras->push_back(*theTrackExtra);
94 LogDebug(
"TrackProducer") <<
"put the collection of TrackExtra in the event" <<
"\n";
97 for (
int k = 0;
k < nTracks;
k++)
100 (tracks->at(
k)).setExtra(theTrackExtraRef);
void init(const edm::EventSetup &es)
std::vector< Track > TrackCollection
collection of Tracks
std::vector< TrackWithTTRHs > TracksWithTTRHs
virtual void produce(edm::Event &ev, const edm::EventSetup &es)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::Ref< TrackingRecHitCollection > TrackingRecHitRef
persistent reference to a TrackingRecHit
void run(pixeltrackfitting::TracksWithTTRHs &tah, edm::Event &ev, const edm::EventSetup &es)
void setHitPattern(const C &c)
set hit patterns from vector of hit references
std::vector< TrackExtra > TrackExtraCollection
collection of TrackExtra objects
edm::OwnVector< TrackingRecHit > TrackingRecHitCollection
collection of TrackingRecHits
virtual void beginRun(edm::Run &run, const edm::EventSetup &es)
PixelTrackReconstruction theReconstruction
virtual void endRun(edm::Run &run, const edm::EventSetup &es)
unsigned int size() const
void store(edm::Event &ev, const pixeltrackfitting::TracksWithTTRHs &selectedTracks)
PixelTrackProducer(const edm::ParameterSet &conf)