def pfTools.adaptPFElectrons | ( | process, | |
module, | |||
postfix | |||
) |
Definition at line 135 of file pfTools.py.
References helpers.removeIfInSequence(), and warningIsolation().
Referenced by usePF2PAT().
def pfTools.adaptPFIsoElectrons | ( | process, | |
module, | |||
postfix = "PFIso" , |
|||
dR = "04" |
|||
) |
def pfTools.adaptPFIsoMuons | ( | process, | |
module, | |||
postfix = "PFIso" , |
|||
dR = "04" |
|||
) |
def pfTools.adaptPFMuons | ( | process, | |
module, | |||
postfix = "" |
|||
) |
Definition at line 102 of file pfTools.py.
References helpers.applyPostfix(), and warningIsolation().
Referenced by usePF2PAT().
def pfTools.adaptPFPhotons | ( | process, | |
module | |||
) |
Definition at line 176 of file pfTools.py.
References reconfigurePF2PATTaus().
def pfTools.adaptPFTaus | ( | process, | |
tauType = 'shrinkingConePFTau' , |
|||
postfix = "" |
|||
) |
Definition at line 322 of file pfTools.py.
References helpers.applyPostfix(), reconfigurePF2PATTaus(), tauTools.redoPFTauDiscriminators(), python.multivaluedict.remove(), and tauTools.switchToPFTauByType().
Referenced by usePF2PAT().
def pfTools.adaptPVs | ( | process, | |
pvCollection = cms.InputTag('offlinePrimaryVertices') , |
|||
postfix = '' , |
|||
sequence = 'patPF2PATSequence' |
|||
) |
Definition at line 516 of file pfTools.py.
Referenced by usePF2PAT().
def pfTools.addPFCandidates | ( | process, | |
src, | |||
patLabel = 'PFParticles' , |
|||
cut = "" , |
|||
postfix = "" |
|||
) |
Definition at line 360 of file pfTools.py.
References helpers.applyPostfix(), edm::eventsetup::heterocontainer.insert(), and python.rootplot.root2matplotlib.replace().
Referenced by usePF2PAT().
def pfTools.reconfigurePF2PATTaus | ( | process, | |
tauType = 'shrinkingConePFTau' , |
|||
pf2patSelection = ["DiscriminationByIsolation" , |
|||
DiscriminationByLeadingPionPtCut, | |||
selectionDependsOn = ["DiscriminationByLeadingTrackFinding"] , |
|||
producerFromType = lambda producer: producer+"Producer" , |
|||
postfix = "" |
|||
) |
Definition at line 186 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 = "" , |
|||
outputModules = ['out'] |
|||
) |
Definition at line 510 of file pfTools.py.
References helpers.removeIfInSequence().
Referenced by usePF2PAT().
def pfTools.switchToPFJets | ( | process, | |
input = cms.InputTag('pfNoTau') , |
|||
algo = 'AK5' , |
|||
postfix = "" , |
|||
jetCorrections = ('AK5PFchs', ['L1FastJet' , |
|||
L2Relative, | |||
L3Absolute, | |||
type1 = False , |
|||
outputModules = ['out'] |
|||
) |
Definition at line 447 of file pfTools.py.
References helpers.applyPostfix(), clone(), patRefSel_refAllJets.jetAlgo, relativeConstraints.keys, and python.rootplot.root2matplotlib.replace().
Referenced by usePF2PAT().
Definition at line 391 of file pfTools.py.
References helpers.applyPostfix(), helpers.cloneProcessingSnippet(), if(), python.multivaluedict.remove(), and python.rootplot.root2matplotlib.replace().
Referenced by usePF2PAT().
def pfTools.tauTypeInPF2PAT | ( | process, | |
tauType = 'shrinkingConePFTau' , |
|||
postfix = "" |
|||
) |
Definition at line 355 of file pfTools.py.
References helpers.applyPostfix().
def pfTools.useGsfElectrons | ( | process, | |
postfix, | |||
dR = "04" |
|||
) |
Definition at line 34 of file pfTools.py.
References adaptPFIsoElectrons(), helpers.applyPostfix(), python.rootplot.root2matplotlib.replace(), and pfIsolation.setupPFElectronIso().
def pfTools.usePF2PAT | ( | process, | |
runPF2PAT = True , |
|||
jetAlgo = 'AK5' , |
|||
runOnMC = True , |
|||
postfix = "" , |
|||
jetCorrections = ('AK5PFchs', ['L1FastJet' , |
|||
L2Relative, | |||
L3Absolute, | |||
pvCollection = cms.InputTag('offlinePrimaryVertices') , |
|||
typeIMetCorrections = False , |
|||
outputModules = ['out'] |
|||
) |
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 536 of file pfTools.py.
References adaptPFElectrons(), adaptPFMuons(), adaptPFTaus(), adaptPVs(), addPFCandidates(), helpers.applyPostfix(), helpers.cloneProcessingSnippet(), helpers.removeIfInSequence(), removeMCMatchingPF2PAT(), python.rootplot.root2matplotlib.replace(), switchToPFJets(), and switchToPFMET().
Referenced by SUSY_pattuple_cff.loadPF2PAT().
def pfTools.usePFIso | ( | process, | |
postfix = "PFIso" |
|||
) |
Definition at line 89 of file pfTools.py.
References adaptPFIsoElectrons(), adaptPFIsoMuons(), helpers.applyPostfix(), python.rootplot.root2matplotlib.replace(), pfIsolation.setupPFElectronIso(), and pfIsolation.setupPFMuonIso().
Referenced by SUSY_pattuple_cff.loadPAT().
def pfTools.warningIsolation | ( | ) |
Definition at line 29 of file pfTools.py.
Referenced by adaptPFElectrons(), and adaptPFMuons().