![]() |
![]() |
def pfTools.adaptPFElectrons | ( | process, | |
module, | |||
postfix | |||
) |
Definition at line 60 of file pfTools.py.
References helpers.removeIfInSequence(), and warningIsolation().
Referenced by usePF2PAT().
def pfTools.adaptPFMuons | ( | process, | |
module, | |||
postfix = "" |
|||
) |
Definition at line 32 of file pfTools.py.
References helpers.applyPostfix(), and warningIsolation().
Referenced by usePF2PAT().
def pfTools.adaptPFPhotons | ( | process, | |
module | |||
) |
Definition at line 96 of file pfTools.py.
References reconfigurePF2PATTaus().
def pfTools.adaptPFTaus | ( | process, | |
tauType = 'shrinkingConePFTau' , |
|||
postfix = "" |
|||
) |
Definition at line 213 of file pfTools.py.
References helpers.applyPostfix(), reconfigurePF2PATTaus(), tauTools.redoPFTauDiscriminators(), python.multivaluedict.remove(), and tauTools.switchToPFTauByType().
Referenced by usePF2PAT().
def pfTools.addPFCandidates | ( | process, | |
src, | |||
patLabel = 'PFParticles' , |
|||
cut = "" , |
|||
postfix = "" |
|||
) |
Definition at line 244 of file pfTools.py.
References helpers.applyPostfix(), and linker.replace().
Referenced by usePF2PAT().
def pfTools.reconfigurePF2PATTaus | ( | process, | |
tauType = 'shrinkingConePFTau' , |
|||
pf2patSelection = ["DiscriminationByIsolation" , |
|||
DiscriminationByLeadingPionPtCut, | |||
selectionDependsOn = ["DiscriminationByLeadingTrackFinding"] , |
|||
producerFromType = lambda producer: producer+"Producer" , |
|||
postfix = "" |
|||
) |
Definition at line 106 of file pfTools.py.
References TauDiscriminatorTools.adaptTauDiscriminator(), helpers.applyPostfix(), clone(), helpers.cloneProcessingSnippet(), helpers.massSearchReplaceParam(), TauDiscriminatorTools.producerIsTauTypeMapper, and TauDiscriminatorTools.recoTauTypeMapper().
Referenced by adaptPFPhotons(), and adaptPFTaus().
def pfTools.removeMCMatchingPF2PAT | ( | process, | |
postfix = "" |
|||
) |
Definition at line 337 of file pfTools.py.
References helpers.removeIfInSequence().
Referenced by usePF2PAT().
def pfTools.switchToPFJets | ( | process, | |
input = cms.InputTag('pfNoTau') , |
|||
algo = 'AK5' , |
|||
postfix = "" , |
|||
jetCorrections = ['L1Offset' , |
|||
L2Relative, | |||
L3Absolute | |||
) |
Definition at line 298 of file pfTools.py.
References helpers.applyPostfix(), if(), and jetTools.jetAlgo().
Referenced by usePF2PAT().
def pfTools.switchToPFMET | ( | process, | |
input = cms.InputTag('pfMET') , |
|||
type1 = False , |
|||
postfix = "" |
|||
) |
Definition at line 276 of file pfTools.py.
References helpers.applyPostfix(), if(), and python.multivaluedict.remove().
Referenced by usePF2PAT().
def pfTools.tauTypeInPF2PAT | ( | process, | |
tauType = 'shrinkingConePFTau' , |
|||
postfix = "" |
|||
) |
Definition at line 239 of file pfTools.py.
References helpers.applyPostfix().
def pfTools.usePF2PAT | ( | process, | |
runPF2PAT = True , |
|||
jetAlgo = 'AK5' , |
|||
runOnMC = True , |
|||
postfix = "" |
|||
) |
Switch PAT to use PF2PAT instead of AOD sources. if 'runPF2PAT' is true, we'll also add PF2PAT in front of the PAT sequence
Definition at line 343 of file pfTools.py.
References adaptPFElectrons(), adaptPFMuons(), adaptPFTaus(), addPFCandidates(), helpers.applyPostfix(), helpers.cloneProcessingSnippet(), helpers.removeIfInSequence(), removeMCMatchingPF2PAT(), linker.replace(), switchToPFJets(), and switchToPFMET().
def pfTools.warningIsolation | ( | ) |
Definition at line 29 of file pfTools.py.
Referenced by adaptPFElectrons(), and adaptPFMuons().