1 import FWCore.ParameterSet.Config
as cms
3 patJetPartonsLegacy = cms.EDProducer(
"PartonSelector",
4 withLeptons = cms.bool(
False),
5 src = cms.InputTag(
"genParticles")
8 patJetPartonAssociationLegacy = cms.EDProducer(
"JetPartonMatcher",
9 jets = cms.InputTag(
"ak4PFJetsCHS"),
10 partons = cms.InputTag(
"patJetPartonsLegacy"),
11 coneSizeToAssociate = cms.double(0.3),
14 patJetFlavourAssociationLegacy = cms.EDProducer(
"JetFlavourIdentifier",
15 srcByReference = cms.InputTag(
"patJetPartonAssociationLegacy"),
16 physicsDefinition = cms.bool(
False)
19 patJetPartons = cms.EDProducer(
'HadronAndPartonSelector',
20 src = cms.InputTag(
"generator"),
21 particles = cms.InputTag(
"genParticles"),
22 partonMode = cms.string(
"Auto")
25 patJetFlavourAssociation = cms.EDProducer(
"JetFlavourClustering",
26 jets = cms.InputTag(
"ak4PFJetsCHS"),
27 bHadrons = cms.InputTag(
"patJetPartons",
"bHadrons"),
28 cHadrons = cms.InputTag(
"patJetPartons",
"cHadrons"),
29 partons = cms.InputTag(
"patJetPartons",
"algorithmicPartons"),
30 leptons = cms.InputTag(
"patJetPartons",
"leptons"),
31 jetAlgorithm = cms.string(
"AntiKt"),
32 rParam = cms.double(0.4),
33 ghostRescaling = cms.double(1e-18),
34 hadronFlavourHasPriority = cms.bool(
False)
38 patJetFlavourIdLegacy = cms.Sequence(patJetPartonsLegacy * patJetPartonAssociationLegacy * patJetFlavourAssociationLegacy)
39 patJetFlavourId = cms.Sequence(patJetPartons * patJetFlavourAssociation)