CMS 3D CMS Logo

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

Classes

class  RunMETCorrectionsAndUncertainties
 

Functions

def isValidInputTag
 
def runMetCorAndUncForMiniAODProduction
 
def runMetCorAndUncFromMiniAOD
 

Variables

tuple runMETCorrectionsAndUncertainties = RunMETCorrectionsAndUncertainties()
 

Function Documentation

def runMETCorrectionsAndUncertainties.isValidInputTag (   input)
def runMETCorrectionsAndUncertainties.runMetCorAndUncForMiniAODProduction (   process,
  metType = "PF",
  jetCollUnskimmed = "patJets",
  jetColl = "selectedPatJets",
  photonColl = "selectedPatPhotons",
  electronColl = "selectedPatElectrons",
  muonColl = "selectedPatMuons",
  tauColl = "selectedPatTaus",
  pfCandColl = "particleFlow",
  jetCleaning = "LepClean",
  jecUnFile = "CondFormats/JetMETObjects/data/Summer15_50nsV5_DATA_UncertaintySources_AK4PFchs.txt",
  recoMetFromPFCs = False,
  postfix = "" 
)

Definition at line 1450 of file runMETCorrectionsAndUncertainties.py.

References runMetCorAndUncFromMiniAOD().

Referenced by miniAOD_tools.miniAOD_customizeCommon().

1451  postfix=""):
1452 
1453  runMETCorrectionsAndUncertainties = RunMETCorrectionsAndUncertainties()
1454 
1455  #MET flavors
1456  runMETCorrectionsAndUncertainties(process, metType="PF",
1457  correctionLevel=["T0","T1","T2","Smear","Txy"],
1458  computeUncertainties=False,
1459  produceIntermediateCorrections=True,
1460  addToPatDefaultSequence=False,
1461  jetCollectionUnskimmed=jetCollUnskimmed,
1462  jetCollection=jetColl,
1463  photonCollection=photonColl,
1464  electronCollection=electronColl,
1465  muonCollection=muonColl,
1466  tauCollection=tauColl,
1467  pfCandCollection =pfCandColl,
1468  autoJetCleaning=jetCleaning,
1469  jecUncertaintyFile=jecUnFile,
1470  recoMetFromPFCs=recoMetFromPFCs,
1471  postfix=postfix
1472  )
1473 
1474  #MET T1 uncertainties
1475  runMETCorrectionsAndUncertainties(process, metType="PF",
1476  correctionLevel=["T1"],
1477  computeUncertainties=True,
1478  produceIntermediateCorrections=False,
1479  addToPatDefaultSequence=False,
1480  jetCollectionUnskimmed=jetCollUnskimmed,
1481  jetCollection=jetColl,
1482  photonCollection=photonColl,
1483  electronCollection=electronColl,
1484  muonCollection=muonColl,
1485  tauCollection=tauColl,
1486  pfCandCollection =pfCandColl,
1487  autoJetCleaning=jetCleaning,
1488  jecUncertaintyFile=jecUnFile,
1489  recoMetFromPFCs=recoMetFromPFCs,
1490  postfix=postfix
1491  )
1492 
1493  #MET T1 Smeared JER uncertainties
1494  runMETCorrectionsAndUncertainties(process, metType="PF",
1495  correctionLevel=["T1","Smear"],
1496  computeUncertainties=True,
1497  produceIntermediateCorrections=False,
1498  addToPatDefaultSequence=False,
1499  jetCollectionUnskimmed=jetCollUnskimmed,
1500  jetCollection=jetColl,
1501  photonCollection=photonColl,
1502  electronCollection=electronColl,
1503  muonCollection=muonColl,
1504  tauCollection=tauColl,
1505  pfCandCollection =pfCandColl,
1506  autoJetCleaning=jetCleaning,
1507  jecUncertaintyFile=jecUnFile,
1508  recoMetFromPFCs=recoMetFromPFCs,
1509  postfix=postfix,
1510  )
1511 
1512 
1513 
1514 
# miniAOD reproduction ===========================
def runMETCorrectionsAndUncertainties.runMetCorAndUncFromMiniAOD (   process,
  metType = "PF",
  jetCollUnskimmed = "slimmedJets",
  jetColl = "selectedPatJets",
  photonColl = "slimmedPhotons",
  electronColl = "slimmedElectrons",
  muonColl = "slimmedMuons",
  tauColl = "slimmedTaus",
  pfCandColl = "packedPFCandidates",
  jetFlav = "AK4PFchs",
  jetCleaning = "LepClean",
  isData = False,
  jetConfig = False,
  repro74X = False,
  reclusterJets = False,
  recoMetFromPFCs = False,
  jetCorLabelL3 = cms.InputTag('ak4PFCHSL1FastL2L3Corrector'),
  jetCorLabelRes = cms.InputTag('ak4PFCHSL1FastL2L3ResidualCorrector'),
  jecUncFile = "CondFormats/JetMETObjects/data/Summer15_50nsV5_DATA_UncertaintySources_AK4PFchs.txt",
  postfix = "" 
)

Definition at line 1533 of file runMETCorrectionsAndUncertainties.py.

Referenced by runMetCorAndUncForMiniAODProduction().

1534  postfix=""):
1535 
1536  runMETCorrectionsAndUncertainties = RunMETCorrectionsAndUncertainties()
1537 
1538  #MET T1 uncertainties
1539  runMETCorrectionsAndUncertainties(process, metType="PF",
1540  correctionLevel=["T1"],
1541  computeUncertainties=True,
1542  produceIntermediateCorrections=False,
1543  addToPatDefaultSequence=False,
1544  jetCollection=jetColl,
1545  jetCollectionUnskimmed=jetCollUnskimmed,
1546  electronCollection=electronColl,
1547  muonCollection=muonColl,
1548  tauCollection=tauColl,
1549  photonCollection=photonColl,
1550  pfCandCollection =pfCandColl,
1551  runOnData=isData,
1552  onMiniAOD=True,
1553  repro74X=repro74X,
1554  reclusterJets=reclusterJets,
1555  recoMetFromPFCs=recoMetFromPFCs,
1556  autoJetCleaning=jetCleaning,
1557  manualJetConfig=jetConfig,
1558  jetFlavor=jetFlav,
1559  jetCorLabelUpToL3=jetCorLabelL3,
1560  jetCorLabelL3Res=jetCorLabelRes,
1561  jecUncertaintyFile=jecUncFile,
1562  postfix=postfix,
1563  )
1564 
1565  #MET T1+Txy
1566  runMETCorrectionsAndUncertainties(process, metType="PF",
1567  correctionLevel=["T1","Txy"],
1568  computeUncertainties=False,
1569  produceIntermediateCorrections=True,
1570  addToPatDefaultSequence=False,
1571  jetCollection=jetColl,
1572  jetCollectionUnskimmed=jetCollUnskimmed,
1573  electronCollection=electronColl,
1574  muonCollection=muonColl,
1575  tauCollection=tauColl,
1576  photonCollection=photonColl,
1577  pfCandCollection =pfCandColl,
1578  runOnData=isData,
1579  onMiniAOD=True,
1580  repro74X=repro74X,
1581  reclusterJets=reclusterJets,
1582  recoMetFromPFCs=recoMetFromPFCs,
1583  autoJetCleaning=jetCleaning,
1584  manualJetConfig=jetConfig,
1585  jetFlavor=jetFlav,
1586  jetCorLabelUpToL3=jetCorLabelL3,
1587  jetCorLabelL3Res=jetCorLabelRes,
1588  jecUncertaintyFile=jecUncFile,
1589  postfix=postfix,
1590  )

Variable Documentation

tuple runMETCorrectionsAndUncertainties.runMETCorrectionsAndUncertainties = RunMETCorrectionsAndUncertainties()

Definition at line 1433 of file runMETCorrectionsAndUncertainties.py.