|
|
Go to the documentation of this file.
26 edm::LogInfo(
"PixelTrackProducer") <<
" construction...";
27 produces<reco::TrackCollection>();
28 produces<TrackingRecHitCollection>();
29 produces<reco::TrackExtraCollection>();
40 descriptions.
add(
"pixelTracks", desc);
44 LogDebug(
"PixelTrackProducer, produce") <<
"event# :" <<
ev.id();
57 auto tracks = std::make_unique<reco::TrackCollection>();
58 auto recHits = std::make_unique<TrackingRecHitCollection>();
59 auto trackExtras = std::make_unique<reco::TrackExtraCollection>();
61 int cc = 0,
nTracks = tracksWithHits.size();
67 for (
unsigned int k = 0;
k <
hits.size();
k++) {
70 track->appendHitPattern(*
hit, ttopo);
77 LogDebug(
"TrackProducer") <<
"put the collection of TrackingRecHit in the event"
86 unsigned int nHits =
tracks->at(
k).numberOfValidHits();
87 theTrackExtra.setHits(hitCollProd,
cc, nHits);
93 trackExtras->push_back(theTrackExtra);
96 LogDebug(
"TrackProducer") <<
"put the collection of TrackExtra in the event"
102 (
tracks->at(
k)).setExtra(theTrackExtraRef);
const unsigned int nTracks(const reco::Vertex &sv)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void produce(edm::Event &ev, const edm::EventSetup &es) override
void store(edm::Event &ev, const pixeltrackfitting::TracksWithTTRHs &selectedTracks, const TrackerTopology &ttopo)
static void fillDescriptions(edm::ParameterSetDescription &desc)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
PixelTrackReconstruction theReconstruction
void run(pixeltrackfitting::TracksWithTTRHs &tah, edm::Event &ev, const edm::EventSetup &es)
~PixelTrackProducer() override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< TrackWithTTRHs > TracksWithTTRHs
ROOT::Math::SVector< double, 5 > AlgebraicVector5
PixelTrackProducer(const edm::ParameterSet &conf)