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(
"")
74 switchJetCollection(process, jetSource = cms.InputTag(
'ak4PFJetsCHS'),
75 jetCorrections = (
'AK4PFchs', cms.vstring([
'L1FastJet',
'L2Relative',
'L3Absolute']),
''),
76 btagDiscriminators = [
'jetBProbabilityBJetTags',
'jetProbabilityBJetTags',
'trackCountingHighPurBJetTags',
'trackCountingHighEffBJetTags',
'simpleSecondaryVertexHighEffBJetTags',
77 'simpleSecondaryVertexHighPurBJetTags',
'combinedSecondaryVertexBJetTags' ,
'combinedInclusiveSecondaryVertexBJetTags' ],
81 addJetCollection(process, labelName =
'AK8', jetSource = cms.InputTag(
'ak8PFJetsCHS'),algo=
'AK', rParam = 0.8, jetCorrections = (
'AK7PFchs', cms.vstring([
'L1FastJet',
'L2Relative',
'L3Absolute']),
'None') )
82 process.patJetsAK8.userData.userFloats.src = []
83 process.selectedPatJetsAK8.cut = cms.string(
"pt > 100")
84 process.patJetGenJetMatchAK8.matched =
'slimmedGenJets'
87 process.ak8PFJetsCHSPruned = ak8PFJetsCHSPruned.clone()
88 process.ak8PFJetsCHSTrimmed = ak8PFJetsCHSTrimmed.clone()
89 process.ak8PFJetsCHSFiltered = ak8PFJetsCHSFiltered.clone()
90 process.load(
"RecoJets.JetProducers.ak8PFJetsCHS_groomingValueMaps_cfi")
91 process.patJetsAK8.userData.userFloats.src += [
'ak8PFJetsCHSPrunedLinks',
'ak8PFJetsCHSTrimmedLinks',
'ak8PFJetsCHSFilteredLinks']
102 process.cmsTopTagPFJetsCHSLinksAK8 = process.ak8PFJetsCHSPrunedLinks.clone()
103 process.cmsTopTagPFJetsCHSLinksAK8.src = cms.InputTag(
"ak8PFJetsCHS")
104 process.cmsTopTagPFJetsCHSLinksAK8.matched = cms.InputTag(
"cmsTopTagPFJetsCHS")
105 process.patJetsAK8.userData.userFloats.src += [
'cmsTopTagPFJetsCHSLinksAK8']
109 process.load(
"PhysicsTools.PatAlgos.slimming.pileupJetId_cfi")
110 process.patJets.userData.userFloats.src = [ cms.InputTag(
"pileupJetId:fullDiscriminant"), ]
112 from PhysicsTools.PatAlgos.tools.trigTools
import switchOnTriggerStandAlone
114 process.patTrigger.packTriggerPathNames = cms.bool(
True)
119 from PhysicsTools.PatUtils.tools.metUncertaintyTools
import runMEtUncertainties
120 addJetCollection(process, postfix =
"ForMetUnc", labelName =
'AK5PF', jetSource = cms.InputTag(
'ak5PFJets'), jetCorrections = (
'AK5PF', [
'L1FastJet',
'L2Relative',
'L3Absolute'],
''))
121 runMEtUncertainties(process,jetCollection=
"selectedPatJetsAK5PFForMetUnc", outputModule=
None)
125 process.patJets.userData.userFunctions = cms.vstring(
126 '?(tagInfoSecondaryVertex().nVertices()>0)?(tagInfoSecondaryVertex().secondaryVertex(0).p4.M):(0)',
127 '?(tagInfoSecondaryVertex().nVertices()>0)?(tagInfoSecondaryVertex().secondaryVertex(0).nTracks):(0)',
128 '?(tagInfoSecondaryVertex().nVertices()>0)?(tagInfoSecondaryVertex().flightDistance(0).value):(0)',
129 '?(tagInfoSecondaryVertex().nVertices()>0)?(tagInfoSecondaryVertex().flightDistance(0).significance):(0)',
131 process.patJets.userData.userFunctionLabels = cms.vstring(
'vtxMass',
'vtxNtracks',
'vtx3DVal',
'vtx3DSig')
132 process.patJets.tagInfoSources = cms.VInputTag(cms.InputTag(
"secondaryVertexTagInfos"))
133 process.patJets.addTagInfos = cms.bool(
True)
136 electron_ids = [
'RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_CSA14_50ns_V1_cff',
137 'RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_CSA14_PU20bx25_V0_cff',
138 'RecoEgamma.ElectronIdentification.Identification.heepElectronID_HEEPV50_CSA14_25ns_cff',
139 'RecoEgamma.ElectronIdentification.Identification.heepElectronID_HEEPV50_CSA14_startup_cff']
141 process.egmGsfElectronIDs.physicsObjectSrc = \
142 cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
143 process.electronIDValueMapProducer.src = \
144 cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
145 process.electronIDValueMapProducer.ebReducedRecHitCollection = \
146 cms.InputTag(
"reducedEgamma",
"reducedEBRecHits")
147 process.electronIDValueMapProducer.eeReducedRecHitCollection = \
148 cms.InputTag(
"reducedEgamma",
"reducedEERecHits")
149 process.electronIDValueMapProducer.esReducedRecHitCollection = \
150 cms.InputTag(
"reducedEgamma",
"reducedESRecHits")
151 for idmod
in electron_ids: