15 produces<ConversionTrackCollection>();
17 conversionTracksToken = consumes<ConversionTrackCollection>(conversionTracksTag);
18 newTracksToken = consumes<TrackCollection>(newTracksTag);
25 iEvent.
getByToken(conversionTracksToken, conversionTracks);
33 size_t trackIndex =
conversion.trackRef().key();
35 output->back().setTrajRef(
conversion.trajRef());
36 output->back().setIsTrackerOnly(
conversion.isTrackerOnly());
37 output->back().setIsArbitratedEcalSeeded(
conversion.isArbitratedEcalSeeded());
38 output->back().setIsArbitratedMerged(
conversion.isArbitratedMerged());
39 output->back().setIsArbitratedMergedEcalGeneral(
conversion.isArbitratedMergedEcalGeneral());
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
~ConversionTrackRefFix() override
std::vector< ConversionTrack > ConversionTrackCollection
collection of ConversionTracks
edm::RefToBase< reco::Track > TrackBaseRef
persistent reference to a Track, using views
void produce(edm::Event &, const edm::EventSetup &) override
void conversion(EventAux const &from, EventAuxiliary &to)
T const * product() const
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
T getParameter(std::string const &) const
ConversionTrackRefFix(const edm::ParameterSet &)