CMS 3D CMS Logo

jetProducer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 _patJets = cms.EDProducer("PATJetProducer",
4  # input
5  jetSource = cms.InputTag("ak4PFJetsCHS"),
6  # add user data
7  userData = cms.PSet(
8  # add custom classes here
9  userClasses = cms.PSet(
10  src = cms.VInputTag('')
11  ),
12  # add doubles here
13  userFloats = cms.PSet(
14  src = cms.VInputTag('')
15  ),
16  # add ints here
17  userInts = cms.PSet(
18  src = cms.VInputTag('')
19  ),
20  # add candidate ptrs here
21  userCands = cms.PSet(
22  src = cms.VInputTag('')
23  ),
24  # add "inline" functions here
25  userFunctions = cms.vstring(),
26  userFunctionLabels = cms.vstring()
27  ),
28  # embedding of RECO items (do not use on AOD input!)
29  #embedCaloTowers = cms.bool(False), # optional
30  # embedding of AOD items
31  embedPFCandidates = cms.bool(False),
32  # jet energy corrections
33  addJetCorrFactors = cms.bool(True),
34  jetCorrFactorsSource = cms.VInputTag(cms.InputTag("patJetCorrFactors") ),
35  # btag information
36  addBTagInfo = cms.bool(True),
37  addDiscriminators = cms.bool(True),
38  discriminatorSources = cms.VInputTag(
39  cms.InputTag("pfJetBProbabilityBJetTags"),
40  cms.InputTag("pfJetProbabilityBJetTags"),
41  cms.InputTag("pfTrackCountingHighEffBJetTags"),
42  cms.InputTag("pfSimpleSecondaryVertexHighEffBJetTags"),
43  cms.InputTag("pfSimpleInclusiveSecondaryVertexHighEffBJetTags"),
44  cms.InputTag("pfCombinedSecondaryVertexV2BJetTags"),
45  cms.InputTag("pfCombinedInclusiveSecondaryVertexV2BJetTags"),
46  cms.InputTag("softPFMuonBJetTags"),
47  cms.InputTag("softPFElectronBJetTags"),
48  cms.InputTag("pfCombinedMVAV2BJetTags"),
49  # CTagging
50  cms.InputTag('pfCombinedCvsLJetTags'),
51  cms.InputTag('pfCombinedCvsBJetTags'),
52  # DeepFlavour
53  cms.InputTag('pfDeepCSVJetTags:probb'),
54  cms.InputTag('pfDeepCSVJetTags:probc'),
55  cms.InputTag('pfDeepCSVJetTags:probudsg'),
56  cms.InputTag('pfDeepCSVJetTags:probbb'),
57  # New DeepFlavour (commented until available in RelVals)
58  #cms.InputTag('pfDeepFlavourJetTags:probb'),
59  #cms.InputTag('pfDeepFlavourJetTags:probbb'),
60  #cms.InputTag('pfDeepFlavourJetTags:problepb'),
61  #cms.InputTag('pfDeepFlavourJetTags:probc'),
62  #cms.InputTag('pfDeepFlavourJetTags:probuds'),
63  #cms.InputTag('pfDeepFlavourJetTags:probg')
64  ),
65  # clone tag infos ATTENTION: these take lots of space!
66  # usually the discriminators from the default algos
67  # are sufficient
68  addTagInfos = cms.bool(False),
69  tagInfoSources = cms.VInputTag(),
70  # track association
71  addAssociatedTracks = cms.bool(True),
72  trackAssociationSource = cms.InputTag("ak4JetTracksAssociatorAtVertexPF"),
73  # jet charge
74  addJetCharge = cms.bool(True),
75  jetChargeSource = cms.InputTag("patJetCharge"),
76  # add jet ID for calo jets. This should be of type ak4JetID, ak7JetID, ...
77  addJetID = cms.bool(False),
78  jetIDMap = cms.InputTag("ak4JetID"),
79  # mc matching
80  addGenPartonMatch = cms.bool(True),
81  embedGenPartonMatch = cms.bool(True),
82  genPartonMatch = cms.InputTag("patJetPartonMatch"),
83  addGenJetMatch = cms.bool(True),
84  embedGenJetMatch = cms.bool(True),
85  genJetMatch = cms.InputTag("patJetGenJetMatch"),
86  addPartonJetMatch = cms.bool(False),
87  partonJetSource = cms.InputTag("NOT_IMPLEMENTED"),
89  getJetMCFlavour = cms.bool(True),
90  useLegacyJetMCFlavour = cms.bool(False),
91  addJetFlavourInfo = cms.bool(True),
92  JetPartonMapSource = cms.InputTag("patJetFlavourAssociationLegacy"),
93  JetFlavourInfoSource = cms.InputTag("patJetFlavourAssociation"),
94  # efficiencies
95  addEfficiencies = cms.bool(False),
96  efficiencies = cms.PSet(),
97  # resolution
98  addResolutions = cms.bool(False),
99  resolutions = cms.PSet()
100 )
101 
102 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
103 pp_on_AA.toModify(_patJets,
104  jetSource = "akCs4PFJets",
105  genJetMatch = "patJetGenJetMatch",
106  genPartonMatch = "patJetPartonMatch",
107  JetFlavourInfoSource = "patJetFlavourAssociation",
108  JetPartonMapSource = "patJetFlavourAssociationLegacy",
109  jetCorrFactorsSource = ["patJetCorrFactors"],
110  trackAssociationSource = "ak5JetTracksAssociatorAtVertex",
111  useLegacyJetMCFlavour = True,
112  discriminatorSources = [
113  "simpleSecondaryVertexHighEffBJetTags",
114  "simpleSecondaryVertexHighPurBJetTags",
115  "combinedSecondaryVertexV2BJetTags",
116  "jetBProbabilityBJetTags",
117  "jetProbabilityBJetTags",
118  "trackCountingHighEffBJetTags",
119  "trackCountingHighPurBJetTags",
120  ],
121  addJetCharge = False,
122 )
123 
124 patJets = _patJets.clone()