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), ## master switch
37  addDiscriminators = cms.bool(True), ## addition btag discriminators
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  # The following code is commented-out to avoid breaking any unit test
53  # waiting for a set of AOD RelVals which have the jet tags in the event content
54  # DeepFlavour
55  # cms.InputTag('pfDeepCSVJetTags:probb'),
56  # cms.InputTag('pfDeepCSVJetTags:probc'),
57  # cms.InputTag('pfDeepCSVJetTags:probudsg'),
58  # cms.InputTag('pfDeepCSVJetTags:probbb'),
59  # cms.InputTag('pfDeepCSVJetTags:probcc'),
60  # DeepCMVA
61  # cms.InputTag('pfDeepCMVAJetTags:probb'),
62  # cms.InputTag('pfDeepCMVAJetTags:probc'),
63  # cms.InputTag('pfDeepCMVAJetTags:probudsg'),
64  # cms.InputTag('pfDeepCMVAJetTags:probbb'),
65  # cms.InputTag('pfDeepCMVAJetTags:probcc'),
66  ),
67  # clone tag infos ATTENTION: these take lots of space!
68  # usually the discriminators from the default algos
69  # are sufficient
70  addTagInfos = cms.bool(False),
71  tagInfoSources = cms.VInputTag(),
72  # track association
73  addAssociatedTracks = cms.bool(True),
74  trackAssociationSource = cms.InputTag("ak4JetTracksAssociatorAtVertexPF"),
75  # jet charge
76  addJetCharge = cms.bool(True),
77  jetChargeSource = cms.InputTag("patJetCharge"),
78  # add jet ID for calo jets. This should be of type ak4JetID, ak7JetID, ...
79  addJetID = cms.bool(False),
80  jetIDMap = cms.InputTag("ak4JetID"),
81  # mc matching
82  addGenPartonMatch = cms.bool(True), ## switch on/off matching to quarks from hard scatterin
83  embedGenPartonMatch = cms.bool(True), ## switch on/off embedding of the GenParticle parton for this jet
84  genPartonMatch = cms.InputTag("patJetPartonMatch"), ## particles source to be used for the matching
85  addGenJetMatch = cms.bool(True), ## switch on/off matching to GenJet's
86  embedGenJetMatch = cms.bool(True), ## switch on/off embedding of matched genJet's
87  genJetMatch = cms.InputTag("patJetGenJetMatch"), ## GenJet source to be used for the matching
88  addPartonJetMatch = cms.bool(False), ## switch on/off matching to PartonJet's (not implemented yet)
89  partonJetSource = cms.InputTag("NOT_IMPLEMENTED"), ## ParticleJet source to be used for the matching
90  # jet flavour idetification configurables
91  getJetMCFlavour = cms.bool(True),
92  useLegacyJetMCFlavour = cms.bool(False),
93  addJetFlavourInfo = cms.bool(True),
94  JetPartonMapSource = cms.InputTag("patJetFlavourAssociationLegacy"),
95  JetFlavourInfoSource = cms.InputTag("patJetFlavourAssociation"),
96  # efficiencies
97  addEfficiencies = cms.bool(False),
98  efficiencies = cms.PSet(),
99  # resolution
100  addResolutions = cms.bool(False),
101  resolutions = cms.PSet()
102 )
103 
104 patJets = _patJets.clone()