75 label_tr(consumes<edm::
View<
reco::Track> >(pset.getParameter< edm::
InputTag >(
"tracks")))
113 auto &
prod = (*product)[iT];
118 if (recSimColl.find(track)==recSimColl.end())
continue;
120 auto const & tp = recSimColl[track];
122 if (tp.empty())
continue;
126 if ( (tp[0].
first->eventId().event() != 0) || (tp[0].
first->eventId().bunchCrossing() != 0) )
prod=-
prod;
131 iEvent.
put(std::move(product));
edm::EDGetTokenT< edm::View< reco::Track > > label_tr
std::vector< TrackingParticle > TrackingParticleCollection
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
virtual void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
TrackMCQuality(const edm::ParameterSet &)
std::vector< float > Product
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< reco::TrackToTrackingParticleAssociator > label_assoc
edm::EDGetTokenT< TrackingParticleCollection > label_tp