Functions | |
def | enablePileUpCorrection |
def | enablePileUpCorrectionInPAT |
def | enablePileUpCorrectionInPF2PAT |
def enablePileUpCorrection::enablePileUpCorrection | ( | process, | |
postfix, | |||
sequence = 'patPF2PATSequence' |
|||
) |
Enables the pile-up correction for jets in a PF2PAT+PAT sequence to be called after the usePF2PAT function.
Definition at line 31 of file enablePileUpCorrection.py.
def enablePileUpCorrection::enablePileUpCorrectionInPAT | ( | process, | |
postfix, | |||
sequence | |||
) |
Definition at line 23 of file enablePileUpCorrection.py.
def enablePileUpCorrection::enablePileUpCorrectionInPF2PAT | ( | process, | |
postfix, | |||
sequence = 'PF2PAT' |
|||
) |
Modifies the PF2PAT sequence according to the recipe of JetMET:
Definition at line 3 of file enablePileUpCorrection.py.
00004 : 00005 """ 00006 Modifies the PF2PAT sequence according to the recipe of JetMET: 00007 """ 00008 00009 # pile up subtraction 00010 getattr(process,"pfNoPileUp"+postfix).enable = True 00011 getattr(process,"pfPileUp"+postfix).Enable = True 00012 getattr(process,"pfPileUp"+postfix).checkClosestZVertex = False 00013 getattr(process,"pfPileUp"+postfix).Vertices = 'goodOfflinePrimaryVertices' 00014 00015 getattr(process,"pfJets"+postfix).doAreaFastjet = True 00016 getattr(process,"pfJets"+postfix).doRhoFastjet = False 00017 00018 # adding goodOfflinePrimaryVertices before pfPileUp 00019 process.load('CommonTools.ParticleFlow.goodOfflinePrimaryVertices_cfi') 00020 getattr(process, 'pfNoPileUpSequence'+postfix).replace( getattr(process,"pfPileUp"+postfix), 00021 process.goodOfflinePrimaryVertices + 00022 getattr(process,"pfPileUp"+postfix) )