Classes | |
class | RunMETCorrectionsAndUncertainties |
Functions | |
def | __call__ |
def | addIntermediateMETs |
def | ak4JetReclustering |
def | createEnergyScaleShiftedUpModule |
def | createMVAMETModule |
def | createShiftedJetResModule |
def | createShiftedMETModule |
def | createShiftedModules |
def | createShiftedObjectModuleForMVAMET |
def | createSmearedJetModule |
def | extractMET |
def | getCorrectedMET |
def | getDefaultParameters |
self.addParameter(self._defaultParameters, 'jecUncertaintyFile', 'CondFormats/JetMETObjects/data/Summer15_50nsV5_DATA_UncertaintySources_AK4PFchs.txt', More... | |
def | getMETUncertainties |
def | getUnclusteredVariations |
def | getUnclusteredVariationsForMVAMET |
def | getVariations |
def | initializeInputTag |
Utilities ====================================================================. More... | |
def | isValidInputTag |
def | jetCleaning |
def | jetConfiguration |
def | miniAODConfiguration |
def | produceMET |
def | recomputeRawMetFromPfcs |
def | removePostfix |
def | runMetCorAndUncForMiniAODProduction |
def | runMetCorAndUncFromMiniAOD |
def | toolCode |
def | tuneTxyParameters |
def | updateJECs |
Variables | |
tuple | runMETCorrectionsAndUncertainties = RunMETCorrectionsAndUncertainties() |
def runMETCorrectionsAndUncertainties.__call__ | ( | self, | |
process, | |||
metType = None , |
|||
correctionLevel = None , |
|||
computeUncertainties = None , |
|||
produceIntermediateCorrections = None , |
|||
electronCollection = None , |
|||
photonCollection = None , |
|||
muonCollection = None , |
|||
tauCollection = None , |
|||
jetCollection = None , |
|||
jetCollectionUnskimmed = None , |
|||
pfCandCollection = None , |
|||
autoJetCleaning = None , |
|||
jetFlavor = None , |
|||
jetCorr = None , |
|||
jetCorLabelUpToL3 = None , |
|||
jetCorLabelL3Res = None , |
|||
jecUncertaintyFile = None , |
|||
jecUncertaintyTag = None , |
|||
mvaMetLeptons = None , |
|||
addToPatDefaultSequence = None , |
|||
manualJetConfig = None , |
|||
recoMetFromPFCs = None , |
|||
reclusterJets = None , |
|||
CHS = None , |
|||
runOnData = None , |
|||
onMiniAOD = None , |
|||
postfix = None |
|||
) |
Definition at line 120 of file runMETCorrectionsAndUncertainties.py.
Referenced by getDefaultParameters().
def runMETCorrectionsAndUncertainties.addIntermediateMETs | ( | self, | |
process, | |||
metType, | |||
correctionLevel, | |||
corScheme, | |||
corTags, | |||
corNames, | |||
postfix | |||
) |
Definition at line 538 of file runMETCorrectionsAndUncertainties.py.
References getMETUncertainties().
def runMETCorrectionsAndUncertainties.ak4JetReclustering | ( | self, | |
process, | |||
pfCandCollection, | |||
patMetModuleSequence, | |||
postfix | |||
) |
Definition at line 1215 of file runMETCorrectionsAndUncertainties.py.
References clone().
def runMETCorrectionsAndUncertainties.createEnergyScaleShiftedUpModule | ( | self, | |
process, | |||
identifier, | |||
objectCollection, | |||
varyByNsigmas, | |||
jetUncInfos = None , |
|||
postfix = "" |
|||
) |
Definition at line 646 of file runMETCorrectionsAndUncertainties.py.
Referenced by getMETUncertainties().
def runMETCorrectionsAndUncertainties.createMVAMETModule | ( | self, | |
process, | |||
identifier = "" , |
|||
shiftedCollection = "" , |
|||
isShifted = False , |
|||
postfix = "" |
|||
) |
Definition at line 924 of file runMETCorrectionsAndUncertainties.py.
References clone(), and isValidInputTag().
def runMETCorrectionsAndUncertainties.createShiftedJetResModule | ( | self, | |
process, | |||
smear, | |||
objectCollection, | |||
varyByNsigmas, | |||
varDir, | |||
metUncSequence, | |||
postfix | |||
) |
Definition at line 835 of file runMETCorrectionsAndUncertainties.py.
def runMETCorrectionsAndUncertainties.createShiftedMETModule | ( | self, | |
process, | |||
originCollection, | |||
shiftedCollection | |||
) |
Definition at line 914 of file runMETCorrectionsAndUncertainties.py.
def runMETCorrectionsAndUncertainties.createShiftedModules | ( | self, | |
process, | |||
shiftedCollModules, | |||
identifier, | |||
preId, | |||
objectCollection, | |||
metModName, | |||
varType, | |||
metUncSequence, | |||
postfix | |||
) |
Definition at line 843 of file runMETCorrectionsAndUncertainties.py.
References clone().
def runMETCorrectionsAndUncertainties.createShiftedObjectModuleForMVAMET | ( | self, | |
origCollection, | |||
shiftedCollection, | |||
dr = 0.5 |
|||
) |
Definition at line 1075 of file runMETCorrectionsAndUncertainties.py.
def runMETCorrectionsAndUncertainties.createSmearedJetModule | ( | self, | |
process, | |||
jetCollection, | |||
smear, | |||
varyByNsigmas, | |||
varDir, | |||
metUncSequence, | |||
postfix | |||
) |
Definition at line 1085 of file runMETCorrectionsAndUncertainties.py.
References clone().
def runMETCorrectionsAndUncertainties.extractMET | ( | self, | |
process, | |||
correctionLevel, | |||
patMetModuleSequence, | |||
postfix | |||
) |
Definition at line 1181 of file runMETCorrectionsAndUncertainties.py.
References reco.if().
def runMETCorrectionsAndUncertainties.getCorrectedMET | ( | self, | |
process, | |||
metType, | |||
correctionLevel, | |||
produceIntermediateCorrections, | |||
metModuleSequence, | |||
postfix | |||
) |
Definition at line 383 of file runMETCorrectionsAndUncertainties.py.
References clone().
def runMETCorrectionsAndUncertainties.getDefaultParameters | ( | self | ) |
self.addParameter(self._defaultParameters, 'jecUncertaintyFile', 'CondFormats/JetMETObjects/data/Summer15_50nsV5_DATA_UncertaintySources_AK4PFchs.txt',
self.addParameter(self._defaultParameters, 'jecUncertaintyTag', 'SubTotalMC',
Definition at line 89 of file runMETCorrectionsAndUncertainties.py.
References __call__().
def runMETCorrectionsAndUncertainties.getMETUncertainties | ( | self, | |
process, | |||
metType, | |||
metModName, | |||
electronCollection, | |||
photonCollection, | |||
muonCollection, | |||
tauCollection, | |||
jetCollection, | |||
jetUncInfos, | |||
patMetModuleSequence, | |||
postfix | |||
) |
Definition at line 590 of file runMETCorrectionsAndUncertainties.py.
References createEnergyScaleShiftedUpModule(), and isValidInputTag().
Referenced by addIntermediateMETs().
def runMETCorrectionsAndUncertainties.getUnclusteredVariations | ( | self, | |
process, | |||
metModName, | |||
metUncSequence, | |||
postfix | |||
) |
Definition at line 978 of file runMETCorrectionsAndUncertainties.py.
References clone().
def runMETCorrectionsAndUncertainties.getUnclusteredVariationsForMVAMET | ( | self, | |
process, | |||
var, | |||
val, | |||
metUncSequence, | |||
postfix | |||
) |
Definition at line 1038 of file runMETCorrectionsAndUncertainties.py.
def runMETCorrectionsAndUncertainties.getVariations | ( | self, | |
process, | |||
metModName, | |||
identifier, | |||
preId, | |||
objectCollection, | |||
varType, | |||
metUncSequence, | |||
jetUncInfos = None , |
|||
postfix = "" |
|||
) |
Definition at line 793 of file runMETCorrectionsAndUncertainties.py.
References clone().
Referenced by tuneTxyParameters().
def runMETCorrectionsAndUncertainties.initializeInputTag | ( | self, | |
input, | |||
default | |||
) |
Utilities ====================================================================.
Definition at line 1144 of file runMETCorrectionsAndUncertainties.py.
def runMETCorrectionsAndUncertainties.isValidInputTag | ( | input | ) |
Definition at line 8 of file runMETCorrectionsAndUncertainties.py.
Referenced by createMVAMETModule(), getMETUncertainties(), jetCleaning(), and toolCode().
def runMETCorrectionsAndUncertainties.jetCleaning | ( | self, | |
process, | |||
autoJetCleaning, | |||
postfix | |||
) |
Definition at line 1377 of file runMETCorrectionsAndUncertainties.py.
References clone(), and isValidInputTag().
def runMETCorrectionsAndUncertainties.jetConfiguration | ( | self | ) |
Definition at line 1348 of file runMETCorrectionsAndUncertainties.py.
def runMETCorrectionsAndUncertainties.miniAODConfiguration | ( | self, | |
process, | |||
pfCandCollection, | |||
jetCollection, | |||
patMetModuleSequence, | |||
postfix | |||
) |
Definition at line 1279 of file runMETCorrectionsAndUncertainties.py.
def runMETCorrectionsAndUncertainties.produceMET | ( | self, | |
process, | |||
metType, | |||
metModuleSequence, | |||
postfix | |||
) |
Definition at line 355 of file runMETCorrectionsAndUncertainties.py.
References clone().
def runMETCorrectionsAndUncertainties.recomputeRawMetFromPfcs | ( | self, | |
process, | |||
pfCandCollection, | |||
onMiniAOD, | |||
patMetModuleSequence, | |||
postfix | |||
) |
Definition at line 1155 of file runMETCorrectionsAndUncertainties.py.
References clone().
def runMETCorrectionsAndUncertainties.removePostfix | ( | self, | |
name, | |||
postfix | |||
) |
Definition at line 744 of file runMETCorrectionsAndUncertainties.py.
def runMETCorrectionsAndUncertainties.runMetCorAndUncForMiniAODProduction | ( | process, | |
metType = "PF" , |
|||
jetCollUnskimmed = "patJets" , |
|||
jetColl = "selectedPatJetsForMETUnc" , |
|||
photonColl = "selectedPatPhotons" , |
|||
electronColl = "selectedPatElectrons" , |
|||
muonColl = "selectedPatMuons" , |
|||
tauColl = "selectedPatTaus" , |
|||
pfCandColl = "particleFlow" , |
|||
jetCleaning = "LepClean" , |
|||
jecUnFile = "" , |
|||
recoMetFromPFCs = False , |
|||
postfix = "" |
|||
) |
Definition at line 1452 of file runMETCorrectionsAndUncertainties.py.
References runMetCorAndUncFromMiniAOD().
Referenced by miniAOD_tools.miniAOD_customizeCommon().
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 , |
|||
reclusterJets = False , |
|||
recoMetFromPFCs = False , |
|||
jetCorLabelL3 = cms.InputTag('ak4PFCHSL1FastL2L3Corrector') , |
|||
jetCorLabelRes = cms.InputTag('ak4PFCHSL1FastL2L3ResidualCorrector') , |
|||
jecUncFile = "" , |
|||
postfix = "" |
|||
) |
Definition at line 1535 of file runMETCorrectionsAndUncertainties.py.
Referenced by runMetCorAndUncForMiniAODProduction().
def runMETCorrectionsAndUncertainties.toolCode | ( | self, | |
process | |||
) |
Definition at line 238 of file runMETCorrectionsAndUncertainties.py.
References isValidInputTag().
def runMETCorrectionsAndUncertainties.tuneTxyParameters | ( | self, | |
process, | |||
corScheme, | |||
postfix | |||
) |
Definition at line 758 of file runMETCorrectionsAndUncertainties.py.
References getVariations().
def runMETCorrectionsAndUncertainties.updateJECs | ( | self, | |
process, | |||
jetCollection, | |||
patMetModuleSequence, | |||
postfix | |||
) |
Definition at line 1194 of file runMETCorrectionsAndUncertainties.py.
tuple runMETCorrectionsAndUncertainties.runMETCorrectionsAndUncertainties = RunMETCorrectionsAndUncertainties() |
Definition at line 1434 of file runMETCorrectionsAndUncertainties.py.