CMS 3D CMS Logo

jetFlavourId_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
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","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)
35 )
36 
37 # default PAT sequence for jet flavour identification
38 patJetFlavourIdLegacyTask = cms.Task(patJetPartonsLegacy, patJetPartonAssociationLegacy, patJetFlavourAssociationLegacy)
39 patJetFlavourIdLegacy = cms.Sequence(patJetFlavourIdLegacyTask)
40 
41 patJetFlavourIdTask = cms.Task(patJetPartons, patJetFlavourAssociation)
42 patJetFlavourId = cms.Sequence(patJetFlavourIdTask)