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(
"")
73 switchJetCollection(process, jetSource = cms.InputTag(
'ak4PFJetsCHS'),
74 jetCorrections = (
'AK4PFchs', cms.vstring([
'L1FastJet',
'L2Relative',
'L3Absolute']),
''),
75 btagDiscriminators = [
'jetBProbabilityBJetTags',
'jetProbabilityBJetTags',
'trackCountingHighPurBJetTags',
'trackCountingHighEffBJetTags',
'simpleSecondaryVertexHighEffBJetTags',
76 'simpleSecondaryVertexHighPurBJetTags',
'combinedSecondaryVertexBJetTags' ,
'combinedInclusiveSecondaryVertexBJetTags' ],
80 addJetCollection(process, labelName =
'AK8', jetSource = cms.InputTag(
'ak8PFJetsCHS'),algo=
'AK', rParam = 0.8, jetCorrections = (
'AK7PFchs', cms.vstring([
'L1FastJet',
'L2Relative',
'L3Absolute']),
'None') )
81 process.patJetsAK8.userData.userFloats.src = []
82 process.selectedPatJetsAK8.cut = cms.string(
"pt > 100")
83 process.patJetGenJetMatchAK8.matched =
'slimmedGenJets'
86 process.ak8PFJetsCHSPruned = ak8PFJetsCHSPruned.clone()
87 process.ak8PFJetsCHSTrimmed = ak8PFJetsCHSTrimmed.clone()
88 process.ak8PFJetsCHSFiltered = ak8PFJetsCHSFiltered.clone()
89 process.load(
"RecoJets.JetProducers.ak8PFJetsCHS_groomingValueMaps_cfi")
90 process.patJetsAK8.userData.userFloats.src += [
'ak8PFJetsCHSPrunedLinks',
'ak8PFJetsCHSTrimmedLinks',
'ak8PFJetsCHSFilteredLinks']
101 process.cmsTopTagPFJetsCHSLinksAK8 = process.ak8PFJetsCHSPrunedLinks.clone()
102 process.cmsTopTagPFJetsCHSLinksAK8.src = cms.InputTag(
"ak8PFJetsCHS")
103 process.cmsTopTagPFJetsCHSLinksAK8.matched = cms.InputTag(
"cmsTopTagPFJetsCHS")
104 process.patJetsAK8.userData.userFloats.src += [
'cmsTopTagPFJetsCHSLinksAK8']
108 process.load(
"PhysicsTools.PatAlgos.slimming.pileupJetId_cfi")
109 process.patJets.userData.userFloats.src = [ cms.InputTag(
"pileupJetId:fullDiscriminant"), ]
111 from PhysicsTools.PatAlgos.tools.trigTools
import switchOnTriggerStandAlone
113 process.patTrigger.packTriggerPathNames = cms.bool(
True)
118 from PhysicsTools.PatUtils.tools.metUncertaintyTools
import runMEtUncertainties
119 addJetCollection(process, postfix =
"ForMetUnc", labelName =
'AK5PF', jetSource = cms.InputTag(
'ak5PFJets'), jetCorrections = (
'AK5PF', [
'L1FastJet',
'L2Relative',
'L3Absolute'],
''))
120 runMEtUncertainties(process,jetCollection=
"selectedPatJetsAK5PFForMetUnc", outputModule=
None)
124 process.patJets.userData.userFunctions = cms.vstring(
125 '?(tagInfoSecondaryVertex().nVertices()>0)?(tagInfoSecondaryVertex().secondaryVertex(0).p4.M):(0)',
126 '?(tagInfoSecondaryVertex().nVertices()>0)?(tagInfoSecondaryVertex().secondaryVertex(0).nTracks):(0)',
127 '?(tagInfoSecondaryVertex().nVertices()>0)?(tagInfoSecondaryVertex().flightDistance(0).value):(0)',
128 '?(tagInfoSecondaryVertex().nVertices()>0)?(tagInfoSecondaryVertex().flightDistance(0).significance):(0)',
130 process.patJets.userData.userFunctionLabels = cms.vstring(
'vtxMass',
'vtxNtracks',
'vtx3DVal',
'vtx3DSig')
131 process.patJets.tagInfoSources = cms.VInputTag(cms.InputTag(
"secondaryVertexTagInfos"))
132 process.patJets.addTagInfos = cms.bool(
True)
135 electron_ids = [
'RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_CSA14_50ns_V1_cff',
136 'RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_CSA14_PU20bx25_V0_cff',
137 'RecoEgamma.ElectronIdentification.Identification.heepElectronID_HEEPV50_CSA14_25ns_cff',
138 'RecoEgamma.ElectronIdentification.Identification.heepElectronID_HEEPV50_CSA14_startup_cff']
140 process.egmGsfElectronIDs.physicsObjectSrc = \
141 cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
142 process.electronIDValueMapProducer.src = \
143 cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
144 process.electronIDValueMapProducer.ebReducedRecHitCollection = \
145 cms.InputTag(
"reducedEgamma",
"reducedEBRecHits")
146 process.electronIDValueMapProducer.eeReducedRecHitCollection = \
147 cms.InputTag(
"reducedEgamma",
"reducedEERecHits")
148 process.electronIDValueMapProducer.esReducedRecHitCollection = \
149 cms.InputTag(
"reducedEgamma",
"reducedESRecHits")
150 for idmod
in electron_ids:
156 process.muonMatch.matched =
"prunedGenParticles"
157 process.electronMatch.matched =
"prunedGenParticles"
158 process.electronMatch.src = cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
159 process.photonMatch.matched =
"prunedGenParticles"
160 process.photonMatch.src = cms.InputTag(
"reducedEgamma",
"reducedGedPhotons")
161 process.tauMatch.matched =
"prunedGenParticles"
162 process.patJetPartonMatch.matched =
"prunedGenParticles"
163 process.patJetPartonMatch.mcStatus = [ 3, 23 ]
164 process.patJetGenJetMatch.matched =
"slimmedGenJets"
165 process.patMuons.embedGenMatch =
False
166 process.patElectrons.embedGenMatch =
False
167 process.patPhotons.embedGenMatch =
False
168 process.patTaus.embedGenMatch =
False
169 process.patJets.embedGenPartonMatch =
False
171 process.patJetFlavourAssociation.rParam = 0.4
174 out.dropMetaData = cms.untracked.string(
'ALL')
175 out.fastCloning= cms.untracked.bool(
False)
176 out.overrideInputFileSplitLevels = cms.untracked.bool(
True)
177 out.compressionAlgorithm = cms.untracked.string(
'LZMA')
181 runOnData( process, outputModules = [] )