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"),
23 fullChainPhysPartons = cms.bool(
True)
26 patJetFlavourAssociation = cms.EDProducer(
"JetFlavourClustering",
27 jets = cms.InputTag(
"ak4PFJetsCHS"),
28 bHadrons = cms.InputTag(
"patJetPartons",
"bHadrons"),
29 cHadrons = cms.InputTag(
"patJetPartons",
"cHadrons"),
30 partons = cms.InputTag(
"patJetPartons",
"physicsPartons"),
31 leptons = cms.InputTag(
"patJetPartons",
"leptons"),
32 jetAlgorithm = cms.string(
"AntiKt"),
33 rParam = cms.double(0.4),
34 ghostRescaling = cms.double(1e-18),
35 hadronFlavourHasPriority = cms.bool(
False)
39 patJetFlavourIdLegacyTask = cms.Task(patJetPartonsLegacy, patJetPartonAssociationLegacy, patJetFlavourAssociationLegacy)
40 patJetFlavourIdLegacy = cms.Sequence(patJetFlavourIdLegacyTask)
42 patJetFlavourIdTask = cms.Task(patJetPartons, patJetFlavourAssociation)
43 patJetFlavourId = cms.Sequence(patJetFlavourIdTask)
45 from Configuration.ProcessModifiers.pp_on_AA_cff
import pp_on_AA
46 pp_on_AA.toModify(patJetPartons, particles =
"hiSignalGenParticles")
47 pp_on_AA.toModify(patJetFlavourAssociation,
51 pp_on_AA.toModify(patJetPartonAssociationLegacy,
53 partons =
"allPartons",