7 process.patMuons.isoDeposits = cms.PSet()
8 process.patElectrons.isoDeposits = cms.PSet()
9 process.patTaus.isoDeposits = cms.PSet()
10 process.patPhotons.isoDeposits = cms.PSet()
12 process.patMuons.embedTrack =
True
13 process.patMuons.embedCombinedMuon =
True
14 process.patMuons.embedMuonBestTrack =
True
15 process.patMuons.embedStandAloneMuon =
True
16 process.patMuons.embedPickyMuon =
False
17 process.patMuons.embedTpfmsMuon =
False
18 process.patMuons.embedDytMuon =
False
21 process.patElectrons.embedGsfElectronCore =
False
22 process.patElectrons.embedSuperCluster =
False
23 process.patElectrons.embedPflowSuperCluster =
False
24 process.patElectrons.embedSeedCluster =
False
25 process.patElectrons.embedBasicClusters =
False
26 process.patElectrons.embedPreshowerClusters =
False
27 process.patElectrons.embedPflowBasicClusters =
False
28 process.patElectrons.embedPflowPreshowerClusters =
False
29 process.patElectrons.embedRecHits =
False
30 process.patElectrons.electronSource = cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
31 process.patElectrons.electronIDSources = cms.PSet(
34 eidRobustLoose = cms.InputTag(
"reducedEgamma",
"eidRobustLoose"),
35 eidRobustTight = cms.InputTag(
"reducedEgamma",
"eidRobustTight"),
36 eidLoose = cms.InputTag(
"reducedEgamma",
"eidLoose"),
37 eidTight = cms.InputTag(
"reducedEgamma",
"eidTight"),
38 eidRobustHighEnergy = cms.InputTag(
"reducedEgamma",
"eidRobustHighEnergy"),
40 process.elPFIsoDepositCharged.src = cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
41 process.elPFIsoDepositChargedAll.src = cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
42 process.elPFIsoDepositNeutral.src = cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
43 process.elPFIsoDepositGamma.src = cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
44 process.elPFIsoDepositPU.src = cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
46 process.patPhotons.embedSuperCluster =
False
47 process.patPhotons.embedSeedCluster =
False
48 process.patPhotons.embedBasicClusters =
False
49 process.patPhotons.embedPreshowerClusters =
False
50 process.patPhotons.embedRecHits =
False
51 process.patPhotons.photonSource = cms.InputTag(
"reducedEgamma",
"reducedGedPhotons")
52 process.patPhotons.photonIDSources = cms.PSet(
53 PhotonCutBasedIDLoose = cms.InputTag(
'reducedEgamma',
54 'PhotonCutBasedIDLoose'),
55 PhotonCutBasedIDTight = cms.InputTag(
'reducedEgamma',
56 'PhotonCutBasedIDTight')
59 process.phPFIsoDepositCharged.src = cms.InputTag(
"reducedEgamma",
"reducedGedPhotons")
60 process.phPFIsoDepositChargedAll.src = cms.InputTag(
"reducedEgamma",
"reducedGedPhotons")
61 process.phPFIsoDepositNeutral.src = cms.InputTag(
"reducedEgamma",
"reducedGedPhotons")
62 process.phPFIsoDepositGamma.src = cms.InputTag(
"reducedEgamma",
"reducedGedPhotons")
63 process.phPFIsoDepositPU.src = cms.InputTag(
"reducedEgamma",
"reducedGedPhotons")
65 process.selectedPatJets.cut = cms.string(
"pt > 10")
66 process.selectedPatMuons.cut = cms.string(
"pt > 5 || isPFMuon || (pt > 3 && (isGlobalMuon || isStandAloneMuon || numberOfMatches > 0 || muonID('RPCMuLoose')))")
67 process.selectedPatElectrons.cut = cms.string(
"")
68 process.selectedPatTaus.cut = cms.string(
"pt > 18. && tauID('decayModeFinding')> 0.5")
69 process.selectedPatPhotons.cut = cms.string(
"")
73 process.cmsttRaw = toptag.clone()
74 process.caTopTagInfos = cms.EDProducer(
"RecoJetDeltaRTagInfoValueMapProducer",
75 src = cms.InputTag(
"ak8PFJetsCHS"),
76 matched = cms.InputTag(
"cmsTopTagPFJetsCHS"),
77 matchedTagInfos = cms.InputTag(
"cmsttRaw"),
78 distMax = cms.double(0.8)
83 addJetCollection(process, labelName =
'AK8',
84 jetSource = cms.InputTag(
'ak8PFJetsCHS'),
85 algo=
'AK', rParam = 0.8,
86 jetCorrections = (
'AK8PFchs', cms.vstring([
'L1FastJet',
'L2Relative',
'L3Absolute']),
'None'),
87 btagInfos = [
'caTopTagInfos']
89 process.patJetsAK8.userData.userFloats.src = []
90 process.selectedPatJetsAK8.cut = cms.string(
"pt > 100")
91 process.patJetGenJetMatchAK8.matched =
'slimmedGenJets'
94 process.ak8PFJetsCHSPruned = ak8PFJetsCHSPruned.clone()
95 process.ak8PFJetsCHSTrimmed = ak8PFJetsCHSTrimmed.clone()
96 process.ak8PFJetsCHSFiltered = ak8PFJetsCHSFiltered.clone()
97 process.load(
"RecoJets.JetProducers.ak8PFJetsCHS_groomingValueMaps_cfi")
98 process.patJetsAK8.userData.userFloats.src += [
'ak8PFJetsCHSPrunedLinks',
'ak8PFJetsCHSTrimmedLinks',
'ak8PFJetsCHSFilteredLinks']
101 process.patJetsAK8.tagInfoSources = cms.VInputTag(cms.InputTag(
"caTopTagInfos"))
102 process.patJetsAK8.addTagInfos = cms.bool(
True)
107 process.load(
'RecoJets.JetProducers.nJettinessAdder_cfi')
108 process.NjettinessAK8 = process.Njettiness.clone()
109 process.NjettinessAK8.src = cms.InputTag(
"ak8PFJetsCHS")
110 process.NjettinessAK8.cone = cms.double(0.8)
111 process.patJetsAK8.userData.userFloats.src += [
'NjettinessAK8:tau1',
'NjettinessAK8:tau2',
'NjettinessAK8:tau3']
116 from PhysicsTools.PatAlgos.tools.trigTools
import switchOnTriggerStandAlone
118 process.patTrigger.packTriggerPathNames = cms.bool(
True)
123 from PhysicsTools.PatUtils.tools.runType1PFMEtUncertainties
import runType1PFMEtUncertainties
124 addJetCollection(process, postfix =
"ForMetUnc", labelName =
'AK4PF', jetSource = cms.InputTag(
'ak4PFJets'), jetCorrections = (
'AK4PF', [
'L1FastJet',
'L2Relative',
'L3Absolute'],
''))
125 process.patJetsAK4PFForMetUnc.getJetMCFlavour =
False
127 addToPatDefaultSequence=
False,
128 jetCollection=
"selectedPatJetsAK4PFForMetUnc",
129 electronCollection=
"selectedPatElectrons",
130 muonCollection=
"selectedPatMuons",
131 tauCollection=
"selectedPatTaus",
132 makeType1p2corrPFMEt=
True,
138 process.patJets.userData.userFunctions = cms.vstring(
139 '?(tagInfoSecondaryVertex().nVertices()>0)?(tagInfoSecondaryVertex().secondaryVertex(0).p4.M):(0)',
140 '?(tagInfoSecondaryVertex().nVertices()>0)?(tagInfoSecondaryVertex().secondaryVertex(0).nTracks):(0)',
141 '?(tagInfoSecondaryVertex().nVertices()>0)?(tagInfoSecondaryVertex().flightDistance(0).value):(0)',
142 '?(tagInfoSecondaryVertex().nVertices()>0)?(tagInfoSecondaryVertex().flightDistance(0).significance):(0)',
143 '?(tagInfoSecondaryVertex().nVertices()>0)?(tagInfoSecondaryVertex().secondaryVertex(0).p4.x):(0)',
144 '?(tagInfoSecondaryVertex().nVertices()>0)?(tagInfoSecondaryVertex().secondaryVertex(0).p4.y):(0)',
145 '?(tagInfoSecondaryVertex().nVertices()>0)?(tagInfoSecondaryVertex().secondaryVertex(0).p4.z):(0)',
146 '?(tagInfoSecondaryVertex().nVertices()>0)?(tagInfoSecondaryVertex().secondaryVertex(0).position.x):(0)',
147 '?(tagInfoSecondaryVertex().nVertices()>0)?(tagInfoSecondaryVertex().secondaryVertex(0).position.y):(0)',
148 '?(tagInfoSecondaryVertex().nVertices()>0)?(tagInfoSecondaryVertex().secondaryVertex(0).position.z):(0)',
150 process.patJets.userData.userFunctionLabels = cms.vstring(
'vtxMass',
'vtxNtracks',
'vtx3DVal',
'vtx3DSig',
'vtxPx',
'vtxPy',
'vtxPz',
'vtxPosX',
'vtxPosY',
'vtxPosZ')
151 process.patJets.tagInfoSources = cms.VInputTag(cms.InputTag(
"secondaryVertexTagInfos"))
152 process.patJets.addTagInfos = cms.bool(
True)
155 process.load(
"PhysicsTools.PatAlgos.slimming.pileupJetId_cfi")
156 process.patJets.userData.userFloats.src = [ cms.InputTag(
"pileupJetId:fullDiscriminant"), ]
159 electron_ids = [
'RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_CSA14_50ns_V1_cff',
160 'RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_CSA14_PU20bx25_V0_cff',
161 'RecoEgamma.ElectronIdentification.Identification.heepElectronID_HEEPV50_CSA14_25ns_cff',
162 'RecoEgamma.ElectronIdentification.Identification.heepElectronID_HEEPV50_CSA14_startup_cff']
164 process.egmGsfElectronIDs.physicsObjectSrc = \
165 cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
166 process.electronIDValueMapProducer.src = \
167 cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
168 process.electronIDValueMapProducer.ebReducedRecHitCollection = \
169 cms.InputTag(
"reducedEgamma",
"reducedEBRecHits")
170 process.electronIDValueMapProducer.eeReducedRecHitCollection = \
171 cms.InputTag(
"reducedEgamma",
"reducedEERecHits")
172 process.electronIDValueMapProducer.esReducedRecHitCollection = \
173 cms.InputTag(
"reducedEgamma",
"reducedESRecHits")
174 for idmod
in electron_ids: