8 GeneralTrackOutput_(conf.getParameter<std::
string>(
"GeneralTrackOutput")),
9 HitOutput_(conf.getParameter<std::
string>(
"HitOutput")),
10 GeneralTrackExtraOutput_(conf.getParameter<std::
string>(
"GeneralTrackExtraOutput"))
62 if(!(e.getByLabel(
Input_, tracks) and e.getByLabel(
Input_, hits) and e.getByLabel(
Input_, trackExtras))){
63 edm::LogError (
"Failed to find track, hit or trackExtra collections");
68 for (
auto const& track : *tracks) {
71 auto const& extra = trackExtras->at(track.extra().key());
72 NewTrackExtraList_->emplace_back(extra.outerPosition(), extra.outerMomentum(), extra.outerOk(),
73 extra.innerPosition(),extra.innerMomentum(), extra.innerOk(),
74 extra.outerStateCovariance(), extra.outerDetId(),
75 extra.innerStateCovariance(), extra.innerDetId(),
76 extra.seedDirection(),
88 for(
unsigned int i = 0;
i<extra.recHitsSize();
i++){
89 NewHitList_->push_back( (*hits)[extra.recHit(
i).key()] );
91 newExtra.setHits(
rHits, firstTrackIndex,
NewHitList_->size() - firstTrackIndex);
int bunchCrossing() const
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
std::string GeneralTrackOutput_
void accumulateEvent(const T &e, edm::EventSetup const &c)
std::vector< Track > TrackCollection
collection of Tracks
virtual ~RecoTrackAccumulator()
std::auto_ptr< TrackingRecHitCollection > NewHitList_
std::auto_ptr< reco::TrackCollection > NewTrackList_
RecoTrackAccumulator(const edm::ParameterSet &conf, edm::one::EDProducerBase &mixMod, edm::ConsumesCollector &iC)
TrackingRecHitRefProd rHits
virtual void accumulate(edm::Event const &e, edm::EventSetup const &c)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
std::auto_ptr< reco::TrackExtraCollection > NewTrackExtraList_
std::vector< TrackExtra > TrackExtraCollection
collection of TrackExtra objects
edm::OwnVector< TrackingRecHit > TrackingRecHitCollection
collection of TrackingRecHits
reco::TrackExtraRefProd rTrackExtras
virtual void finalizeEvent(edm::Event &e, edm::EventSetup const &c)
virtual void initializeEvent(edm::Event const &e, edm::EventSetup const &c)
std::string GeneralTrackExtraOutput_