Functions | |
def | _getattrGenerator (process, postfix) |
def | _loadPFBRECO (process) |
def | setupPFElectronIso (process, electronCollection, newpostfix='PFIso', postfix='', runPF2PAT=False) |
def | setupPFIso (process, leptonCollection, particleName, newpostfix='PFIso', postfix='', runPF2PAT=False) |
def | setupPFIsoPhoton (process, photonCollection, particleName, newpostfix='PFIso') |
def | setupPFMuonIso (process, muonCollection, postfix='PFIso') |
def | setupPFPhotonIso (process, photonCollection, postfix='PFIso') |
|
private |
A function generator to simplify the getattr syntax
Definition at line 6 of file pfIsolation.py.
Referenced by setupPFIso(), and setupPFIsoPhoton().
|
private |
The particle-flow based reconstruction sequence should be loaded once in the process. Not optimal, should load it only if it is not detected (hasattr)
Definition at line 15 of file pfIsolation.py.
Referenced by setupPFIso(), and setupPFIsoPhoton().
def pfIsolation.setupPFElectronIso | ( | process, | |
electronCollection, | |||
newpostfix = 'PFIso' , |
|||
postfix = '' , |
|||
runPF2PAT = False |
|||
) |
Set up particle-based isolation for the electrons in electronCollection. Calls setupPFIso.
Definition at line 121 of file pfIsolation.py.
References setupPFIso().
def pfIsolation.setupPFIso | ( | process, | |
leptonCollection, | |||
particleName, | |||
newpostfix = 'PFIso' , |
|||
postfix = '' , |
|||
runPF2PAT = False |
|||
) |
Generic function to setup particle-based isolation for a given lepton collection. Returns the isolation sequence. You are responsible for adding it to your path. leptonCollection could e.g. be "gsfElectrons" or "muons" particleName must be either "Electron" or "Muon". newpostfix can be specified to define several particle-flow isolation sequences
Definition at line 24 of file pfIsolation.py.
References _getattrGenerator(), _loadPFBRECO(), and helpers.cloneProcessingSnippet().
Referenced by setupPFElectronIso(), and setupPFMuonIso().
def pfIsolation.setupPFIsoPhoton | ( | process, | |
photonCollection, | |||
particleName, | |||
newpostfix = 'PFIso' |
|||
) |
Generic function to setup particle-based isolation for a given lepton collection. Returns the isolation sequence. You are responsible for adding it to your path. leptonCollection could e.g. be "gsfElectrons" or "muons" particleName must be either "Electron" or "Muon". newpostfix can be specified to define several particle-flow isolation sequences
Definition at line 68 of file pfIsolation.py.
References _getattrGenerator(), _loadPFBRECO(), and helpers.cloneProcessingSnippet().
Referenced by setupPFPhotonIso().
def pfIsolation.setupPFMuonIso | ( | process, | |
muonCollection, | |||
postfix = 'PFIso' |
|||
) |
Set up particle-based isolation for the muons in muonCollection. Calls setupPFIso.
Definition at line 112 of file pfIsolation.py.
References setupPFIso().
def pfIsolation.setupPFPhotonIso | ( | process, | |
photonCollection, | |||
postfix = 'PFIso' |
|||
) |
Set up particle-based isolation for the electrons in electronCollection. Calls setupPFIsoPhoton.
Definition at line 132 of file pfIsolation.py.
References setupPFIsoPhoton().