Functions | |
def | adaptPFElectrons (process, module, postfix) |
def | adaptPFMuons (process, module, postfix="", muonMatchModule=None) |
def | adaptPFPhotons (process, module) |
def | adaptPFTaus (process, tauType='shrinkingConePFTau', postfix="") |
def | adaptPVs (process, pvCollection=cms.InputTag('offlinePrimaryVertices'), postfix='') |
def | addPFCandidates (process, src, patLabel='PFParticles', cut="", postfix="") |
def | reconfigurePF2PATTaus (process, tauType='shrinkingConePFTau', pf2patSelection=["DiscriminationByIsolation", "DiscriminationByLeadingPionPtCut"], selectionDependsOn=["DiscriminationByLeadingTrackFinding"], producerFromType=lambda producer:producer+"Producer", postfix="") |
def | removeMCMatchingPF2PAT (process, postfix="", outputModules=['out']) |
def | switchToPFJets (process, input=cms.InputTag('pfNoTauClones'), algo='AK4', postfix="", jetCorrections=('AK4PFchs', ['L1FastJet', 'L2Relative', 'L3Absolute']), type1=False, outputModules=['out']) |
def | switchToPFMET (process, input=cms.InputTag('pfMETPFBRECO'), type1=False, postfix="") |
def | tauTypeInPF2PAT (process, tauType='shrinkingConePFTau', postfix="") |
def | usePF2PAT (process, runPF2PAT=True, jetAlgo='AK4', runOnMC=True, postfix="", jetCorrections=('AK4PFchs', ['L1FastJet', 'L2Relative', 'L3Absolute'], 'None'), pvCollection=cms.InputTag('goodOfflinePrimaryVerticesPFlow',), typeIMetCorrections=False, outputModules=['out'], excludeFromTopProjection=['Tau']) |
def | warningIsolation () |
def pfTools.adaptPFElectrons | ( | process, | |
module, | |||
postfix | |||
) |
def pfTools.adaptPFMuons | ( | process, | |
module, | |||
postfix = "" , |
|||
muonMatchModule = None |
|||
) |
Definition at line 15 of file pfTools.py.
References helpers.applyPostfix(), and print().
Referenced by usePF2PAT().
def pfTools.adaptPFPhotons | ( | process, | |
module | |||
) |
Definition at line 91 of file pfTools.py.
def pfTools.adaptPFTaus | ( | process, | |
tauType = 'shrinkingConePFTau' , |
|||
postfix = "" |
|||
) |
Definition at line 232 of file pfTools.py.
References reconfigurePF2PATTaus(), and tauTools.switchToPFTauByType().
Referenced by usePF2PAT().
def pfTools.adaptPVs | ( | process, | |
pvCollection = cms.InputTag('offlinePrimaryVertices') , |
|||
postfix = '' |
|||
) |
Definition at line 389 of file pfTools.py.
References print(), and submitPVValidationJobs.split().
Referenced by usePF2PAT().
def pfTools.addPFCandidates | ( | process, | |
src, | |||
patLabel = 'PFParticles' , |
|||
cut = "" , |
|||
postfix = "" |
|||
) |
Definition at line 277 of file pfTools.py.
References helpers.addToProcessAndTask(), helpers.applyPostfix(), and helpers.getPatAlgosToolsTask().
Referenced by usePF2PAT().
def pfTools.reconfigurePF2PATTaus | ( | process, | |
tauType = 'shrinkingConePFTau' , |
|||
pf2patSelection = ["DiscriminationByIsolation", "DiscriminationByLeadingPionPtCut"] , |
|||
selectionDependsOn = ["DiscriminationByLeadingTrackFinding"] , |
|||
producerFromType = lambda producer: producer+"Producer" , |
|||
postfix = "" |
|||
) |
Definition at line 96 of file pfTools.py.
References TauDiscriminatorTools.adaptTauDiscriminator(), helpers.addToProcessAndTask(), helpers.applyPostfix(), clone(), helpers.getPatAlgosToolsTask(), MassReplace.massSearchReplaceParam(), print(), TauDiscriminatorTools.producerIsTauTypeMapper, and TauDiscriminatorTools.recoTauTypeMapper().
Referenced by adaptPFTaus().
def pfTools.removeMCMatchingPF2PAT | ( | process, | |
postfix = "" , |
|||
outputModules = ['out'] |
|||
) |
Definition at line 382 of file pfTools.py.
def pfTools.switchToPFJets | ( | process, | |
input = cms.InputTag('pfNoTauClones') , |
|||
algo = 'AK4' , |
|||
postfix = "" , |
|||
jetCorrections = ('AK4PFchs', ['L1FastJet','L2Relative', 'L3Absolute']) , |
|||
type1 = False , |
|||
outputModules = ['out'] |
|||
) |
Definition at line 315 of file pfTools.py.
References helpers.addToProcessAndTask(), helpers.applyPostfix(), clone(), helpers.getPatAlgosToolsTask(), dataCertificationJetMET_cfi.jetAlgo, relativeConstraints.keys, print(), python.rootplot.root2matplotlib.replace(), and submitPVValidationJobs.split().
Referenced by usePF2PAT().
def pfTools.switchToPFMET | ( | process, | |
input = cms.InputTag('pfMETPFBRECO') , |
|||
type1 = False , |
|||
postfix = "" |
|||
) |
Definition at line 299 of file pfTools.py.
References helpers.applyPostfix(), print(), and python.rootplot.root2matplotlib.replace().
Referenced by usePF2PAT().
def pfTools.tauTypeInPF2PAT | ( | process, | |
tauType = 'shrinkingConePFTau' , |
|||
postfix = "" |
|||
) |
def pfTools.usePF2PAT | ( | process, | |
runPF2PAT = True , |
|||
jetAlgo = 'AK4' , |
|||
runOnMC = True , |
|||
postfix = "" , |
|||
jetCorrections = ('AK4PFchs', ['L1FastJet','L2Relative','L3Absolute'],'None') , |
|||
pvCollection = cms.InputTag('goodOfflinePrimaryVerticesPFlow',) , |
|||
typeIMetCorrections = False , |
|||
outputModules = ['out'] , |
|||
excludeFromTopProjection = ['Tau'] |
|||
) |
Definition at line 407 of file pfTools.py.
References adaptPFElectrons(), adaptPFMuons(), adaptPFTaus(), adaptPVs(), addPFCandidates(), helpers.applyPostfix(), helpers.getPatAlgosToolsTask(), helpers.loadWithPostfix(), print(), switchToPFJets(), and switchToPFMET().
def pfTools.warningIsolation | ( | ) |
Definition at line 12 of file pfTools.py.
References print().