45 genJetFlavourInfosToken_(
46 consumes<
reco::JetFlavourInfoMatchingCollection>(iConfig.getParameter<
edm::
InputTag>(
"genJetFlavourInfos"))),
48 iConfig.getParameter<
edm::
InputTag>(
"slimmedGenJetAssociation"))) {
49 produces<reco::JetFlavourInfoMatchingCollection>();
73 for (
unsigned int i = 0;
i <
genJets->size(); ++
i) {
74 slimmedGenJetRef = (*slimmedGenJetAssociation)[
genJets->refAt(
i)];
75 if (!slimmedGenJetRef)
77 (*jetFlavourInfos)[
reco::JetBaseRef(slimmedGenJetRef)] = (*genJetFlavourInfos)[
i].second;