CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
jetProducer_cfi.py
Go to the documentation of this file.
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("jetBProbabilityBJetTags"),
40  cms.InputTag("jetProbabilityBJetTags"),
41  cms.InputTag("trackCountingHighPurBJetTags"),
42  cms.InputTag("trackCountingHighEffBJetTags"),
43  cms.InputTag("simpleSecondaryVertexHighEffBJetTags"),
44  cms.InputTag("simpleSecondaryVertexHighPurBJetTags"),
45  cms.InputTag("combinedInclusiveSecondaryVertexV2BJetTags"),
46  cms.InputTag("pfCombinedSecondaryVertexBJetTags"),
47  cms.InputTag("combinedMVABJetTags")
48  ),
49  # clone tag infos ATTENTION: these take lots of space!
50  # usually the discriminators from the default algos
51  # are sufficient
52  addTagInfos = cms.bool(False),
53  tagInfoSources = cms.VInputTag(),
54  # track association
55  addAssociatedTracks = cms.bool(True),
56  trackAssociationSource = cms.InputTag("ak4JetTracksAssociatorAtVertexPF"),
57  # jet charge
58  addJetCharge = cms.bool(True),
59  jetChargeSource = cms.InputTag("patJetCharge"),
60  # add jet ID for calo jets. This should be of type ak4JetID, ak7JetID, ...
61  addJetID = cms.bool(False),
62  jetIDMap = cms.InputTag("ak4JetID"),
63  # mc matching
64  addGenPartonMatch = cms.bool(True), ## switch on/off matching to quarks from hard scatterin
65  embedGenPartonMatch = cms.bool(True), ## switch on/off embedding of the GenParticle parton for this jet
66  genPartonMatch = cms.InputTag("patJetPartonMatch"), ## particles source to be used for the matching
67  addGenJetMatch = cms.bool(True), ## switch on/off matching to GenJet's
68  embedGenJetMatch = cms.bool(True), ## switch on/off embedding of matched genJet's
69  genJetMatch = cms.InputTag("patJetGenJetMatch"), ## GenJet source to be used for the matching
70  addPartonJetMatch = cms.bool(False), ## switch on/off matching to PartonJet's (not implemented yet)
71  partonJetSource = cms.InputTag("NOT_IMPLEMENTED"), ## ParticleJet source to be used for the matching
72  # jet flavour idetification configurables
73  getJetMCFlavour = cms.bool(True),
74  useLegacyJetMCFlavour = cms.bool(False),
75  addJetFlavourInfo = cms.bool(False),
76  JetPartonMapSource = cms.InputTag("patJetFlavourAssociationLegacy"),
77  JetFlavourInfoSource = cms.InputTag("patJetFlavourAssociation"),
78  # efficiencies
79  addEfficiencies = cms.bool(False),
80  efficiencies = cms.PSet(),
81  # resolution
82  addResolutions = cms.bool(False),
83  resolutions = cms.PSet()
84 )
85 
86