6 process.patMuons.isoDeposits = cms.PSet()
7 process.patElectrons.isoDeposits = cms.PSet()
8 process.patTaus.isoDeposits = cms.PSet()
9 process.patPhotons.isoDeposits = cms.PSet()
11 process.patMuons.embedTrack =
True
12 process.patMuons.embedCombinedMuon =
True
13 process.patMuons.embedMuonBestTrack =
True
14 process.patMuons.embedStandAloneMuon =
True
15 process.patMuons.embedPickyMuon =
False
16 process.patMuons.embedTpfmsMuon =
False
17 process.patMuons.embedDytMuon =
False
20 process.patElectrons.embedGsfElectronCore =
False
21 process.patElectrons.embedSuperCluster =
False
22 process.patElectrons.embedPflowSuperCluster =
False
23 process.patElectrons.embedSeedCluster =
False
24 process.patElectrons.embedBasicClusters =
False
25 process.patElectrons.embedPreshowerClusters =
False
26 process.patElectrons.embedPflowBasicClusters =
False
27 process.patElectrons.embedPflowPreshowerClusters =
False
28 process.patElectrons.embedRecHits =
False
29 process.patElectrons.electronSource = cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
30 process.patElectrons.electronIDSources = cms.PSet(
33 eidRobustLoose = cms.InputTag(
"reducedEgamma",
"eidRobustLoose"),
34 eidRobustTight = cms.InputTag(
"reducedEgamma",
"eidRobustTight"),
35 eidLoose = cms.InputTag(
"reducedEgamma",
"eidLoose"),
36 eidTight = cms.InputTag(
"reducedEgamma",
"eidTight"),
37 eidRobustHighEnergy = cms.InputTag(
"reducedEgamma",
"eidRobustHighEnergy"),
39 process.elPFIsoDepositCharged.src = cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
40 process.elPFIsoDepositChargedAll.src = cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
41 process.elPFIsoDepositNeutral.src = cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
42 process.elPFIsoDepositGamma.src = cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
43 process.elPFIsoDepositPU.src = cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
45 process.patPhotons.embedSuperCluster =
False
46 process.patPhotons.embedSeedCluster =
False
47 process.patPhotons.embedBasicClusters =
False
48 process.patPhotons.embedPreshowerClusters =
False
49 process.patPhotons.embedRecHits =
False
50 process.patPhotons.photonSource = cms.InputTag(
"reducedEgamma",
"reducedGedPhotons")
51 process.patPhotons.photonIDSources = cms.PSet(
52 PhotonCutBasedIDLoose = cms.InputTag(
'reducedEgamma',
53 'PhotonCutBasedIDLoose'),
54 PhotonCutBasedIDTight = cms.InputTag(
'reducedEgamma',
55 'PhotonCutBasedIDTight')
58 process.phPFIsoDepositCharged.src = cms.InputTag(
"reducedEgamma",
"reducedGedPhotons")
59 process.phPFIsoDepositChargedAll.src = cms.InputTag(
"reducedEgamma",
"reducedGedPhotons")
60 process.phPFIsoDepositNeutral.src = cms.InputTag(
"reducedEgamma",
"reducedGedPhotons")
61 process.phPFIsoDepositGamma.src = cms.InputTag(
"reducedEgamma",
"reducedGedPhotons")
62 process.phPFIsoDepositPU.src = cms.InputTag(
"reducedEgamma",
"reducedGedPhotons")
64 process.selectedPatJets.cut = cms.string(
"pt > 10")
65 process.selectedPatMuons.cut = cms.string(
"pt > 5 || isPFMuon || (pt > 3 && (isGlobalMuon || isStandAloneMuon || numberOfMatches > 0 || muonID('RPCMuLoose')))")
66 process.selectedPatElectrons.cut = cms.string(
"")
67 process.selectedPatTaus.cut = cms.string(
"pt > 18. && tauID('decayModeFinding')> 0.5")
68 process.selectedPatPhotons.cut = cms.string(
"")
72 process.cmsttRaw = toptag.clone()
73 process.caTopTagInfos = cms.EDProducer(
"RecoJetDeltaRTagInfoValueMapProducer",
74 src = cms.InputTag(
"ak8PFJetsCHS"),
75 matched = cms.InputTag(
"cmsTopTagPFJetsCHS"),
76 matchedTagInfos = cms.InputTag(
"cmsttRaw"),
77 distMax = cms.double(0.8)
82 addJetCollection(process, labelName =
'AK8',
83 jetSource = cms.InputTag(
'ak8PFJetsCHS'),
84 algo=
'AK', rParam = 0.8,
85 jetCorrections = (
'AK8PFchs', cms.vstring([
'L1FastJet',
'L2Relative',
'L3Absolute']),
'None'),
86 btagInfos = [
'caTopTagInfos']
88 process.patJetsAK8.userData.userFloats.src = []
89 process.selectedPatJetsAK8.cut = cms.string(
"pt > 100")
90 process.patJetGenJetMatchAK8.matched =
'slimmedGenJets'
93 process.ak8PFJetsCHSPruned = ak8PFJetsCHSPruned.clone()
94 process.ak8PFJetsCHSTrimmed = ak8PFJetsCHSTrimmed.clone()
95 process.ak8PFJetsCHSFiltered = ak8PFJetsCHSFiltered.clone()
96 process.load(
"RecoJets.JetProducers.ak8PFJetsCHS_groomingValueMaps_cfi")
97 process.patJetsAK8.userData.userFloats.src += [
'ak8PFJetsCHSPrunedLinks',
'ak8PFJetsCHSTrimmedLinks',
'ak8PFJetsCHSFilteredLinks']
100 process.patJetsAK8.tagInfoSources = cms.VInputTag(cms.InputTag(
"caTopTagInfos"))
101 process.patJetsAK8.addTagInfos = cms.bool(
True)
106 process.load(
'RecoJets.JetProducers.nJettinessAdder_cfi')
107 process.NjettinessAK8 = process.Njettiness.clone()
108 process.NjettinessAK8.src = cms.InputTag(
"ak8PFJetsCHS")
109 process.NjettinessAK8.cone = cms.double(0.8)
110 process.patJetsAK8.userData.userFloats.src += [
'NjettinessAK8:tau1',
'NjettinessAK8:tau2',
'NjettinessAK8:tau3']
115 from PhysicsTools.PatAlgos.tools.trigTools
import switchOnTriggerStandAlone
117 process.patTrigger.packTriggerPathNames = cms.bool(
True)
122 from PhysicsTools.PatUtils.tools.runType1PFMEtUncertainties
import runType1PFMEtUncertainties
123 addJetCollection(process, postfix =
"ForMetUnc", labelName =
'AK4PF', jetSource = cms.InputTag(
'ak4PFJets'), jetCorrections = (
'AK4PF', [
'L1FastJet',
'L2Relative',
'L3Absolute'],
''))
124 process.patJetsAK4PFForMetUnc.getJetMCFlavour =
False
126 addToPatDefaultSequence=
False,
127 jetCollection=
"selectedPatJetsAK4PFForMetUnc",
128 electronCollection=
"selectedPatElectrons",
129 muonCollection=
"selectedPatMuons",
130 tauCollection=
"selectedPatTaus",
131 makeType1p2corrPFMEt=
True,
137 process.patJets.userData.userFunctions = cms.vstring(
138 '?(tagInfoSecondaryVertex().nVertices()>0)?(tagInfoSecondaryVertex().secondaryVertex(0).p4.M):(0)',
139 '?(tagInfoSecondaryVertex().nVertices()>0)?(tagInfoSecondaryVertex().secondaryVertex(0).nTracks):(0)',
140 '?(tagInfoSecondaryVertex().nVertices()>0)?(tagInfoSecondaryVertex().flightDistance(0).value):(0)',
141 '?(tagInfoSecondaryVertex().nVertices()>0)?(tagInfoSecondaryVertex().flightDistance(0).significance):(0)',
142 '?(tagInfoSecondaryVertex().nVertices()>0)?(tagInfoSecondaryVertex().secondaryVertex(0).p4.x):(0)',
143 '?(tagInfoSecondaryVertex().nVertices()>0)?(tagInfoSecondaryVertex().secondaryVertex(0).p4.y):(0)',
144 '?(tagInfoSecondaryVertex().nVertices()>0)?(tagInfoSecondaryVertex().secondaryVertex(0).p4.z):(0)',
145 '?(tagInfoSecondaryVertex().nVertices()>0)?(tagInfoSecondaryVertex().secondaryVertex(0).position.x):(0)',
146 '?(tagInfoSecondaryVertex().nVertices()>0)?(tagInfoSecondaryVertex().secondaryVertex(0).position.y):(0)',
147 '?(tagInfoSecondaryVertex().nVertices()>0)?(tagInfoSecondaryVertex().secondaryVertex(0).position.z):(0)',
149 process.patJets.userData.userFunctionLabels = cms.vstring(
'vtxMass',
'vtxNtracks',
'vtx3DVal',
'vtx3DSig',
'vtxPx',
'vtxPy',
'vtxPz',
'vtxPosX',
'vtxPosY',
'vtxPosZ')
150 process.patJets.tagInfoSources = cms.VInputTag(cms.InputTag(
"secondaryVertexTagInfos"))
151 process.patJets.addTagInfos = cms.bool(
True)
154 process.load(
"PhysicsTools.PatAlgos.slimming.pileupJetId_cfi")
155 process.patJets.userData.userFloats.src = [ cms.InputTag(
"pileupJetId:fullDiscriminant"), ]
158 electron_ids = [
'RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_CSA14_50ns_V1_cff',
159 'RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_CSA14_PU20bx25_V0_cff',
160 'RecoEgamma.ElectronIdentification.Identification.heepElectronID_HEEPV50_CSA14_25ns_cff',
161 'RecoEgamma.ElectronIdentification.Identification.heepElectronID_HEEPV50_CSA14_startup_cff']
163 process.egmGsfElectronIDs.physicsObjectSrc = \
164 cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
165 process.electronIDValueMapProducer.src = \
166 cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
167 process.electronIDValueMapProducer.ebReducedRecHitCollection = \
168 cms.InputTag(
"reducedEgamma",
"reducedEBRecHits")
169 process.electronIDValueMapProducer.eeReducedRecHitCollection = \
170 cms.InputTag(
"reducedEgamma",
"reducedEERecHits")
171 process.electronIDValueMapProducer.esReducedRecHitCollection = \
172 cms.InputTag(
"reducedEgamma",
"reducedESRecHits")
173 for idmod
in electron_ids:
179 process.muonMatch.matched =
"prunedGenParticles"
180 process.electronMatch.matched =
"prunedGenParticles"
181 process.electronMatch.src = cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
182 process.photonMatch.matched =
"prunedGenParticles"
183 process.photonMatch.src = cms.InputTag(
"reducedEgamma",
"reducedGedPhotons")
184 process.tauMatch.matched =
"prunedGenParticles"
185 process.tauGenJets.GenParticles =
"prunedGenParticles"
186 process.patJetPartonMatch.matched =
"prunedGenParticles"
187 process.patJetPartonMatch.mcStatus = [ 3, 23 ]
188 process.patJetGenJetMatch.matched =
"slimmedGenJets"
189 process.patMuons.embedGenMatch =
False
190 process.patElectrons.embedGenMatch =
False
191 process.patPhotons.embedGenMatch =
False
192 process.patTaus.embedGenMatch =
False
193 process.patJets.embedGenPartonMatch =
False
195 process.patJetFlavourAssociation.rParam = 0.4
198 out.dropMetaData = cms.untracked.string(
'ALL')
199 out.fastCloning= cms.untracked.bool(
False)
200 out.overrideInputFileSplitLevels = cms.untracked.bool(
True)
201 out.compressionAlgorithm = cms.untracked.string(
'LZMA')
205 runOnData( process, outputModules = [] )