CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
jetFlavourId_cff.py
Go to the documentation of this file.
2 
3 patJetPartonsLegacy = cms.EDProducer("PartonSelector",
4  withLeptons = cms.bool(False),
5  src = cms.InputTag("genParticles")
6 )
7 
8 patJetPartonAssociationLegacy = cms.EDProducer("JetPartonMatcher",
9  jets = cms.InputTag("ak4PFJetsCHS"),
10  partons = cms.InputTag("patJetPartonsLegacy"),
11  coneSizeToAssociate = cms.double(0.3),
12 )
13 
14 patJetFlavourAssociationLegacy = cms.EDProducer("JetFlavourIdentifier",
15  srcByReference = cms.InputTag("patJetPartonAssociationLegacy"),
16  physicsDefinition = cms.bool(False)
17 )
18 
19 patJetPartons = cms.EDProducer('HadronAndPartonSelector',
20  src = cms.InputTag("generator"),
21  particles = cms.InputTag("genParticles"),
22  partonMode = cms.string("Auto")
23 )
24 
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","partons"),
30  jetAlgorithm = cms.string("AntiKt"),
31  rParam = cms.double(0.4),
32  ghostRescaling = cms.double(1e-18),
33  hadronFlavourHasPriority = cms.bool(True)
34 )
35 
36 # default PAT sequence for jet flavour identification
37 patJetFlavourIdLegacy = cms.Sequence(patJetPartonsLegacy * patJetPartonAssociationLegacy * patJetFlavourAssociationLegacy)
38 patJetFlavourId = cms.Sequence(patJetPartons * patJetFlavourAssociation)