|
|
Go to the documentation of this file.
10 : signalTracksTag(conf.getParameter<
edm::
InputTag>(
"signalTracks")),
11 pileUpTracksTag(conf.getParameter<
edm::
InputTag>(
"pileUpTracks")),
42 if (
e.bunchCrossing() == 0) {
60 e.getByLabel(
label, trackExtras);
64 <<
"Failed to find track collections with inputTag " <<
label << std::endl;
66 if (!
hits.isValid()) {
68 <<
"Failed to find hit collections with inputTag " <<
label << std::endl;
72 <<
"Failed to find trackExtra collections with inputTag " <<
label << std::endl;
75 for (
size_t t = 0;
t <
tracks->size(); ++
t) {
79 auto const& extra = trackExtras->at(
track.extra().key());
81 extra.outerMomentum(),
83 extra.innerPosition(),
84 extra.innerMomentum(),
86 extra.outerStateCovariance(),
88 extra.innerStateCovariance(),
90 extra.seedDirection(),
101 auto const firstTrackIndex =
newHits_->size();
102 for (
unsigned int i = 0;
i < extra.recHitsSize();
i++) {
105 newExtra.setHits(
rNewHits, firstTrackIndex,
newHits_->size() - firstTrackIndex);
106 newExtra.setTrajParams(extra.trajParams(), extra.chi2sX5());
107 assert(newExtra.recHitsSize() == newExtra.trajParams().size());
edm::InputTag pileUpTracksTag
void accumulateEvent(const T &e, edm::EventSetup const &c, const edm::InputTag &label)
reco::TrackExtraRefProd rNewTrackExtras
void accumulate(edm::Event const &e, edm::EventSetup const &c) override
void initializeEvent(edm::Event const &e, edm::EventSetup const &c) override
std::vector< TrackExtra > TrackExtraCollection
collection of TrackExtra objects
std::unique_ptr< reco::TrackCollection > newTracks_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
reco::TrackRefProd rNewTracks
std::unique_ptr< TrackingRecHitCollection > newHits_
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()
void finalizeEvent(edm::Event &e, edm::EventSetup const &c) override
TrackingRecHitRefProd rNewHits
std::unique_ptr< reco::TrackExtraCollection > newTrackExtras_
edm::InputTag signalTracksTag
RecoTrackAccumulator(const edm::ParameterSet &conf, edm::ProducesCollector, edm::ConsumesCollector &iC)
#define DEFINE_DIGI_ACCUMULATOR(type)
std::vector< Track > TrackCollection
collection of Tracks
~RecoTrackAccumulator() override