-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjetProducer_cfi.py
100 lines (86 loc) · 3.94 KB
/
jetProducer_cfi.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
import FWCore.ParameterSet.Config as cms
patJets = cms.EDProducer("PATJetProducer",
# input
jetSource = cms.InputTag("ak5CaloJets"),
# add user data
userData = cms.PSet(
# add custom classes here
userClasses = cms.PSet(
src = cms.VInputTag('')
),
# add doubles here
userFloats = cms.PSet(
src = cms.VInputTag('')
),
# add ints here
userInts = cms.PSet(
src = cms.VInputTag('')
),
# add candidate ptrs here
userCands = cms.PSet(
src = cms.VInputTag('')
),
# add "inline" functions here
userFunctions = cms.vstring(),
userFunctionLabels = cms.vstring()
),
# embedding of AOD items
embedCaloTowers = cms.bool(True), ## switch on/off embedding of supercluster (externally stored in AOD)
embedPFCandidates = cms.bool(True),
# jet energy corrections
addJetCorrFactors = cms.bool(True),
jetCorrFactorsSource = cms.VInputTag(cms.InputTag("patJetCorrFactors") ),
# btag information
addBTagInfo = cms.bool(True), ## master switch
addDiscriminators = cms.bool(True), ## addition btag discriminators
discriminatorSources = cms.VInputTag(
cms.InputTag("combinedSecondaryVertexBJetTags"),
cms.InputTag("combinedSecondaryVertexMVABJetTags"),
cms.InputTag("jetBProbabilityBJetTags"),
cms.InputTag("jetProbabilityBJetTags"),
cms.InputTag("simpleSecondaryVertexHighEffBJetTags"),
cms.InputTag("simpleSecondaryVertexHighPurBJetTags"),
# cms.InputTag("softElectronByPtBJetTags"),
# cms.InputTag("softElectronByIP3dBJetTags"),
# cms.InputTag("softMuonBJetTags"),
# cms.InputTag("softMuonByPtBJetTags"),
# cms.InputTag("softMuonByIP3dBJetTags"),
cms.InputTag("trackCountingHighEffBJetTags"),
cms.InputTag("trackCountingHighPurBJetTags"),
),
# clone tag infos ATTENTION: these take lots of space!
# usually the discriminators from the default algos
# are sufficient
addTagInfos = cms.bool(False),
tagInfoSources = cms.VInputTag(),
# track association
addAssociatedTracks = cms.bool(True),
trackAssociationSource = cms.InputTag("ak5JetTracksAssociatorAtVertex"),
# jet charge
addJetCharge = cms.bool(True),
jetChargeSource = cms.InputTag("patJetCharge"),
# add jet ID
addJetID = cms.bool(True),
jetIDMap = cms.InputTag("ak5JetID"),
# mc matching
addGenPartonMatch = cms.bool(False), ## switch on/off matching to quarks from hard scatterin
embedGenPartonMatch = cms.bool(False), ## switch on/off embedding of the GenParticle parton for this jet
genPartonMatch = cms.InputTag("patJetPartonMatch"), ## particles source to be used for the matching
addGenJetMatch = cms.bool(False), ## switch on/off matching to GenJet's
embedGenJetMatch = cms.bool(False), ## switch on/off embedding of matched genJet's
genJetMatch = cms.InputTag("patJetGenJetMatch"), ## GenJet source to be used for the matching
addPartonJetMatch = cms.bool(False), ## switch on/off matching to PartonJet's (not implemented yet)
partonJetSource = cms.InputTag("NOT_IMPLEMENTED"), ## ParticleJet source to be used for the matching
# jet flavour idetification configurables
getJetMCFlavour = cms.bool(True),
useLegacyJetMCFlavour = cms.bool(True),
addJetFlavourInfo = cms.bool(False),
JetPartonMapSource = cms.InputTag("patJetFlavourAssociationLegacy"),
JetFlavourInfoSource = cms.InputTag("patJetFlavourAssociation"),
# efficiencies
addEfficiencies = cms.bool(False),
efficiencies = cms.PSet(),
# resolution
addResolutions = cms.bool(False),
resolutions = cms.PSet()
)