CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
miniAOD_tools Namespace Reference

Functions

def miniAOD_customizeAllData
 
def miniAOD_customizeAllMC
 
def miniAOD_customizeCommon
 
def miniAOD_customizeData
 
def miniAOD_customizeMC
 
def miniAOD_customizeOutput
 

Function Documentation

def miniAOD_tools.miniAOD_customizeAllData (   process)

Definition at line 354 of file miniAOD_tools.py.

References miniAOD_customizeCommon(), and miniAOD_customizeData().

355 def miniAOD_customizeAllData(process):
356  miniAOD_customizeCommon(process)
357  miniAOD_customizeData(process)
358  return process
def miniAOD_customizeCommon
Definition: miniAOD_tools.py:5
def miniAOD_customizeAllData
def miniAOD_customizeData
def miniAOD_tools.miniAOD_customizeAllMC (   process)

Definition at line 359 of file miniAOD_tools.py.

References miniAOD_customizeCommon(), and miniAOD_customizeMC().

360 def miniAOD_customizeAllMC(process):
361  miniAOD_customizeCommon(process)
362  miniAOD_customizeMC(process)
363  return process
def miniAOD_customizeAllMC
def miniAOD_customizeCommon
Definition: miniAOD_tools.py:5
def miniAOD_tools.miniAOD_customizeCommon (   process)

Definition at line 5 of file miniAOD_tools.py.

References boostedHPSPFTaus_cfi.addBoostedTaus(), applySubstructure_cff.applySubstructure(), puppiForMET_cff.makePuppies(), runMETCorrectionsAndUncertainties.runMetCorAndUncForMiniAODProduction(), vid_id_tools.setupAllVIDIdsInModule(), trigTools.switchOnTriggerStandAlone, vid_id_tools.switchOnVIDElectronIdProducer(), and vid_id_tools.switchOnVIDPhotonIdProducer().

Referenced by miniAOD_customizeAllData(), and miniAOD_customizeAllMC().

5 
6 def miniAOD_customizeCommon(process):
7  process.patMuons.isoDeposits = cms.PSet()
8  process.patElectrons.isoDeposits = cms.PSet()
9  process.patTaus.isoDeposits = cms.PSet()
10  process.patPhotons.isoDeposits = cms.PSet()
11  #
12  process.patMuons.embedTrack = True # used for IDs
13  process.patMuons.embedCombinedMuon = True # used for IDs
14  process.patMuons.embedMuonBestTrack = True # used for IDs
15  process.patMuons.embedStandAloneMuon = True # maybe?
16  process.patMuons.embedPickyMuon = False # no, use best track
17  process.patMuons.embedTpfmsMuon = False # no, use best track
18  process.patMuons.embedDytMuon = False # no, use best track
19  #
20  # disable embedding of electron and photon associated objects already stored by the ReducedEGProducer
21  process.patElectrons.embedGsfElectronCore = False ## process.patElectrons.embed in AOD externally stored gsf electron core
22  process.patElectrons.embedSuperCluster = False ## process.patElectrons.embed in AOD externally stored supercluster
23  process.patElectrons.embedPflowSuperCluster = False ## process.patElectrons.embed in AOD externally stored supercluster
24  process.patElectrons.embedSeedCluster = False ## process.patElectrons.embed in AOD externally stored the electron's seedcluster
25  process.patElectrons.embedBasicClusters = False ## process.patElectrons.embed in AOD externally stored the electron's basic clusters
26  process.patElectrons.embedPreshowerClusters = False ## process.patElectrons.embed in AOD externally stored the electron's preshower clusters
27  process.patElectrons.embedPflowBasicClusters = False ## process.patElectrons.embed in AOD externally stored the electron's pflow basic clusters
28  process.patElectrons.embedPflowPreshowerClusters = False ## process.patElectrons.embed in AOD externally stored the electron's pflow preshower clusters
29  process.patElectrons.embedRecHits = False ## process.patElectrons.embed in AOD externally stored the RecHits - can be called from the PATElectronProducer
30  process.patElectrons.electronSource = cms.InputTag("reducedEgamma","reducedGedGsfElectrons")
31  process.patElectrons.electronIDSources = cms.PSet(
32  # configure many IDs as InputTag <someName> = <someTag> you
33  # can comment out those you don't want to save some disk space
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"),
39  )
40  process.patElectrons.addPFClusterIso = cms.bool(True)
41  process.patElectrons.ecalPFClusterIsoMap = cms.InputTag("reducedEgamma", "eleEcalPFClusIso")
42  process.patElectrons.hcalPFClusterIsoMap = cms.InputTag("reducedEgamma", "eleHcalPFClusIso")
43 
44  process.elPFIsoDepositChargedPAT.src = cms.InputTag("reducedEgamma","reducedGedGsfElectrons")
45  process.elPFIsoDepositChargedAllPAT.src = cms.InputTag("reducedEgamma","reducedGedGsfElectrons")
46  process.elPFIsoDepositNeutralPAT.src = cms.InputTag("reducedEgamma","reducedGedGsfElectrons")
47  process.elPFIsoDepositGammaPAT.src = cms.InputTag("reducedEgamma","reducedGedGsfElectrons")
48  process.elPFIsoDepositPUPAT.src = cms.InputTag("reducedEgamma","reducedGedGsfElectrons")
49  #
50  process.patPhotons.embedSuperCluster = False ## whether to process.patPhotons.embed in AOD externally stored supercluster
51  process.patPhotons.embedSeedCluster = False ## process.patPhotons.embed in AOD externally stored the photon's seedcluster
52  process.patPhotons.embedBasicClusters = False ## process.patPhotons.embed in AOD externally stored the photon's basic clusters
53  process.patPhotons.embedPreshowerClusters = False ## process.patPhotons.embed in AOD externally stored the photon's preshower clusters
54  process.patPhotons.embedRecHits = False ## process.patPhotons.embed in AOD externally stored the RecHits - can be called from the PATPhotonProducer
55  process.patPhotons.addPFClusterIso = cms.bool(True)
56  process.patPhotons.ecalPFClusterIsoMap = cms.InputTag("reducedEgamma", "phoEcalPFClusIso")
57  process.patPhotons.hcalPFClusterIsoMap = cms.InputTag("reducedEgamma", "phoHcalPFClusIso")
58  process.patPhotons.photonSource = cms.InputTag("reducedEgamma","reducedGedPhotons")
59  process.patPhotons.electronSource = cms.InputTag("reducedEgamma","reducedGedGsfElectrons")
60  process.patPhotons.photonIDSources = cms.PSet(
61  PhotonCutBasedIDLoose = cms.InputTag('reducedEgamma',
62  'PhotonCutBasedIDLoose'),
63  PhotonCutBasedIDTight = cms.InputTag('reducedEgamma',
64  'PhotonCutBasedIDTight')
65  )
66 
67  process.phPFIsoDepositChargedPAT.src = cms.InputTag("reducedEgamma","reducedGedPhotons")
68  process.phPFIsoDepositChargedAllPAT.src = cms.InputTag("reducedEgamma","reducedGedPhotons")
69  process.phPFIsoDepositNeutralPAT.src = cms.InputTag("reducedEgamma","reducedGedPhotons")
70  process.phPFIsoDepositGammaPAT.src = cms.InputTag("reducedEgamma","reducedGedPhotons")
71  process.phPFIsoDepositPUPAT.src = cms.InputTag("reducedEgamma","reducedGedPhotons")
72  #
73  process.selectedPatJets.cut = cms.string("pt > 10")
74  process.selectedPatMuons.cut = cms.string("pt > 5 || isPFMuon || (pt > 3 && (isGlobalMuon || isStandAloneMuon || numberOfMatches > 0 || muonID('RPCMuLoose')))")
75  process.selectedPatElectrons.cut = cms.string("")
76  process.selectedPatTaus.cut = cms.string("pt > 18. && tauID('decayModeFindingNewDMs')> 0.5")
77  process.selectedPatPhotons.cut = cms.string("")
78 
79  from PhysicsTools.PatAlgos.tools.jetTools import addJetCollection
80 
81  from PhysicsTools.PatAlgos.slimming.applySubstructure_cff import applySubstructure
82  applySubstructure( process )
83 
84 
85  #
86  from PhysicsTools.PatAlgos.tools.trigTools import switchOnTriggerStandAlone
87  switchOnTriggerStandAlone( process, outputModule = '' )
88  process.patTrigger.packTriggerPathNames = cms.bool(True)
89  #
90  # apply type I + other PFMEt corrections to pat::MET object
91  # and estimate systematic uncertainties on MET
92 
93  from PhysicsTools.PatUtils.tools.runMETCorrectionsAndUncertainties import runMetCorAndUncForMiniAODProduction
94  runMetCorAndUncForMiniAODProduction(process, metType="PF",
95  jetCollUnskimmed="patJets")
96 
97  #caloMET computation
98  from PhysicsTools.PatAlgos.tools.metTools import addMETCollection
99  addMETCollection(process,
100  labelName = "patCaloMet",
101  metSource = "caloMetM"
102  )
103 
104  #noHF pfMET =========
105  process.noHFCands = cms.EDFilter("GenericPFCandidateSelector",
106  src=cms.InputTag("particleFlow"),
107  cut=cms.string("abs(pdgId)!=1 && abs(pdgId)!=2 && abs(eta)<3.0")
108  )
110  pfCandColl=cms.InputTag("noHFCands"),
111  recoMetFromPFCs=True, #needed for HF removal
112  reclusterJets=True,
113  jetSelection="pt>15 && abs(eta)<3.",
114  postfix="NoHF"
115  )
116 
117  process.load('PhysicsTools.PatAlgos.slimming.slimmedMETs_cfi')
118  process.slimmedMETsNoHF = process.slimmedMETs.clone()
119  process.slimmedMETsNoHF.src = cms.InputTag("patMETsNoHF")
120  process.slimmedMETsNoHF.rawVariation = cms.InputTag("patPFMetNoHF")
121  process.slimmedMETsNoHF.t1Uncertainties = cms.InputTag("patPFMetT1%sNoHF")
122  process.slimmedMETsNoHF.t01Variation = cms.InputTag("patPFMetT0pcT1NoHF")
123  process.slimmedMETsNoHF.t1SmearedVarsAndUncs = cms.InputTag("patPFMetT1Smear%sNoHF")
124  process.slimmedMETsNoHF.tXYUncForRaw = cms.InputTag("patPFMetTxyNoHF")
125  process.slimmedMETsNoHF.tXYUncForT1 = cms.InputTag("patPFMetT1TxyNoHF")
126  process.slimmedMETsNoHF.tXYUncForT01 = cms.InputTag("patPFMetT0pcT1TxyNoHF")
127  process.slimmedMETsNoHF.tXYUncForT1Smear = cms.InputTag("patPFMetT1SmearTxyNoHF")
128  process.slimmedMETsNoHF.tXYUncForT01Smear = cms.InputTag("patPFMetT0pcT1SmearTxyNoHF")
129  del process.slimmedMETsNoHF.caloMET
130  # ================== NoHF pfMET
131 
132 
133  # -- Add DeepCSV on miniAOD only --
134  process.load('RecoBTag.Combined.deepFlavour_cff')
135  process.patJets.discriminatorSources.extend([
136  cms.InputTag('pfDeepCSVJetTags:probudsg'),
137  cms.InputTag('pfDeepCSVJetTags:probbb'),
138  cms.InputTag('pfDeepCSVJetTags:probc'),
139  cms.InputTag('pfDeepCSVJetTags:probb'),
140  cms.InputTag('pfDeepCSVJetTags:probcc')
141  ])
142 
143 
144  #keep this after all addJetCollections otherwise it will attempt computing them also for stuf with no taginfos
145  #Some useful BTAG vars
146  if not hasattr( process, 'pfImpactParameterTagInfos' ):
147  process.load('RecoBTag.ImpactParameter.pfImpactParameterTagInfos_cfi')
148  if not hasattr( process, 'pfSecondaryVertexTagInfos' ):
149  process.load('RecoBTag.SecondaryVertex.pfSecondaryVertexTagInfos_cfi')
150  if not hasattr( process, 'pfInclusiveSecondaryVertexFinderTagInfos' ):
151  process.load('RecoBTag.SecondaryVertex.pfInclusiveSecondaryVertexFinderTagInfos_cfi')
152  process.patJets.userData.userFunctions = cms.vstring(
153  '?(tagInfoCandSecondaryVertex("pfSecondaryVertex").nVertices()>0)?(tagInfoCandSecondaryVertex("pfSecondaryVertex").secondaryVertex(0).p4.M):(0)',
154  '?(tagInfoCandSecondaryVertex("pfSecondaryVertex").nVertices()>0)?(tagInfoCandSecondaryVertex("pfSecondaryVertex").secondaryVertex(0).numberOfSourceCandidatePtrs):(0)',
155  '?(tagInfoCandSecondaryVertex("pfSecondaryVertex").nVertices()>0)?(tagInfoCandSecondaryVertex("pfSecondaryVertex").flightDistance(0).value):(0)',
156  '?(tagInfoCandSecondaryVertex("pfSecondaryVertex").nVertices()>0)?(tagInfoCandSecondaryVertex("pfSecondaryVertex").flightDistance(0).significance):(0)',
157  '?(tagInfoCandSecondaryVertex("pfSecondaryVertex").nVertices()>0)?(tagInfoCandSecondaryVertex("pfSecondaryVertex").secondaryVertex(0).p4.x):(0)',
158  '?(tagInfoCandSecondaryVertex("pfSecondaryVertex").nVertices()>0)?(tagInfoCandSecondaryVertex("pfSecondaryVertex").secondaryVertex(0).p4.y):(0)',
159  '?(tagInfoCandSecondaryVertex("pfSecondaryVertex").nVertices()>0)?(tagInfoCandSecondaryVertex("pfSecondaryVertex").secondaryVertex(0).p4.z):(0)',
160  '?(tagInfoCandSecondaryVertex("pfSecondaryVertex").nVertices()>0)?(tagInfoCandSecondaryVertex("pfSecondaryVertex").secondaryVertex(0).vertex.x):(0)',
161  '?(tagInfoCandSecondaryVertex("pfSecondaryVertex").nVertices()>0)?(tagInfoCandSecondaryVertex("pfSecondaryVertex").secondaryVertex(0).vertex.y):(0)',
162  '?(tagInfoCandSecondaryVertex("pfSecondaryVertex").nVertices()>0)?(tagInfoCandSecondaryVertex("pfSecondaryVertex").secondaryVertex(0).vertex.z):(0)',
163  )
164  process.patJets.userData.userFunctionLabels = cms.vstring('vtxMass','vtxNtracks','vtx3DVal','vtx3DSig','vtxPx','vtxPy','vtxPz','vtxPosX','vtxPosY','vtxPosZ')
165  process.patJets.tagInfoSources = cms.VInputTag(cms.InputTag("pfSecondaryVertexTagInfos"))
166  process.patJets.addTagInfos = cms.bool(True)
167 
168  ## Legacy tight b-tag track selection
169  ## (this will run below-specified taggers with the tight b-tag track selection enabled
170  ## and will add an extra set of b-tag discriminators to 'selectedPatJets'
171  ## with the 'tight' prefix added to the usual discriminator names)
172  from PhysicsTools.PatAlgos.tools.jetTools import updateJetCollection
173  updateJetCollection(
174  process,
175  jetSource = cms.InputTag('selectedPatJets'),
176  ## updateJetCollection defaults to MiniAOD inputs. Here, this needs to be changed to RECO/AOD inputs
177  pvSource = cms.InputTag('offlinePrimaryVertices'),
178  pfCandidates = cms.InputTag('particleFlow'),
179  svSource = cms.InputTag('inclusiveCandidateSecondaryVertices'),
180  muSource = cms.InputTag('muons'),
181  elSource = cms.InputTag('gedGsfElectrons'),
182  ##
183  jetCorrections = ('AK4PFchs', ['L1FastJet', 'L2Relative', 'L3Absolute'], ''),
184  btagDiscriminators = ["pfCombinedSecondaryVertexV2BJetTags", "pfCombinedInclusiveSecondaryVertexV2BJetTags",
185  "pfCombinedCvsLJetTags", "pfCombinedCvsBJetTags"],
186  runIVF = True,
187  tightBTagNTkHits = True,
188  btagPrefix = 'tight',
189  postfix = 'BTAG' # added to avoid problems with unrunnable schedule
190  )
191  #
192  ## PU JetID
193  process.load("RecoJets.JetProducers.PileupJetID_cfi")
194  process.patJets.userData.userFloats.src = [ cms.InputTag("pileupJetId:fullDiscriminant"), ]
195  process.patJets.userData.userInts.src = [ cms.InputTag("pileupJetId:fullId"), ]
196 
197  ## CaloJets
198  process.caloJetMap = cms.EDProducer("RecoJetDeltaRValueMapProducer",
199  src = process.patJets.jetSource,
200  matched = cms.InputTag("ak4CaloJets"),
201  distMax = cms.double(0.4),
202  values = cms.vstring('pt','emEnergyFraction'),
203  valueLabels = cms.vstring('pt','emEnergyFraction'),
204  lazyParser = cms.bool(True) )
205  process.patJets.userData.userFloats.src += [ cms.InputTag("caloJetMap:pt"), cms.InputTag("caloJetMap:emEnergyFraction") ]
206 
207  #EGM object modifications
208  from RecoEgamma.EgammaTools.egammaObjectModificationsInMiniAOD_cff import egamma_modifications
209  process.slimmedElectrons.modifierConfig.modifications = egamma_modifications
210  process.slimmedPhotons.modifierConfig.modifications = egamma_modifications
211 
212  #VID Electron IDs
213  electron_ids = ['RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_PHYS14_PU20bx25_V2_cff',
214  'RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_Spring15_25ns_V1_cff',
215  'RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_Spring15_50ns_V2_cff',
216  'RecoEgamma.ElectronIdentification.Identification.heepElectronID_HEEPV60_cff',
217  'RecoEgamma.ElectronIdentification.Identification.mvaElectronID_Spring15_25ns_nonTrig_V1_cff',
218  'RecoEgamma.ElectronIdentification.Identification.mvaElectronID_Spring15_25ns_Trig_V1_cff',
219  'RecoEgamma.ElectronIdentification.Identification.mvaElectronID_Spring15_50ns_Trig_V1_cff']
220  switchOnVIDElectronIdProducer(process,DataFormat.MiniAOD)
221  process.egmGsfElectronIDs.physicsObjectSrc = \
222  cms.InputTag("reducedEgamma","reducedGedGsfElectrons")
223  process.electronMVAValueMapProducer.src = \
224  cms.InputTag('reducedEgamma','reducedGedGsfElectrons')
225  process.electronRegressionValueMapProducer.src = \
226  cms.InputTag('reducedEgamma','reducedGedGsfElectrons')
227  for idmod in electron_ids:
228  setupAllVIDIdsInModule(process,idmod,setupVIDElectronSelection,None,False)
229 
230  #VID Photon IDs
231  photon_ids = ['RecoEgamma.PhotonIdentification.Identification.cutBasedPhotonID_Spring15_25ns_V1_cff',
232  'RecoEgamma.PhotonIdentification.Identification.cutBasedPhotonID_Spring15_50ns_V1_cff',
233  'RecoEgamma.PhotonIdentification.Identification.mvaPhotonID_Spring15_25ns_nonTrig_V2p1_cff',
234  'RecoEgamma.PhotonIdentification.Identification.mvaPhotonID_Spring15_50ns_nonTrig_V2p1_cff']
235  switchOnVIDPhotonIdProducer(process,DataFormat.MiniAOD)
236  process.egmPhotonIDs.physicsObjectSrc = \
237  cms.InputTag("reducedEgamma","reducedGedPhotons")
238  process.photonIDValueMapProducer.src = \
239  cms.InputTag("reducedEgamma","reducedGedPhotons")
240  process.photonRegressionValueMapProducer.src = \
241  cms.InputTag("reducedEgamma","reducedGedPhotons")
242  process.photonIDValueMapProducer.particleBasedIsolation = \
243  cms.InputTag("reducedEgamma","reducedPhotonPfCandMap")
244  process.photonMVAValueMapProducer.src = \
245  cms.InputTag('reducedEgamma','reducedGedPhotons')
246  for idmod in photon_ids:
247  setupAllVIDIdsInModule(process,idmod,setupVIDPhotonSelection,None,False)
248 
249  #---------------------------------------------------------------------------
250  #Adding Boosted Subjets taus
251  from RecoTauTag.Configuration.boostedHPSPFTaus_cfi import addBoostedTaus
252  addBoostedTaus(process)
253  #---------------------------------------------------------------------------
254 
255  # Adding puppi jets
256  process.load('RecoJets.JetProducers.ak4PFJetsPuppi_cfi')
257 
258  process.ak4PFJetsPuppi.doAreaFastjet = True # even for standard ak4PFJets this is overwritten in RecoJets/Configuration/python/RecoPFJets_cff
259 
260  from RecoJets.JetAssociationProducers.j2tParametersVX_cfi import j2tParametersVX
261  process.ak4PFJetsPuppiTracksAssociatorAtVertex = cms.EDProducer("JetTracksAssociatorAtVertex",
262  j2tParametersVX,
263  jets = cms.InputTag("ak4PFJetsPuppi")
264  )
265  process.patJetPuppiCharge = cms.EDProducer("JetChargeProducer",
266  src = cms.InputTag("ak4PFJetsPuppiTracksAssociatorAtVertex"),
267  var = cms.string('Pt'),
268  exp = cms.double(1.0)
269  )
270 
271  addJetCollection(process, postfix = "", labelName = 'Puppi', jetSource = cms.InputTag('ak4PFJetsPuppi'),
272  jetCorrections = ('AK4PFPuppi', ['L2Relative', 'L3Absolute'], ''),
273  algo= 'AK', rParam = 0.4, btagDiscriminators = map(lambda x: x.value() ,process.patJets.discriminatorSources)
274  )
275 
276  process.patJetGenJetMatchPuppi.matched = 'slimmedGenJets'
277 
278  process.patJetsPuppi.jetChargeSource = cms.InputTag("patJetPuppiCharge")
279 
280  process.selectedPatJetsPuppi.cut = cms.string("pt > 15")
281 
282  process.load('PhysicsTools.PatAlgos.slimming.slimmedJets_cfi')
283  process.slimmedJetsPuppi = process.slimmedJets.clone()
284  process.slimmedJetsPuppi.src = cms.InputTag("selectedPatJetsPuppi")
285  process.slimmedJetsPuppi.packedPFCandidates = cms.InputTag("packedPFCandidates")
286 
287 
288  ## puppi met
289  from PhysicsTools.PatAlgos.slimming.puppiForMET_cff import makePuppies
290  makePuppies( process );
291 
292  runMetCorAndUncForMiniAODProduction(process, metType="Puppi",
293  pfCandColl=cms.InputTag("puppiForMET"),
294  jetCollUnskimmed="slimmedJetsPuppi",
295  recoMetFromPFCs=True,
296  jetFlavor="AK4PFPuppi",
297  postfix="Puppi"
298  )
299 
300  process.load('PhysicsTools.PatAlgos.slimming.slimmedMETs_cfi')
301  process.slimmedMETsPuppi = process.slimmedMETs.clone()
302  process.slimmedMETsPuppi.src = cms.InputTag("patMETsPuppi")
303  process.slimmedMETsPuppi.rawVariation = cms.InputTag("patPFMetPuppi")
304  process.slimmedMETsPuppi.t1Uncertainties = cms.InputTag("patPFMetT1%sPuppi")
305  process.slimmedMETsPuppi.t01Variation = cms.InputTag("patPFMetT0pcT1Puppi")
306  process.slimmedMETsPuppi.t1SmearedVarsAndUncs = cms.InputTag("patPFMetT1Smear%sPuppi")
307  process.slimmedMETsPuppi.tXYUncForRaw = cms.InputTag("patPFMetTxyPuppi")
308  process.slimmedMETsPuppi.tXYUncForT1 = cms.InputTag("patPFMetT1TxyPuppi")
309  process.slimmedMETsPuppi.tXYUncForT01 = cms.InputTag("patPFMetT0pcT1TxyPuppi")
310  process.slimmedMETsPuppi.tXYUncForT1Smear = cms.InputTag("patPFMetT1SmearTxyPuppi")
311  process.slimmedMETsPuppi.tXYUncForT01Smear = cms.InputTag("patPFMetT0pcT1SmearTxyPuppi")
312  del process.slimmedMETsPuppi.caloMET
313 
314 
def setupAllVIDIdsInModule
Definition: vid_id_tools.py:50
def switchOnVIDElectronIdProducer
Definition: vid_id_tools.py:69
def miniAOD_customizeCommon
Definition: miniAOD_tools.py:5
tuple switchOnTriggerStandAlone
Definition: trigTools.py:276
def switchOnVIDPhotonIdProducer
Photons.
def miniAOD_tools.miniAOD_customizeData (   process)

Definition at line 349 of file miniAOD_tools.py.

Referenced by customizeMiniAOD_MuEGFixMoriond2017.customizeAll(), and miniAOD_customizeAllData().

350 def miniAOD_customizeData(process):
351  from PhysicsTools.PatAlgos.tools.coreTools import runOnData
352  runOnData( process, outputModules = [] )
353  process.load("RecoCTPPS.TotemRPLocal.ctppsLocalTrackLiteProducer_cfi")
def miniAOD_customizeData
def miniAOD_tools.miniAOD_customizeMC (   process)

Definition at line 315 of file miniAOD_tools.py.

Referenced by miniAOD_customizeAllMC().

316 def miniAOD_customizeMC(process):
317  #slimmed pileup information
318  process.load('PhysicsTools.PatAlgos.slimming.slimmedAddPileupInfo_cfi')
319 
320  process.muonMatch.matched = "prunedGenParticles"
321  process.electronMatch.matched = "prunedGenParticles"
322  process.electronMatch.src = cms.InputTag("reducedEgamma","reducedGedGsfElectrons")
323  process.photonMatch.matched = "prunedGenParticles"
324  process.photonMatch.src = cms.InputTag("reducedEgamma","reducedGedPhotons")
325  process.tauMatch.matched = "prunedGenParticles"
326  process.tauGenJets.GenParticles = "prunedGenParticles"
327  #Boosted taus
328  process.tauMatchBoosted.matched = "prunedGenParticles"
329  process.tauGenJetsBoosted.GenParticles = "prunedGenParticles"
330  process.patJetPartons.particles = "prunedGenParticles"
331  process.patJetPartonMatch.matched = "prunedGenParticles"
332  process.patJetPartonMatch.mcStatus = [ 3, 23 ]
333  process.patJetGenJetMatch.matched = "slimmedGenJets"
334  process.patJetGenJetMatchAK8.matched = "slimmedGenJetsAK8"
335  process.patMuons.embedGenMatch = False
336  process.patElectrons.embedGenMatch = False
337  process.patPhotons.embedGenMatch = False
338  process.patTaus.embedGenMatch = False
339  process.patTausBoosted.embedGenMatch = False
340  process.patJets.embedGenPartonMatch = False
341  #also jet flavour must be switched
342  process.patJetFlavourAssociation.rParam = 0.4
def miniAOD_tools.miniAOD_customizeOutput (   out)

Definition at line 343 of file miniAOD_tools.py.

344 def miniAOD_customizeOutput(out):
345  out.dropMetaData = cms.untracked.string('ALL')
346  out.fastCloning= cms.untracked.bool(False)
347  out.overrideInputFileSplitLevels = cms.untracked.bool(True)
348  out.compressionAlgorithm = cms.untracked.string('LZMA')
def miniAOD_customizeOutput