CMS 3D CMS Logo

nano_cff.py
Go to the documentation of this file.
1 from __future__ import print_function
2 import FWCore.ParameterSet.Config as cms
15 from PhysicsTools.NanoAOD.met_cff import *
19 
20 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff import run2_miniAOD_80XLegacy
21 from Configuration.Eras.Modifier_run2_nanoAOD_94X2016_cff import run2_nanoAOD_94X2016
22 from Configuration.Eras.Modifier_run2_nanoAOD_94XMiniAODv1_cff import run2_nanoAOD_94XMiniAODv1
23 from Configuration.Eras.Modifier_run2_nanoAOD_94XMiniAODv2_cff import run2_nanoAOD_94XMiniAODv2
24 from Configuration.Eras.Modifier_run2_nanoAOD_102Xv1_cff import run2_nanoAOD_102Xv1
25 from Configuration.Eras.Modifier_run2_nanoAOD_106Xv1_cff import run2_nanoAOD_106Xv1
26 
27 nanoMetadata = cms.EDProducer("UniqueStringProducer",
28  strings = cms.PSet(
29  tag = cms.string("untagged"),
30  )
31 )
32 
33 linkedObjects = cms.EDProducer("PATObjectCrossLinker",
34  jets=cms.InputTag("finalJets"),
35  muons=cms.InputTag("finalMuons"),
36  electrons=cms.InputTag("finalElectrons"),
37  taus=cms.InputTag("finalTaus"),
38  photons=cms.InputTag("finalPhotons"),
39 )
40 
41 simpleCleanerTable = cms.EDProducer("NanoAODSimpleCrossCleaner",
42  name=cms.string("cleanmask"),
43  doc=cms.string("simple cleaning mask with priority to leptons"),
44  jets=cms.InputTag("linkedObjects","jets"),
45  muons=cms.InputTag("linkedObjects","muons"),
46  electrons=cms.InputTag("linkedObjects","electrons"),
47  taus=cms.InputTag("linkedObjects","taus"),
48  photons=cms.InputTag("linkedObjects","photons"),
49  jetSel=cms.string("pt>15"),
50  muonSel=cms.string("track.isNonnull && isLooseMuon && isPFMuon && innerTrack.validFraction >= 0.49 && ( isGlobalMuon && globalTrack.normalizedChi2 < 3 && combinedQuality.chi2LocalPosition < 12 && combinedQuality.trkKink < 20 && segmentCompatibility >= 0.303 || segmentCompatibility >= 0.451 )"),
51  electronSel=cms.string(""),
52  tauSel=cms.string(""),
53  photonSel=cms.string(""),
54  jetName=cms.string("Jet"),muonName=cms.string("Muon"),electronName=cms.string("Electron"),
55  tauName=cms.string("Tau"),photonName=cms.string("Photon")
56 )
57 
58 btagSFdir="PhysicsTools/NanoAOD/data/btagSF/"
59 
60 btagWeightTable = cms.EDProducer("BTagSFProducer",
61  src = cms.InputTag("linkedObjects","jets"),
62  cut = cms.string("pt > 25. && abs(eta) < 2.5"),
63  discNames = cms.vstring(
64  "pfCombinedInclusiveSecondaryVertexV2BJetTags",
65  "pfDeepCSVJetTags:probb+pfDeepCSVJetTags:probbb", #if multiple MiniAOD branches need to be summed up (e.g., DeepCSV b+bb), separate them using '+' delimiter
66  "pfCombinedMVAV2BJetTags"
67  ),
68  discShortNames = cms.vstring(
69  "CSVV2",
70  "DeepCSVB",
71  "CMVA"
72  ),
73  weightFiles = cms.vstring( #default settings are for 2017 94X. toModify function is called later for other eras.
74  btagSFdir+"CSVv2_94XSF_V2_B_F.csv",
75  btagSFdir+"DeepCSV_94XSF_V2_B_F.csv",
76  "unavailable" #if SFs for an algorithm in an era is unavailable, the corresponding branch will not be stored
77  ),
78  operatingPoints = cms.vstring("3","3","3"), #loose = 0, medium = 1, tight = 2, reshaping = 3
79  measurementTypesB = cms.vstring("iterativefit","iterativefit","iterativefit"), #e.g. "comb", "incl", "ttbar", "iterativefit"
80  measurementTypesC = cms.vstring("iterativefit","iterativefit","iterativefit"),
81  measurementTypesUDSG = cms.vstring("iterativefit","iterativefit","iterativefit"),
82  sysTypes = cms.vstring("central","central","central")
83 )
84 
85 for modifier in run2_miniAOD_80XLegacy, run2_nanoAOD_94X2016: # to be updated when SF for Summer16MiniAODv3 MC will be available
86  modifier.toModify(btagWeightTable,
87  cut = cms.string("pt > 25. && abs(eta) < 2.4"), #80X corresponds to 2016, |eta| < 2.4
88  weightFiles = cms.vstring( #80X corresponds to 2016 SFs
89  btagSFdir+"CSVv2_Moriond17_B_H.csv",
90  "unavailable",
91  btagSFdir+"cMVAv2_Moriond17_B_H.csv"
92  )
93  )
94 
95 
96 genWeightsTable = cms.EDProducer("GenWeightsTableProducer",
97  genEvent = cms.InputTag("generator"),
98  genLumiInfoHeader = cms.InputTag("generator"),
99  lheInfo = cms.VInputTag(cms.InputTag("externalLHEProducer"), cms.InputTag("source")),
100  preferredPDFs = cms.VPSet( # see https://lhapdf.hepforge.org/pdfsets.html
101  cms.PSet( name = cms.string("PDF4LHC15_nnlo_30_pdfas"), lhaid = cms.uint32(91400) ),
102  cms.PSet( name = cms.string("NNPDF31_nnlo_hessian_pdfas"), lhaid = cms.uint32(306000) ),
103  cms.PSet( name = cms.string("NNPDF30_nlo_as_0118"), lhaid = cms.uint32(260000) ), # for some 92X samples. Note that the nominal weight, 260000, is not included in the LHE ...
104  cms.PSet( name = cms.string("NNPDF30_lo_as_0130"), lhaid = cms.uint32(262000) ), # some MLM 80X samples have only this (e.g. /store/mc/RunIISummer16MiniAODv2/DYJetsToLL_M-50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/MINIAODSIM/PUMoriond17_80X_mcRun2_asymptotic_2016_TrancheIV_v6_ext1-v2/120000/02A210D6-F5C3-E611-B570-008CFA197BD4.root )
105  cms.PSet( name = cms.string("NNPDF30_nlo_nf_4_pdfas"), lhaid = cms.uint32(292000) ), # some FXFX 80X samples have only this (e.g. WWTo1L1Nu2Q, WWTo4Q)
106  cms.PSet( name = cms.string("NNPDF30_nlo_nf_5_pdfas"), lhaid = cms.uint32(292200) ), # some FXFX 80X samples have only this (e.g. DYJetsToLL_Pt, WJetsToLNu_Pt, DYJetsToNuNu_Pt)
107  cms.PSet( name = cms.string("NNPDF31_lo_as_0130"), lhaid = cms.uint32(315200) ), # SUSY signal samples use this
108  ),
109  namedWeightIDs = cms.vstring(),
110  namedWeightLabels = cms.vstring(),
111  lheWeightPrecision = cms.int32(14),
112  maxPdfWeights = cms.uint32(150),
113  debug = cms.untracked.bool(False),
114 )
115 lheInfoTable = cms.EDProducer("LHETablesProducer",
116  lheInfo = cms.VInputTag(cms.InputTag("externalLHEProducer"), cms.InputTag("source")),
117  precision = cms.int32(14),
118  storeLHEParticles = cms.bool(True)
119 )
120 
121 l1bits=cms.EDProducer("L1TriggerResultsConverter", src=cms.InputTag("gtStage2Digis"), legacyL1=cms.bool(False),
122  storeUnprefireableBit=cms.bool(True), src_ext=cms.InputTag("gtStage2Digis"))
123 (run2_miniAOD_80XLegacy | run2_nanoAOD_94X2016 | run2_nanoAOD_94XMiniAODv1 | run2_nanoAOD_94XMiniAODv2 | run2_nanoAOD_102Xv1).toModify(l1bits, storeUnprefireableBit=False)
124 
125 nanoSequenceCommon = cms.Sequence(
126  nanoMetadata + jetSequence + muonSequence + tauSequence + electronSequence+photonSequence+vertexSequence+
127  isoTrackSequence + jetLepSequence + # must be after all the leptons
128  linkedObjects +
129  jetTables + muonTables + tauTables + electronTables + photonTables + globalTables +vertexTables+ metTables+simpleCleanerTable + isoTrackTables
130  )
131 nanoSequenceOnlyFullSim = cms.Sequence(triggerObjectTables + l1bits)
132 
133 nanoSequence = cms.Sequence(nanoSequenceCommon + nanoSequenceOnlyFullSim)
134 
135 nanoSequenceFS = cms.Sequence(genParticleSequence + particleLevelSequence + nanoSequenceCommon + jetMC + muonMC + electronMC + photonMC + tauMC + metMC + ttbarCatMCProducers + globalTablesMC + btagWeightTable + genWeightsTable + genParticleTables + particleLevelTables + lheInfoTable + ttbarCategoryTable )
136 
137 nanoSequenceMC = nanoSequenceFS.copy()
138 nanoSequenceMC.insert(nanoSequenceFS.index(nanoSequenceCommon)+1,nanoSequenceOnlyFullSim)
139 
140 # modify extraFlagsTable to store ecalBadCalibFilter decision which is re-run with updated bad crystal list for 2017 and 2018 samples
141 for modifier in run2_nanoAOD_94XMiniAODv1, run2_nanoAOD_94XMiniAODv2, run2_nanoAOD_102Xv1:
142  modifier.toModify(extraFlagsTable, variables= cms.PSet())
143  modifier.toModify(extraFlagsTable, variables = dict(Flag_ecalBadCalibFilterV2 = ExtVar(cms.InputTag("ecalBadCalibFilterNanoTagger"), bool, doc = "Bad ECAL calib flag (updated xtal list)")))
144 
145 # modifier which adds new tauIDs (currently only deepTauId2017v2p1 is being added)
146 import RecoTauTag.RecoTau.tools.runTauIdMVA as tauIdConfig
147 def nanoAOD_addTauIds(process):
148  updatedTauName = "slimmedTausUpdated"
149  tauIdEmbedder = tauIdConfig.TauIDEmbedder(process, debug = False, updatedTauName = updatedTauName,
150  toKeep = [ "deepTau2017v2p1" ])
151  tauIdEmbedder.runTauID()
152  process.patTauMVAIDsSeq.insert(process.patTauMVAIDsSeq.index(getattr(process, updatedTauName)),
153  process.rerunMvaIsolationSequence)
154  return process
155 
156 from PhysicsTools.PatAlgos.tools.jetTools import updateJetCollection
157 def nanoAOD_addDeepInfo(process,addDeepBTag,addDeepFlavour):
158  _btagDiscriminators=[]
159  if addDeepBTag:
160  print("Updating process to run DeepCSV btag")
161  _btagDiscriminators += ['pfDeepCSVJetTags:probb','pfDeepCSVJetTags:probbb','pfDeepCSVJetTags:probc']
162  if addDeepFlavour:
163  print("Updating process to run DeepFlavour btag")
164  _btagDiscriminators += ['pfDeepFlavourJetTags:probb','pfDeepFlavourJetTags:probbb','pfDeepFlavourJetTags:problepb','pfDeepFlavourJetTags:probc']
165  if len(_btagDiscriminators)==0: return process
166  print("Will recalculate the following discriminators: "+", ".join(_btagDiscriminators))
167  updateJetCollection(
168  process,
169  jetSource = cms.InputTag('slimmedJets'),
170  jetCorrections = ('AK4PFchs', cms.vstring(['L1FastJet', 'L2Relative', 'L3Absolute','L2L3Residual']), 'None'),
171  btagDiscriminators = _btagDiscriminators,
172  postfix = 'WithDeepInfo',
173  )
174  process.load("Configuration.StandardSequences.MagneticField_cff")
175  process.jetCorrFactorsNano.src="selectedUpdatedPatJetsWithDeepInfo"
176  process.updatedJets.jetSource="selectedUpdatedPatJetsWithDeepInfo"
177  return process
178 
179 from PhysicsTools.PatUtils.tools.runMETCorrectionsAndUncertainties import runMetCorAndUncFromMiniAOD
180 #from PhysicsTools.PatAlgos.slimming.puppiForMET_cff import makePuppiesFromMiniAOD
181 def nanoAOD_recalibrateMETs(process,isData):
182  runMetCorAndUncFromMiniAOD(process,isData=isData)
183  process.nanoSequenceCommon.insert(process.nanoSequenceCommon.index(process.jetSequence),cms.Sequence(process.fullPatMetSequence))
184  process.basicJetsForMetForT1METNano = process.basicJetsForMet.clone(
185  src = process.updatedJetsWithUserData.src,
186  skipEM = False,
187  type1JetPtThreshold = 0.0,
188  calcMuonSubtrRawPtAsValueMap = cms.bool(True),
189  )
190  process.jetSequence.insert(process.jetSequence.index(process.updatedJetsWithUserData),cms.Sequence(process.basicJetsForMetForT1METNano))
191  process.updatedJetsWithUserData.userFloats.muonSubtrRawPt = cms.InputTag("basicJetsForMetForT1METNano:MuonSubtrRawPt")
192  process.corrT1METJetTable.src = process.finalJets.src
193  process.corrT1METJetTable.cut = "pt<15 && abs(eta)<9.9"
194  for table in process.jetTable, process.corrT1METJetTable:
195  table.variables.muonSubtrFactor = Var("1-userFloat('muonSubtrRawPt')/(pt()*jecFactor('Uncorrected'))",float,doc="1-(muon-subtracted raw pt)/(raw pt)",precision=6)
196  process.metTables += process.corrT1METJetTable
197 # makePuppiesFromMiniAOD(process,True) # call this before in the global customizer otherwise it would reset photon IDs in VID
198 # runMetCorAndUncFromMiniAOD(process,isData=isData,metType="Puppi",postfix="Puppi",jetFlavor="AK4PFPuppi")
199 # process.puppiNoLep.useExistingWeights = False
200 # process.puppi.useExistingWeights = False
201 # process.nanoSequenceCommon.insert(process.nanoSequenceCommon.index(jetSequence),cms.Sequence(process.puppiMETSequence+process.fullPatMetSequencePuppi))
202  return process
203 
205 def nanoAOD_activateVID(process):
206  switchOnVIDElectronIdProducer(process,DataFormat.MiniAOD)
207  for modname in electron_id_modules_WorkingPoints_nanoAOD.modules:
208  setupAllVIDIdsInModule(process,modname,setupVIDElectronSelection)
209  process.electronSequence.insert(process.electronSequence.index(process.bitmapVIDForEle),process.egmGsfElectronIDSequence)
210  for modifier in run2_miniAOD_80XLegacy, :
211  modifier.toModify(process.electronMVAValueMapProducer, src = "slimmedElectronsUpdated")
212  modifier.toModify(process.egmGsfElectronIDs, physicsObjectSrc = "slimmedElectronsUpdated")
213  for modifier in run2_nanoAOD_94XMiniAODv1,run2_nanoAOD_94XMiniAODv2,run2_nanoAOD_94X2016 ,run2_nanoAOD_102Xv1:
214  modifier.toModify(process.electronMVAValueMapProducer, src = "slimmedElectronsTo106X")
215  modifier.toModify(process.egmGsfElectronIDs, physicsObjectSrc = "slimmedElectronsTo106X")
216 
217 
218 
219  switchOnVIDPhotonIdProducer(process,DataFormat.MiniAOD) # do not call this to avoid resetting photon IDs in VID, if called before inside makePuppiesFromMiniAOD
220  for modname in photon_id_modules_WorkingPoints_nanoAOD.modules:
221  setupAllVIDIdsInModule(process,modname,setupVIDPhotonSelection)
222  process.photonSequence.insert(process.photonSequence.index(bitmapVIDForPho),process.egmPhotonIDSequence)
223  for modifier in run2_miniAOD_80XLegacy,run2_nanoAOD_94XMiniAODv1,run2_nanoAOD_94XMiniAODv2,run2_nanoAOD_94X2016 ,run2_nanoAOD_102Xv1:
224  modifier.toModify(process.photonMVAValueMapProducer, src = "slimmedPhotonsTo106X")
225  modifier.toModify(process.egmPhotonIDs, physicsObjectSrc = "slimmedPhotonsTo106X")
226  return process
227 
228 def nanoAOD_addDeepInfoAK8(process,addDeepBTag,addDeepBoostedJet, addDeepDoubleX, jecPayload):
229  _btagDiscriminators=[]
230  if addDeepBTag:
231  print("Updating process to run DeepCSV btag to AK8 jets")
232  _btagDiscriminators += ['pfDeepCSVJetTags:probb','pfDeepCSVJetTags:probbb']
233  if addDeepBoostedJet:
234  print("Updating process to run DeepBoostedJet on datasets before 103X")
235  from RecoBTag.ONNXRuntime.pfDeepBoostedJet_cff import _pfDeepBoostedJetTagsAll as pfDeepBoostedJetTagsAll
236  _btagDiscriminators += pfDeepBoostedJetTagsAll
237  if addDeepDoubleX:
238  print("Updating process to run DeepDoubleX on datasets before 104X")
239  _btagDiscriminators += ['pfDeepDoubleBvLJetTags:probHbb', \
240  'pfDeepDoubleCvLJetTags:probHcc', \
241  'pfDeepDoubleCvBJetTags:probHcc', \
242  'pfMassIndependentDeepDoubleBvLJetTags:probHbb', 'pfMassIndependentDeepDoubleCvLJetTags:probHcc', 'pfMassIndependentDeepDoubleCvBJetTags:probHcc']
243  if len(_btagDiscriminators)==0: return process
244  print("Will recalculate the following discriminators on AK8 jets: "+", ".join(_btagDiscriminators))
245  updateJetCollection(
246  process,
247  jetSource = cms.InputTag('slimmedJetsAK8'),
248  pvSource = cms.InputTag('offlineSlimmedPrimaryVertices'),
249  svSource = cms.InputTag('slimmedSecondaryVertices'),
250  rParam = 0.8,
251  jetCorrections = (jecPayload.value(), cms.vstring(['L1FastJet', 'L2Relative', 'L3Absolute', 'L2L3Residual']), 'None'),
252  btagDiscriminators = _btagDiscriminators,
253  postfix='AK8WithDeepInfo',
254  printWarning = False
255  )
256  process.jetCorrFactorsAK8.src="selectedUpdatedPatJetsAK8WithDeepInfo"
257  process.updatedJetsAK8.jetSource="selectedUpdatedPatJetsAK8WithDeepInfo"
258  return process
259 
260 from PhysicsTools.PatUtils.tools.runMETCorrectionsAndUncertainties import runMetCorAndUncFromMiniAOD
261 def nanoAOD_runMETfixEE2017(process,isData):
262  runMetCorAndUncFromMiniAOD(process,isData=isData,
263  fixEE2017 = True,
264  fixEE2017Params = {'userawPt': True, 'ptThreshold':50.0, 'minEtaThreshold':2.65, 'maxEtaThreshold': 3.139},
265  postfix = "FixEE2017")
266  process.nanoSequenceCommon.insert(process.nanoSequenceCommon.index(jetSequence),process.fullPatMetSequenceFixEE2017)
267 
269 # makePuppiesFromMiniAOD(process,True) # call this here as it calls switchOnVIDPhotonIdProducer
270  process = nanoAOD_activateVID(process)
271  nanoAOD_addDeepInfo_switch = cms.PSet(
272  nanoAOD_addDeepBTag_switch = cms.untracked.bool(False),
273  nanoAOD_addDeepFlavourTag_switch = cms.untracked.bool(False),
274  )
275  run2_miniAOD_80XLegacy.toModify(nanoAOD_addDeepInfo_switch, nanoAOD_addDeepBTag_switch = cms.untracked.bool(True))
276  for modifier in run2_miniAOD_80XLegacy, run2_nanoAOD_94X2016, run2_nanoAOD_94XMiniAODv1, run2_nanoAOD_94XMiniAODv2:
277  modifier.toModify(nanoAOD_addDeepInfo_switch, nanoAOD_addDeepFlavourTag_switch = cms.untracked.bool(True))
278  process = nanoAOD_addDeepInfo(process,
279  addDeepBTag=nanoAOD_addDeepInfo_switch.nanoAOD_addDeepBTag_switch,
280  addDeepFlavour=nanoAOD_addDeepInfo_switch.nanoAOD_addDeepFlavourTag_switch)
281  nanoAOD_addDeepInfoAK8_switch = cms.PSet(
282  nanoAOD_addDeepBTag_switch = cms.untracked.bool(False),
283  nanoAOD_addDeepBoostedJet_switch = cms.untracked.bool(True), # will deactivate this in future miniAOD releases
284  nanoAOD_addDeepDoubleX_switch = cms.untracked.bool(True),
285  jecPayload = cms.untracked.string('AK8PFPuppi')
286  )
287  # deepAK8 should not run on 80X, that contains ak8PFJetsCHS jets
288  run2_miniAOD_80XLegacy.toModify(nanoAOD_addDeepInfoAK8_switch,
289  nanoAOD_addDeepBTag_switch = cms.untracked.bool(True),
290  nanoAOD_addDeepBoostedJet_switch = cms.untracked.bool(False),
291  nanoAOD_addDeepDoubleX_switch = cms.untracked.bool(False),
292  jecPayload = cms.untracked.string('AK8PFchs'))
293  process = nanoAOD_addDeepInfoAK8(process,
294  addDeepBTag=nanoAOD_addDeepInfoAK8_switch.nanoAOD_addDeepBTag_switch,
295  addDeepBoostedJet=nanoAOD_addDeepInfoAK8_switch.nanoAOD_addDeepBoostedJet_switch,
296  addDeepDoubleX=nanoAOD_addDeepInfoAK8_switch.nanoAOD_addDeepDoubleX_switch,
297  jecPayload=nanoAOD_addDeepInfoAK8_switch.jecPayload)
298  (run2_nanoAOD_94XMiniAODv1 | run2_nanoAOD_94X2016 | run2_nanoAOD_94XMiniAODv2 | run2_nanoAOD_102Xv1 | run2_nanoAOD_106Xv1).toModify(process, lambda p : nanoAOD_addTauIds(p))
299  return process
300 
302  process = nanoAOD_customizeCommon(process)
303  process = nanoAOD_recalibrateMETs(process,isData=True)
304  for modifier in run2_nanoAOD_94XMiniAODv1, run2_nanoAOD_94XMiniAODv2:
305  modifier.toModify(process, lambda p: nanoAOD_runMETfixEE2017(p,isData=True))
306  return process
307 
308 def nanoAOD_customizeMC(process):
309  process = nanoAOD_customizeCommon(process)
310  process = nanoAOD_recalibrateMETs(process,isData=False)
311  for modifier in run2_nanoAOD_94XMiniAODv1, run2_nanoAOD_94XMiniAODv2:
312  modifier.toModify(process, lambda p: nanoAOD_runMETfixEE2017(p,isData=False))
313  return process
314 
315 
316 _80x_sequence = nanoSequenceCommon.copy()
317 #remove stuff
318 _80x_sequence.remove(isoTrackTables)
319 _80x_sequence.remove(isoTrackSequence)
320 #add stuff
321 _80x_sequence.insert(_80x_sequence.index(jetSequence), extraFlagsProducers)
322 _80x_sequence.insert(_80x_sequence.index(simpleCleanerTable)+1, extraFlagsTable)
323 
324 run2_miniAOD_80XLegacy.toReplaceWith( nanoSequenceCommon, _80x_sequence)
325 
326 _102x_sequence = nanoSequenceCommon.copy()
327 #add stuff
328 _102x_sequence.insert(_102x_sequence.index(jetSequence),extraFlagsProducers102x)
329 _102x_sequence.insert(_102x_sequence.index(simpleCleanerTable)+1,extraFlagsTable)
330 
331 for modifier in run2_nanoAOD_94XMiniAODv1, run2_nanoAOD_94XMiniAODv2, run2_nanoAOD_102Xv1:
332  modifier.toReplaceWith(nanoSequenceCommon, _102x_sequence)
nano_cff.nanoAOD_customizeData
def nanoAOD_customizeData(process)
Definition: nano_cff.py:301
isotracks_cff
ttbarCategorization_cff
taus_cff
genparticles_cff
vid_id_tools.switchOnVIDElectronIdProducer
def switchOnVIDElectronIdProducer(process, dataFormat, task=None)
Electrons.
Definition: vid_id_tools.py:66
nano_cff.nanoAOD_addTauIds
def nanoAOD_addTauIds(process)
Definition: nano_cff.py:147
pfDeepBoostedJet_cff
particlelevel_cff
join
static std::string join(char **cmd)
Definition: RemoteFile.cc:17
globals_cff
nano_cff.nanoAOD_recalibrateMETs
def nanoAOD_recalibrateMETs(process, isData)
Definition: nano_cff.py:181
common_cff
vertices_cff
NanoAODEDMEventContent_cff
photons_cff
common_cff.Var
def Var(expr, valtype, compression=None, doc=None, mcOnly=False, precision=-1)
Definition: common_cff.py:20
nano_cff.nanoAOD_customizeMC
def nanoAOD_customizeMC(process)
Definition: nano_cff.py:308
nano_cff.nanoAOD_activateVID
def nanoAOD_activateVID(process)
Definition: nano_cff.py:205
extraflags_cff
nano_cff.nanoAOD_addDeepInfo
def nanoAOD_addDeepInfo(process, addDeepBTag, addDeepFlavour)
Definition: nano_cff.py:157
jetTools
nano_cff.nanoAOD_addDeepInfoAK8
def nanoAOD_addDeepInfoAK8(process, addDeepBTag, addDeepBoostedJet, addDeepDoubleX, jecPayload)
Definition: nano_cff.py:228
common_cff.ExtVar
def ExtVar(tag, valtype, compression=None, doc=None, mcOnly=False, precision=-1)
Definition: common_cff.py:31
jets_cff
muons_cff
nano_cff.nanoAOD_runMETfixEE2017
def nanoAOD_runMETfixEE2017(process, isData)
Definition: nano_cff.py:261
edm::print
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
runMETCorrectionsAndUncertainties.runMetCorAndUncFromMiniAOD
def runMetCorAndUncFromMiniAOD(process, metType="PF", jetCollUnskimmed="slimmedJets", photonColl="slimmedPhotons", electronColl="slimmedElectrons", muonColl="slimmedMuons", tauColl="slimmedTaus", pfCandColl="packedPFCandidates", jetFlavor="AK4PFchs", jetCleaning="LepClean", isData=False, manualJetConfig=False, reclusterJets=None, jetSelection="pt>15 && abs(eta)<9.9", recoMetFromPFCs=None, jetCorLabelL3="ak4PFCHSL1FastL2L3Corrector", jetCorLabelRes="ak4PFCHSL1FastL2L3ResidualCorrector", CHS=False, reapplyJEC=True, jecUncFile="", computeMETSignificance=True, fixEE2017=False, fixEE2017Params=None, postfix="")
Definition: runMETCorrectionsAndUncertainties.py:2013
vid_id_tools.setupAllVIDIdsInModule
def setupAllVIDIdsInModule(process, id_module_name, setupFunction, patProducer=None, addUserData=True, task=None)
Definition: vid_id_tools.py:49
vid_id_tools.switchOnVIDPhotonIdProducer
def switchOnVIDPhotonIdProducer(process, dataFormat, task=None)
Photons.
Definition: vid_id_tools.py:158
vid_id_tools
electrons_cff
triggerObjects_cff
met_cff
nano_cff.nanoAOD_customizeCommon
def nanoAOD_customizeCommon(process)
Definition: nano_cff.py:268